From 22c69dd32293c88628fc86a0082a61429f440960 Mon Sep 17 00:00:00 2001 From: Florian Noyrit Date: Wed, 10 Feb 2016 11:50:11 +0100 Subject: Bug 487480 - Refactor elementtypesconfiguration framework Insert a "oep/infra/types" layer to host the core elementtypesconfiguration framework. Move UML elementtypesconfiguration extensions to "oep/uml" Move EMF elementtypesconfiguration extensions to "oep/infra/emf" Move elementtypesconfiguration tests to oep/tests/junit/plugins/infra/types Rename all elementtypesconfiguration plugins (core, dev, tests and extensions) and corresponfing packages to shorter qualifiers as follows: oep.infra.elementtypesconfigurations -> oep.infra.types.core and oep.infra.types oep.infra.elementtypesconfigurations.edit -> oep.infra.types.edit oep.infra.elementtypesconfigurations.editor -> oep.infra.types.editor oep.infra.elementtypesconfigurations.ui -> oep.infra.types.ui oep.infra.elementtypesconfigurations.invarianttypes -> oep.infra.types.rulebased oep.infra.elementtypesconfigurations.emf -> oep.infra.emf.types oep.infra.elementtypesconfigurations.emf.ui -> oep.infra.emf.types.ui oep.uml.elementtypesconfigurations -> oep.uml.types oep.elementtypesconfigurations.developer -> oep.dev.types oep.infra.elementtypesconfigurations.tests -> oep.infra.types.tests oep.infra.elementtypesconfigurations.ui.tests -> oep.infra.types.ui.tests Change-Id: Iad7f5689b183e6ad29daab06a1cc2858ee408aa7 --- .../org.eclipse.papyrus.effbd/META-INF/MANIFEST.MF | 2 +- .../EFFBD/org.eclipse.papyrus.effbd/plugin.xml | 8 +- .../resource/EFFB.elementtypesconfigurations | 343 +- .../GraphicalEFFB.elementtypesconfigurations | 173 +- .../model/collaboration.elementtypesconfigurations | 1170 +-- .../collaborationCustom.elementtypesconfigurations | 20 +- .../plugin.xml | 4 +- .../model/process.elementtypesconfigurations | 1170 +-- .../model/processCustom.elementtypesconfigurations | 20 +- .../plugin.xml | 4 +- .../org.eclipse.papyrus.bpmn/META-INF/MANIFEST.MF | 2 +- .../model/bpmn.elementtypesconfigurations | 9098 ++++++++++---------- .../model/customBpmn.elementtypesconfigurations | 26 +- .../bpmn/org.eclipse.papyrus.bpmn/plugin.xml | 4 +- .../META-INF/MANIFEST.MF | 2 +- .../org.eclipse.papyrus.umlrt/META-INF/MANIFEST.MF | 2 +- .../elementtypes/uml-rt.elementtypesconfigurations | 507 +- ...l-rt.umlclassdiagram.elementtypesconfigurations | 1028 +-- .../umlrt/org.eclipse.papyrus.umlrt/plugin.xml | 8 +- .../org.eclipse.papyrus.dev.feature/feature.xml | 2 +- .../feature.xml | 4 + .../org.eclipse.papyrus.infra.feature/feature.xml | 14 +- .../feature.xml | 2 +- .../feature.xml | 4 +- .../org.eclipse.papyrus.uml.feature/feature.xml | 2 +- .../feature.xml | 4 +- .../feature.xml | 2 +- .../META-INF/MANIFEST.MF | 4 +- .../generator/ElementTypeToAssistantRule.xtend | 6 +- .../ElementTypesToAssistantsGenerator.java | 6 +- .../generator/GMFGenToAssistantsGenerator.java | 4 +- .../codegen/generator/GeneratorModule.java | 8 +- .../generator/ModelingAssistantProviderRule.xtend | 4 +- ...eModelingAssistantsFromElementTypesHandler.java | 6 +- .../org.eclipse.papyrus.dev.types/.classpath | 8 + .../org.eclipse.papyrus.dev.types/.project | 34 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 27 + .../org.eclipse.papyrus.dev.types/about.html | 28 + .../org.eclipse.papyrus.dev.types/build.properties | 22 + .../org.eclipse.papyrus.dev.types/icons/sample.gif | Bin 0 -> 983 bytes .../plugin.properties | 13 + .../org.eclipse.papyrus.dev.types/plugin.xml | 95 + .../org.eclipse.papyrus.dev.types/pom.xml | 47 + .../org/eclipse/papyrus/dev/types/Activator.java | 82 + .../generator/ElementTypeRegistryGenerator.xtend | 61 + .../handlers/GenerateElementTypesRegistry.java | 105 + .../types/handlers/MigrateTypesConfigurations.java | 355 + .../providers/ElementTypesContentProvider.java | 85 + .../ElementTypesDetailsContentProvider.java | 153 + .../ElementTypesDetailsLabelProvider.java | 39 + .../types/providers/ElementTypesLabelProvider.java | 45 + .../types/providers/TypesEventContentProvider.java | 161 + .../types/providers/TypesEventLabelProvider.java | 135 + .../papyrus/dev/types/utils/AdvicesComparator.java | 35 + .../papyrus/dev/types/utils/EClassComparator.java | 25 + .../utils/ElementTypeConfigurationComparator.java | 25 + .../dev/types/utils/ElementTypeRegistryUtils.java | 45 + .../GenerateElementTypesConfigurationsUtils.java | 112 + .../dev/types/utils/IElementTypeComparator.java | 25 + .../dev/types/utils/NotifierNullEditHelper.java | 30 + .../papyrus/dev/types/utils/TypesEventPrinter.java | 138 + .../dev/types/view/RegistredElementTypesView.java | 127 + .../view/TypesConfigurationsListenerView.java | 227 + .../xtend-gen/.gitignore | 1 + .../.classpath | 8 - .../.project | 34 - .../.settings/org.eclipse.core.resources.prefs | 2 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 27 - .../about.html | 28 - .../build.properties | 22 - .../icons/sample.gif | Bin 983 -> 0 bytes .../plugin.properties | 13 - .../plugin.xml | 95 - .../pom.xml | 47 - .../developer/Activator.java | 82 - .../generator/ElementTypeRegistryGenerator.xtend | 61 - .../handlers/GenerateElementTypesRegistry.java | 105 - .../MigrateElementTypesConfigurations.java | 252 - ...entTypesConfigurationsEventContentProvider.java | 161 - ...ementTypesConfigurationsEventLabelProvider.java | 135 - .../providers/ElementTypesContentProvider.java | 85 - .../ElementTypesDetailsContentProvider.java | 153 - .../ElementTypesDetailsLabelProvider.java | 39 - .../providers/ElementTypesLabelProvider.java | 45 - .../developer/utils/AdvicesComparator.java | 35 - .../developer/utils/EClassComparator.java | 25 - .../utils/ElementTypeConfigurationComparator.java | 25 - .../developer/utils/ElementTypeRegistryUtils.java | 45 - .../ElementTypesConfigurationsEventPrinter.java | 138 - .../GenerateElementTypesConfigurationsUtils.java | 112 - .../developer/utils/IElementTypeComparator.java | 25 - .../developer/utils/NotifierNullEditHelper.java | 30 - .../ElementTypesConfigurationsListenerView.java | 227 - .../developer/view/RegistredElementTypesView.java | 127 - .../xtend-gen/.gitignore | 1 - plugins/developer/pom.xml | 2 +- .../.classpath | 8 + .../.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 7 + .../META-INF/MANIFEST.MF | 33 + .../about.html | 28 + .../build.properties | 24 + ...igurations_RuntimeValuesAdviceConfiguration.gif | Bin 0 -> 223 bytes ...ons_RuntimeValuesEditionAdviceConfiguration.gif | Bin 0 -> 223 bytes ...eConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 0 -> 223 bytes ...eConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 0 -> 223 bytes .../obj16/RuntimeValuesAdviceConfiguration.gif | Bin 0 -> 129 bytes .../RuntimeValuesEditionAdviceConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ViewToDisplay.gif | Bin 0 -> 129 bytes .../model/RuntimeValuesAdvice.ecore | 12 + .../model/RuntimeValuesAdvice.genmodel | 20 + .../plugin.properties | 23 + .../plugin.xml | 65 + .../org.eclipse.papyrus.infra.emf.types.ui/pom.xml | 12 + .../values/RuntimeValuesAdviceConfiguration.java | 42 + .../advices/values/RuntimeValuesAdviceFactory.java | 51 + .../advices/values/RuntimeValuesAdvicePackage.java | 310 + .../emf/types/ui/advices/values/ViewToDisplay.java | 52 + .../impl/RuntimeValuesAdviceConfigurationImpl.java | 152 + .../impl/RuntimeValuesAdviceFactoryImpl.java | 106 + .../impl/RuntimeValuesAdvicePackageImpl.java | 228 + .../ui/advices/values/impl/ViewToDisplayImpl.java | 158 + ...ntimeValuesAdviceConfigurationItemProvider.java | 160 + .../provider/RuntimeValuesAdviceEditPlugin.java | 101 + ...timeValuesAdviceItemProviderAdapterFactory.java | 327 + .../values/provider/ViewToDisplayItemProvider.java | 146 + .../util/RuntimeValuesAdviceAdapterFactory.java | 215 + .../RuntimeValuesAdviceResourceFactoryImpl.java | 41 + .../util/RuntimeValuesAdviceResourceImpl.java | 28 + .../values/util/RuntimeValuesAdviceSwitch.java | 200 + .../infra/emf/types/internal/ui/Activator.java | 52 + .../RuntimeValuesAdviceEditHelperAdvice.java | 137 + ...RuntimeValuesAdviceEditHelperAdviceFactory.java | 31 + .../org.eclipse.papyrus.infra.emf.types/.classpath | 8 + .../org.eclipse.papyrus.infra.emf.types/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 43 + .../org.eclipse.papyrus.infra.emf.types/about.html | 28 + .../build.properties | 20 + .../icons/Values.gif | Bin 0 -> 361 bytes ...edRules_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...edRules_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes .../CreateConstantValue_valueInstance_Duration.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_DurationInterval.gif | Bin 0 -> 223 bytes ...reateConstantValue_valueInstance_Expression.gif | Bin 0 -> 223 bytes ...teConstantValue_valueInstance_InstanceValue.gif | Bin 0 -> 223 bytes .../CreateConstantValue_valueInstance_Interval.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_LiteralBoolean.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_LiteralInteger.gif | Bin 0 -> 223 bytes ...eateConstantValue_valueInstance_LiteralNull.gif | Bin 0 -> 223 bytes ...eateConstantValue_valueInstance_LiteralReal.gif | Bin 0 -> 223 bytes ...teConstantValue_valueInstance_LiteralString.gif | Bin 0 -> 223 bytes ...Value_valueInstance_LiteralUnlimitedNatural.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_OpaqueExpression.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_StringExpression.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_TimeExpression.gif | Bin 0 -> 223 bytes ...ateConstantValue_valueInstance_TimeInterval.gif | Bin 0 -> 223 bytes ...ons_RuntimeValuesEditionAdviceConfiguration.gif | Bin 0 -> 223 bytes ...Configurations_SetValuesActionConfiguration.gif | Bin 0 -> 223 bytes ...Configurations_SetValuesAdviceConfiguration.gif | Bin 0 -> 223 bytes .../CreateFeatureToSet_value_ConstantValue.gif | Bin 0 -> 223 bytes .../ctool16/CreateFeatureToSet_value_ListValue.gif | Bin 0 -> 223 bytes ...reateFeatureToSet_value_QueryExecutionValue.gif | Bin 0 -> 223 bytes ...nfiguration_permissions_HierarchyPermission.gif | Bin 0 -> 223 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes .../CreateListValue_values_ConstantValue.gif | Bin 0 -> 223 bytes .../ctool16/CreateListValue_values_ListValue.gif | Bin 0 -> 223 bytes .../CreateListValue_values_QueryExecutionValue.gif | Bin 0 -> 223 bytes ...sedRule_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...nConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 0 -> 223 bytes ...eConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 0 -> 223 bytes ...ionConfiguration_featuresToSet_FeatureToSet.gif | Bin 0 -> 223 bytes ...iceConfiguration_featuresToSet_FeatureToSet.gif | Bin 0 -> 223 bytes .../icons/full/obj16/ConstantValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/DynamicValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/FeatureToSet.gif | Bin 0 -> 129 bytes .../icons/full/obj16/HierarchyPermission.gif | Bin 0 -> 129 bytes .../obj16/InvariantContainerRuleConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ListValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/QueryExecutionValue.gif | Bin 0 -> 129 bytes .../RuntimeValuesEditionActionConfiguration.gif | Bin 0 -> 129 bytes .../RuntimeValuesEditionAdviceConfiguration.gif | Bin 0 -> 129 bytes .../full/obj16/SetValuesActionConfiguration.gif | Bin 0 -> 129 bytes .../full/obj16/SetValuesAdviceConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ViewToDisplay.gif | Bin 0 -> 129 bytes .../model/InvariantContainerRule.ecore | 18 + .../model/InvariantContainerRule.genmodel | 24 + .../model/SetValuesAdvice.ecore | 26 + .../model/SetValuesAdvice.genmodel | 30 + .../plugin.properties | 44 + .../org.eclipse.papyrus.infra.emf.types/plugin.xml | 115 + .../org.eclipse.papyrus.infra.emf.types/pom.xml | 12 + .../emf/types/advices/values/ConstantValue.java | 60 + .../emf/types/advices/values/DynamicValue.java | 27 + .../emf/types/advices/values/FeatureToSet.java | 87 + .../emf/types/advices/values/FeatureValue.java | 28 + .../infra/emf/types/advices/values/ListValue.java | 50 + .../types/advices/values/QueryExecutionValue.java | 27 + .../values/SetValuesAdviceConfiguration.java | 52 + .../advices/values/SetValuesAdviceFactory.java | 88 + .../advices/values/SetValuesAdvicePackage.java | 580 ++ .../advices/values/impl/ConstantValueImpl.java | 186 + .../advices/values/impl/DynamicValueImpl.java | 47 + .../advices/values/impl/FeatureToSetImpl.java | 254 + .../advices/values/impl/FeatureValueImpl.java | 49 + .../types/advices/values/impl/ListValueImpl.java | 160 + .../values/impl/QueryExecutionValueImpl.java | 47 + .../impl/SetValuesAdviceConfigurationImpl.java | 162 + .../values/impl/SetValuesAdviceFactoryImpl.java | 149 + .../values/impl/SetValuesAdvicePackageImpl.java | 377 + .../values/provider/ConstantValueItemProvider.java | 223 + .../values/provider/DynamicValueItemProvider.java | 104 + .../values/provider/FeatureToSetItemProvider.java | 219 + .../values/provider/FeatureValueItemProvider.java | 119 + .../values/provider/ListValueItemProvider.java | 162 + .../provider/QueryExecutionValueItemProvider.java | 104 + .../SetValuesAdviceConfigurationItemProvider.java | 170 + .../values/provider/SetValuesAdviceEditPlugin.java | 108 + .../SetValuesAdviceItemProviderAdapterFactory.java | 409 + .../values/util/SetValuesAdviceAdapterFactory.java | 315 + .../util/SetValuesAdviceResourceFactoryImpl.java | 51 + .../values/util/SetValuesAdviceResourceImpl.java | 38 + .../advices/values/util/SetValuesAdviceSwitch.java | 320 + .../types/rules/container/HierarchyPermission.java | 114 + .../InvariantContainerRuleConfiguration.java | 52 + .../container/InvariantContainerRuleFactory.java | 61 + .../container/InvariantContainerRulePackage.java | 305 + .../container/impl/HierarchyPermissionImpl.java | 281 + .../InvariantContainerRuleConfigurationImpl.java | 162 + .../impl/InvariantContainerRuleFactoryImpl.java | 116 + .../impl/InvariantContainerRulePackageImpl.java | 253 + .../provider/HierarchyPermissionItemProvider.java | 216 + ...iantContainerRuleConfigurationItemProvider.java | 167 + .../provider/InvariantContainerRuleEditPlugin.java | 108 + ...antContainerRuleItemProviderAdapterFactory.java | 353 + .../util/InvariantContainerRuleAdapterFactory.java | 168 + .../InvariantContainerRuleResourceFactoryImpl.java | 51 + .../util/InvariantContainerRuleResourceImpl.java | 38 + .../util/InvariantContainerRuleSwitch.java | 159 + .../eclipse/papyrus/infra/emf/types/Activator.java | 63 + .../types/advices/values/FeatureValueUtils.java | 133 + .../values/SetValuesAdviceEditHelperAdvice.java | 175 + .../SetValuesAdviceEditHelperAdviceFactory.java | 31 + .../converter/ConverterNotfoundException.java | 71 + .../emf/types/converter/ConverterRegistry.java | 154 + .../types/converter/ObjectToBooleanConverter.java | 51 + .../types/converter/ObjectToIntegerConverter.java | 50 + .../ValueSpecificationToBooleanConverter.java | 39 + .../ValueSpecificationToEENumConverter.java | 61 + .../ValueSpecificationToEnumerationConverter.java | 51 + .../ValueSpecificationToIntegerConverter.java | 38 + .../ValueSpecificationToStringConverter.java | 39 + .../rules/container/InvariantContainerRule.java | 124 + plugins/infra/emf/pom.xml | 2 + .../META-INF/MANIFEST.MF | 2 +- .../model/notation.elementtypesconfigurations | 8 +- .../plugin.xml | 2 +- .../ExpansionModelValidationUtil.java | 2 +- .../gmfdiag/common/helper/DefaultEditHelper.java | 4 +- .../.classpath | 7 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 288 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 15 - .../about.html | 28 - .../build.properties | 23 - ...ntainerConfiguration_ContainerConfiguration.gif | Bin 84 -> 0 bytes ...n_matcherConfiguration_MatcherConfiguration.gif | Bin 76 -> 0 bytes ...ntainerConfiguration_ContainerConfiguration.gif | Bin 84 -> 0 bytes ...n_matcherConfiguration_MatcherConfiguration.gif | Bin 76 -> 0 bytes ...erMatcherConfiguration_MatcherConfiguration.gif | Bin 76 -> 0 bytes ...lementTypeConfiguration_iconEntry_IconEntry.gif | Bin 87 -> 0 bytes ...gsConfigurations_AdviceBindingConfiguration.gif | Bin 198 -> 0 bytes ...peConfigurations_MetamodelTypeConfiguration.gif | Bin 116 -> 0 bytes ...figurations_SpecializationTypeConfiguration.gif | Bin 94 -> 0 bytes ...ntainerConfiguration_ContainerConfiguration.gif | Bin 84 -> 0 bytes ...Configuration_EditHelperAdviceConfiguration.gif | Bin 101 -> 0 bytes ...n_matcherConfiguration_MatcherConfiguration.gif | Bin 76 -> 0 bytes .../full/obj16/AdviceBindingConfiguration.gif | Bin 198 -> 0 bytes .../icons/full/obj16/ContainerConfiguration.gif | Bin 84 -> 0 bytes .../full/obj16/EditHelperAdviceConfiguration.gif | Bin 101 -> 0 bytes .../full/obj16/ElementTypeSetConfiguration.gif | Bin 104 -> 0 bytes .../icons/full/obj16/IconEntry.gif | Bin 87 -> 0 bytes .../icons/full/obj16/MatcherConfiguration.gif | Bin 76 -> 0 bytes .../full/obj16/MetamodelTypeConfiguration.gif | Bin 116 -> 0 bytes .../full/obj16/SpecializationTypeConfiguration.gif | Bin 94 -> 0 bytes .../plugin.properties | 82 - .../plugin.xml | 33 - .../pom.xml | 12 - ...ractAdviceBindingConfigurationItemProvider.java | 226 - ...tEditHelperAdviceConfigurationItemProvider.java | 98 - .../AbstractMatcherConfigurationItemProvider.java | 120 - .../AdviceBindingConfigurationItemProvider.java | 142 - .../provider/AdviceConfigurationItemProvider.java | 155 - .../provider/ConfigurationElementItemProvider.java | 158 - .../ContainerConfigurationItemProvider.java | 203 - .../EditHelperAdviceConfigurationItemProvider.java | 142 - .../ElementTypeConfigurationItemProvider.java | 244 - .../ElementTypeSetConfigurationItemProvider.java | 243 - .../ElementTypesConfigurationsEditPlugin.java | 99 - ...esconfigurationsItemProviderAdapterFactory.java | 421 - .../provider/IconEntryItemProvider.java | 193 - .../provider/MatcherConfigurationItemProvider.java | 142 - .../MetamodelTypeConfigurationItemProvider.java | 165 - .../provider/NamedConfigurationItemProvider.java | 169 - ...pecializationTypeConfigurationItemProvider.java | 197 - .../.classpath | 7 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 288 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 18 - .../about.html | 28 - .../build.properties | 23 - .../obj16/ElementtypesconfigurationsModelFile.gif | Bin 346 -> 0 bytes .../full/wizban/NewElementtypesconfigurations.gif | Bin 2462 -> 0 bytes .../plugin.properties | 64 - .../plugin.xml | 47 - .../pom.xml | 12 - .../ElementTypesConfigurationsEditorPlugin.java | 101 - ...enttypesconfigurationsActionBarContributor.java | 433 - .../ElementtypesconfigurationsEditor.java | 1868 ---- .../ElementtypesconfigurationsModelWizard.java | 640 -- .../.classpath | 8 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 7 - .../META-INF/MANIFEST.MF | 33 - .../about.html | 28 - .../build.properties | 24 - ...ons_RuntimeValuesEditionAdviceConfiguration.gif | Bin 223 -> 0 bytes ...eConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 223 -> 0 bytes .../RuntimeValuesEditionAdviceConfiguration.gif | Bin 129 -> 0 bytes .../icons/full/obj16/ViewToDisplay.gif | Bin 129 -> 0 bytes .../RuntimeValuesEditionAdviceConfiguration.ecore | 13 - ...untimeValuesEditionAdviceConfiguration.genmodel | 24 - .../plugin.properties | 23 - .../plugin.xml | 62 - .../pom.xml | 12 - .../RuntimeValuesEditionAdviceConfiguration.java | 52 - ...imevalueseditionadviceconfigurationFactory.java | 61 - ...imevalueseditionadviceconfigurationPackage.java | 300 - .../ViewToDisplay.java | 62 - ...untimeValuesEditionAdviceConfigurationImpl.java | 162 - ...alueseditionadviceconfigurationFactoryImpl.java | 116 - ...alueseditionadviceconfigurationPackageImpl.java | 238 - .../impl/ViewToDisplayImpl.java | 168 - ...luesEditionAdviceConfigurationItemProvider.java | 172 - ...iceconfigurationItemProviderAdapterFactory.java | 339 - .../provider/ViewToDisplayItemProvider.java | 158 - ...eseditionadviceconfigurationAdapterFactory.java | 225 - ...tionadviceconfigurationResourceFactoryImpl.java | 51 - ...lueseditionadviceconfigurationResourceImpl.java | 38 - ...timevalueseditionadviceconfigurationSwitch.java | 210 - ...ValuesEditionAdviceConfigurationEditPlugin.java | 111 - .../emf/internal/ui/Activator.java | 50 - ...RuntimeValuesEditionAdviceEditHelperAdvice.java | 137 - ...ValuesEditionAdviceEditHelperAdviceFactory.java | 31 - .../.classpath | 8 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 42 - .../about.html | 28 - .../build.properties | 25 - .../icons/Values.gif | Bin 361 -> 0 bytes ...edRules_InvariantContainerRuleConfiguration.gif | Bin 223 -> 0 bytes .../CreateConstantValue_valueInstance_Duration.gif | Bin 223 -> 0 bytes ...onstantValue_valueInstance_DurationInterval.gif | Bin 223 -> 0 bytes ...reateConstantValue_valueInstance_Expression.gif | Bin 223 -> 0 bytes ...teConstantValue_valueInstance_InstanceValue.gif | Bin 223 -> 0 bytes .../CreateConstantValue_valueInstance_Interval.gif | Bin 223 -> 0 bytes ...eConstantValue_valueInstance_LiteralBoolean.gif | Bin 223 -> 0 bytes ...eConstantValue_valueInstance_LiteralInteger.gif | Bin 223 -> 0 bytes ...eateConstantValue_valueInstance_LiteralNull.gif | Bin 223 -> 0 bytes ...eateConstantValue_valueInstance_LiteralReal.gif | Bin 223 -> 0 bytes ...teConstantValue_valueInstance_LiteralString.gif | Bin 223 -> 0 bytes ...Value_valueInstance_LiteralUnlimitedNatural.gif | Bin 223 -> 0 bytes ...onstantValue_valueInstance_OpaqueExpression.gif | Bin 223 -> 0 bytes ...onstantValue_valueInstance_StringExpression.gif | Bin 223 -> 0 bytes ...eConstantValue_valueInstance_TimeExpression.gif | Bin 223 -> 0 bytes ...ateConstantValue_valueInstance_TimeInterval.gif | Bin 223 -> 0 bytes ...ons_RuntimeValuesEditionAdviceConfiguration.gif | Bin 223 -> 0 bytes ...Configurations_SetValuesActionConfiguration.gif | Bin 223 -> 0 bytes ...Configurations_SetValuesAdviceConfiguration.gif | Bin 223 -> 0 bytes .../CreateFeatureToSet_value_ConstantValue.gif | Bin 223 -> 0 bytes .../ctool16/CreateFeatureToSet_value_ListValue.gif | Bin 223 -> 0 bytes ...reateFeatureToSet_value_QueryExecutionValue.gif | Bin 223 -> 0 bytes ...nfiguration_permissions_HierarchyPermission.gif | Bin 223 -> 0 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 223 -> 0 bytes .../CreateListValue_values_ConstantValue.gif | Bin 223 -> 0 bytes .../ctool16/CreateListValue_values_ListValue.gif | Bin 223 -> 0 bytes .../CreateListValue_values_QueryExecutionValue.gif | Bin 223 -> 0 bytes ...sedRule_InvariantContainerRuleConfiguration.gif | Bin 223 -> 0 bytes ...nConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 223 -> 0 bytes ...eConfiguration_viewsToDisplay_ViewToDisplay.gif | Bin 223 -> 0 bytes ...ionConfiguration_featuresToSet_FeatureToSet.gif | Bin 223 -> 0 bytes ...iceConfiguration_featuresToSet_FeatureToSet.gif | Bin 223 -> 0 bytes .../icons/full/obj16/ConstantValue.gif | Bin 129 -> 0 bytes .../icons/full/obj16/DynamicValue.gif | Bin 129 -> 0 bytes .../icons/full/obj16/FeatureToSet.gif | Bin 129 -> 0 bytes .../icons/full/obj16/HierarchyPermission.gif | Bin 129 -> 0 bytes .../obj16/InvariantContainerRuleConfiguration.gif | Bin 129 -> 0 bytes .../icons/full/obj16/ListValue.gif | Bin 129 -> 0 bytes .../icons/full/obj16/QueryExecutionValue.gif | Bin 129 -> 0 bytes .../RuntimeValuesEditionActionConfiguration.gif | Bin 129 -> 0 bytes .../RuntimeValuesEditionAdviceConfiguration.gif | Bin 129 -> 0 bytes .../full/obj16/SetValuesActionConfiguration.gif | Bin 129 -> 0 bytes .../full/obj16/SetValuesAdviceConfiguration.gif | Bin 129 -> 0 bytes .../icons/full/obj16/ViewToDisplay.gif | Bin 129 -> 0 bytes .../InvariantContainerRuleConfiguration.ecore | 18 - .../InvariantContainerRuleConfiguration.genmodel | 37 - .../model/SetValuesAdviceConfiguration.ecore | 26 - .../model/SetValuesAdviceConfiguration.genmodel | 33 - .../plugin.properties | 44 - .../plugin.xml | 96 - .../pom.xml | 12 - .../HierarchyPermission.java | 114 - .../InvariantContainerRuleConfiguration.java | 52 - ...InvariantContainerRuleConfigurationFactory.java | 61 - ...InvariantContainerRuleConfigurationPackage.java | 305 - .../impl/HierarchyPermissionImpl.java | 281 - ...riantContainerRuleConfigurationFactoryImpl.java | 116 - .../InvariantContainerRuleConfigurationImpl.java | 162 - ...riantContainerRuleConfigurationPackageImpl.java | 253 - .../provider/HierarchyPermissionItemProvider.java | 216 - ...ariantContainerRuleConfigurationEditPlugin.java | 108 - ...iantContainerRuleConfigurationItemProvider.java | 167 - ...uleConfigurationItemProviderAdapterFactory.java | 369 - ...ntContainerRuleConfigurationAdapterFactory.java | 168 - ...tainerRuleConfigurationResourceFactoryImpl.java | 51 - ...iantContainerRuleConfigurationResourceImpl.java | 38 - .../InvariantContainerRuleConfigurationSwitch.java | 159 - .../ConstantValue.java | 60 - .../setvaluesadviceconfiguration/DynamicValue.java | 27 - .../setvaluesadviceconfiguration/FeatureToSet.java | 87 - .../setvaluesadviceconfiguration/FeatureValue.java | 28 - .../setvaluesadviceconfiguration/ListValue.java | 50 - .../QueryExecutionValue.java | 27 - .../SetValuesAdviceConfiguration.java | 52 - .../SetValuesAdviceConfigurationFactory.java | 88 - .../SetValuesAdviceConfigurationPackage.java | 580 -- .../impl/ConstantValueImpl.java | 186 - .../impl/DynamicValueImpl.java | 47 - .../impl/FeatureToSetImpl.java | 254 - .../impl/FeatureValueImpl.java | 49 - .../impl/ListValueImpl.java | 160 - .../impl/QueryExecutionValueImpl.java | 47 - .../SetValuesAdviceConfigurationFactoryImpl.java | 149 - .../impl/SetValuesAdviceConfigurationImpl.java | 162 - .../SetValuesAdviceConfigurationPackageImpl.java | 377 - .../provider/ConstantValueItemProvider.java | 223 - .../provider/DynamicValueItemProvider.java | 104 - .../provider/FeatureToSetItemProvider.java | 219 - .../provider/FeatureValueItemProvider.java | 119 - .../provider/ListValueItemProvider.java | 162 - .../provider/QueryExecutionValueItemProvider.java | 104 - ...ValuesEditionAdviceConfigurationEditPlugin.java | 111 - .../SetValuesAdviceConfigurationEditPlugin.java | 108 - .../SetValuesAdviceConfigurationItemProvider.java | 170 - ...iceConfigurationItemProviderAdapterFactory.java | 409 - ...SetValuesAdviceConfigurationAdapterFactory.java | 315 - ...luesAdviceConfigurationResourceFactoryImpl.java | 51 - .../SetValuesAdviceConfigurationResourceImpl.java | 38 - .../util/SetValuesAdviceConfigurationSwitch.java | 320 - .../elementtypesconfigurations/emf/Activator.java | 63 - .../emf/converter/ConverterNotfoundException.java | 71 - .../emf/converter/ConverterRegistry.java | 154 - .../emf/converter/ObjectToBooleanConverter.java | 51 - .../emf/converter/ObjectToIntegerConverter.java | 50 - .../ValueSpecificationToBooleanConverter.java | 39 - .../ValueSpecificationToEENumConverter.java | 61 - .../ValueSpecificationToEnumerationConverter.java | 51 - .../ValueSpecificationToIntegerConverter.java | 38 - .../ValueSpecificationToStringConverter.java | 39 - .../InvariantContainerRule.java | 131 - .../FeatureValueUtils.java | 133 - .../SetValuesAdviceEditHelperAdvice.java | 172 - .../SetValuesAdviceEditHelperAdviceFactory.java | 31 - .../.classpath | 8 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 28 - .../about.html | 28 - .../build.properties | 26 - ...composedRules_AndInvariantRuleConfiguration.gif | Bin 102 -> 0 bytes ...mposedRules_InvariantContainerConfiguration.gif | Bin 223 -> 0 bytes ...edRules_InvariantContainerRuleConfiguration.gif | Bin 223 -> 0 bytes ...composedRules_NotInvariantRuleConfiguration.gif | Bin 85 -> 0 bytes ..._composedRules_OrInvariantRuleConfiguration.gif | Bin 94 -> 0 bytes ...rations_InvariantContainerTypeConfiguration.gif | Bin 223 -> 0 bytes ...urations_InvariantSemanticTypeConfiguration.gif | Bin 223 -> 0 bytes ...peConfigurations_InvariantTypeConfiguration.gif | Bin 94 -> 0 bytes ...nfiguration_permissions_HierarchyPermission.gif | Bin 223 -> 0 bytes ...nfiguration_permissions_HierarchyPermission.gif | Bin 223 -> 0 bytes ...Configuration_AndInvariantRuleConfiguration.gif | Bin 223 -> 0 bytes ...nfiguration_InvariantContainerConfiguration.gif | Bin 223 -> 0 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 223 -> 0 bytes ...eConfiguration_OrInvariantRuleConfiguration.gif | Bin 223 -> 0 bytes ...Configuration_AndInvariantRuleConfiguration.gif | Bin 102 -> 0 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 223 -> 0 bytes ...Configuration_NotInvariantRuleConfiguration.gif | Bin 85 -> 0 bytes ...eConfiguration_OrInvariantRuleConfiguration.gif | Bin 94 -> 0 bytes ..._composedRule_AndInvariantRuleConfiguration.gif | Bin 102 -> 0 bytes ..._composedRule_NotInvariantRuleConfiguration.gif | Bin 85 -> 0 bytes ...n_composedRule_OrInvariantRuleConfiguration.gif | Bin 94 -> 0 bytes .../full/obj16/AndInvariantRuleConfiguration.gif | Bin 102 -> 0 bytes .../icons/full/obj16/HierarchyPermission.gif | Bin 129 -> 0 bytes .../full/obj16/InvariantContainerConfiguration.gif | Bin 129 -> 0 bytes .../obj16/InvariantContainerRuleConfiguration.gif | Bin 129 -> 0 bytes .../obj16/InvariantContainerTypeConfiguration.gif | Bin 129 -> 0 bytes .../obj16/InvariantSemanticTypeConfiguration.gif | Bin 129 -> 0 bytes .../full/obj16/InvariantTypeConfiguration.gif | Bin 94 -> 0 bytes .../full/obj16/NotInvariantRuleConfiguration.gif | Bin 85 -> 0 bytes .../full/obj16/OrInvariantRuleConfiguration.gif | Bin 94 -> 0 bytes .../model/InvariantTypeConfiguration.ecore | 21 - .../model/InvariantTypeConfiguration.genmodel | 31 - .../model/invarianttype.elementtypesconfigurations | 5 - .../plugin.properties | 37 - .../plugin.xml | 61 - .../pom.xml | 12 - .../schema/invariantRule.exsd | 112 - .../AndInvariantRuleConfiguration.java | 27 - .../CompositeInvariantRuleConfiguration.java | 50 - .../InvariantRuleConfiguration.java | 28 - .../InvariantTypeConfiguration.java | 60 - .../InvariantTypeConfigurationFactory.java | 79 - .../InvariantTypeConfigurationPackage.java | 576 -- .../NotInvariantRuleConfiguration.java | 59 - .../OrInvariantRuleConfiguration.java | 27 - .../impl/AndInvariantRuleConfigurationImpl.java | 47 - .../CompositeInvariantRuleConfigurationImpl.java | 160 - .../impl/InvariantRuleConfigurationImpl.java | 49 - .../InvariantTypeConfigurationFactoryImpl.java | 138 - .../impl/InvariantTypeConfigurationImpl.java | 187 - .../InvariantTypeConfigurationPackageImpl.java | 329 - .../impl/NotInvariantRuleConfigurationImpl.java | 166 - .../impl/OrInvariantRuleConfigurationImpl.java | 47 - .../AndInvariantRuleConfigurationItemProvider.java | 104 - ...siteInvariantRuleConfigurationItemProvider.java | 151 - .../InvariantRuleConfigurationItemProvider.java | 120 - .../InvariantTypeConfigurationEditPlugin.java | 105 - .../InvariantTypeConfigurationItemProvider.java | 167 - ...ypeConfigurationItemProviderAdapterFactory.java | 422 - .../NotInvariantRuleConfigurationItemProvider.java | 185 - .../OrInvariantRuleConfigurationItemProvider.java | 104 - .../InvariantTypeConfigurationAdapterFactory.java | 316 - ...ariantTypeConfigurationResourceFactoryImpl.java | 51 - .../InvariantTypeConfigurationResourceImpl.java | 38 - .../util/InvariantTypeConfigurationSwitch.java | 317 - .../invarianttypes/Activator.java | 74 - .../AbstractInvariantRule.java | 101 - .../DefaultInvariantEditHelperAdvice.java | 230 - .../DefaultInvariantElementMatcher.java | 97 - .../DefaultInvariantRule.java | 57 - .../invarianttypeconfiguration/IInvariantRule.java | 25 - .../IInvariantRuleExtensionPoint.java | 28 - .../InvariantElementTypeFactory.java | 30 - .../InvariantRuleConfigurationTypeRegistry.java | 77 - .../.classpath | 7 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 17 - .../about.html | 28 - .../build.properties | 13 - .../icons/configuration.gif | Bin 341 -> 0 bytes .../icons/error.gif | Bin 353 -> 0 bytes .../plugin.properties | 15 - .../plugin.xml | 86 - .../pom.xml | 12 - .../internal/ui/LogUtil.java | 33 - .../DeployElementTypeSetConfigurationHandler.java | 155 - ...UndeployElementTypeSetConfigurationHandler.java | 174 - .../ui/providers/ClientContextContentProvider.java | 35 - .../.classpath | 8 - .../.project | 28 - .../.settings/org.eclipse.core.resources.prefs | 2 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 30 - .../about.html | 28 - .../build.properties | 15 - .../model/ElementTypesConfigurations.ecore | 98 - .../model/ElementTypesConfigurations.ecore_diagram | 555 -- .../model/ElementTypesConfigurations.genmodel | 81 - .../plugin.properties | 13 - .../plugin.xml | 67 - .../pom.xml | 12 - .../schema/adviceConfigurationType.exsd | 126 - .../schema/containerConfigurationType.exsd | 102 - .../schema/elementTypeConfigurationType.exsd | 107 - .../schema/elementTypeSetConfiguration.exsd | 106 - .../schema/matcherConfigurationType.exsd | 102 - .../AbstractAdviceBindingConfiguration.java | 143 - .../AbstractEditHelperAdviceConfiguration.java | 61 - .../AbstractMatcherConfiguration.java | 28 - .../AdviceBindingConfiguration.java | 59 - .../AdviceConfiguration.java | 67 - .../ConfigurationElement.java | 60 - .../ContainerConfiguration.java | 80 - .../EditHelperAdviceConfiguration.java | 59 - .../ElementTypeConfiguration.java | 115 - .../ElementTypeSetConfiguration.java | 94 - .../ElementtypesconfigurationsFactory.java | 115 - .../ElementtypesconfigurationsPackage.java | 2056 ----- .../elementtypesconfigurations/IconEntry.java | 87 - .../IdentifiedConfiguration.java | 60 - .../InheritanceKind.java | 224 - .../MatcherConfiguration.java | 59 - .../MetamodelTypeConfiguration.java | 87 - .../NamedConfiguration.java | 60 - .../SpecializationTypeConfiguration.java | 133 - .../AbstractAdviceBindingConfigurationImpl.java | 469 - .../AbstractEditHelperAdviceConfigurationImpl.java | 205 - .../impl/AbstractMatcherConfigurationImpl.java | 49 - .../impl/AdviceBindingConfigurationImpl.java | 172 - .../impl/AdviceConfigurationImpl.java | 193 - .../impl/ConfigurationElementImpl.java | 173 - .../impl/ContainerConfigurationImpl.java | 228 - .../impl/EditHelperAdviceConfigurationImpl.java | 172 - .../impl/ElementTypeConfigurationImpl.java | 461 - .../impl/ElementTypeSetConfigurationImpl.java | 422 - .../ElementtypesconfigurationsFactoryImpl.java | 233 - .../ElementtypesconfigurationsPackageImpl.java | 852 -- .../impl/IconEntryImpl.java | 227 - .../impl/MatcherConfigurationImpl.java | 172 - .../impl/MetamodelTypeConfigurationImpl.java | 233 - .../impl/SpecializationTypeConfigurationImpl.java | 392 - .../ElementtypesconfigurationsAdapterFactory.java | 400 - ...menttypesconfigurationsResourceFactoryImpl.java | 51 - .../ElementtypesconfigurationsResourceImpl.java | 38 - .../util/ElementtypesconfigurationsSwitch.java | 463 - .../elementtypesconfigurations/Activator.java | 62 - .../ElementTypesConfigurationsRegistryService.java | 49 - .../IConfiguredContainerDescriptor.java | 24 - .../IConfiguredEditHelperAdviceDescriptor.java | 21 - .../IConfiguredHintedElementType.java | 23 - .../IAdviceConfigurationTypeExtensionPoint.java | 25 - .../IContainerConfigurationTypeExtensionPoint.java | 25 - ...ElementTypeConfigurationTypeExtensionPoint.java | 30 - .../IElementTypeSetExtensionPoint.java | 27 - .../IMatcherConfigurationTypeExtensionPoint.java | 30 - .../IUserElementTypeDefinitionsExtensionPoint.java | 27 - .../factories/IContainerFactory.java | 21 - .../factories/IEditHelperAdviceFactory.java | 21 - .../IElementTypeConfigurationFactory.java | 21 - .../factories/IMatcherFactory.java | 21 - .../impl/AbstractAdviceBindingFactory.java | 60 - .../factories/impl/AbstractAdviceFactory.java | 44 - .../impl/AbstractEditHelperAdviceFactory.java | 61 - .../AbstractElementTypeConfigurationFactory.java | 70 - .../impl/DefaultAdviceBindingFactory.java | 33 - .../impl/DefaultEditHelperAdviceFactory.java | 33 - .../factories/impl/DefaultMatcherFactory.java | 34 - .../factories/impl/MetamodelTypeFactory.java | 43 - .../factories/impl/SpecializationTypeFactory.java | 89 - .../impl/ConfiguredEditHelperAdviceDescriptor.java | 74 - .../impl/ConfiguredHintedMetamodelElementType.java | 61 - .../ConfiguredHintedSpecializationElementType.java | 75 - .../impl/NullEditHelperAdvice.java | 31 - .../notification/AbstractNotifierEditHelper.java | 258 - .../ElementTypesConfigurationsEventsChain.java | 245 - ...lementTypesConfigurationsListenersRegistry.java | 74 - ...mentTypesConfigurationsEventsChainListener.java | 21 - .../IElementTypesConfigurationsEventsListener.java | 23 - .../notification/events/AbstractApprovedEvent.java | 33 - .../events/AbstractDisapprovedEvent.java | 33 - .../AbstractElementTypesConfigurationsEvent.java | 75 - .../events/AbstractExecutableEvent.java | 45 - .../notification/events/AbstractIdentityEvent.java | 33 - .../events/AbstractRequestConfigurationEvent.java | 33 - .../events/AbstractUnexecutableEvent.java | 47 - .../notification/events/AdviceApprovedEvent.java | 46 - .../events/AdviceDisapprovedEvent.java | 46 - .../notification/events/AdvicePhase.java | 17 - .../events/AdviceRequestConfigurationEvent.java | 50 - .../events/EditHelperApprovedEvent.java | 23 - .../events/EditHelperDisapprovedEvent.java | 23 - .../EditHelperRequestConfigurationEvent.java | 23 - .../ElementTypesConfigurationsEventType.java | 17 - .../notification/events/ExecutableAdviceEvent.java | 57 - .../events/ExecutableEditHelperEvent.java | 24 - .../notification/events/IAdviceEvent.java | 28 - .../events/IElementTypesConfigurationsEvent.java | 29 - .../notification/events/IdentityAdviceEvent.java | 56 - .../events/IdentityEditHelperEvent.java | 24 - .../events/UnexecutableAdviceEvent.java | 57 - .../events/UnexecutableEditHelperEvent.java | 24 - .../AdviceConfigurationTypeRegistry.java | 133 - .../ContainerConfigurationTypeRegistry.java | 125 - .../ElementTypeConfigurationTypeRegistry.java | 95 - .../ElementTypeSetConfigurationRegistry.java | 559 -- .../MatcherConfigurationTypeRegistry.java | 100 - ...menttypesconfigurationsResourceFactoryImpl.java | 28 - ...stomElementtypesconfigurationsResourceImpl.java | 30 - .../utils/AdviceComparator.java | 47 - .../utils/ElementTypeConfigurationCycleUtil.java | 127 - .../utils/ElementTypeRegistryUtils.java | 76 - .../utils/OrientedGraph.java | 97 - plugins/infra/pom.xml | 9 +- .../.classpath | 7 + .../org.eclipse.papyrus.infra.types.core/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 29 + .../about.html | 28 + .../build.properties | 13 + .../plugin.properties | 13 + .../plugin.xml | 35 + .../org.eclipse.papyrus.infra.types.core/pom.xml | 12 + .../schema/adviceConfigurationKind.exsd | 126 + .../schema/containerConfigurationKind.exsd | 102 + .../schema/elementTypeConfigurationKind.exsd | 107 + .../schema/elementTypeSetConfiguration.exsd | 106 + .../schema/matcherConfigurationKind.exsd | 102 + .../papyrus/infra/types/core/Activator.java | 62 + .../types/core/IConfiguredContainerDescriptor.java | 25 + .../IConfiguredEditHelperAdviceDescriptor.java | 22 + .../types/core/IConfiguredHintedElementType.java | 24 + .../core/TypesConfigurationsRegistryService.java | 49 + .../extensionpoints/IAdviceKindExtensionPoint.java | 25 + .../IContainerConfigurationKindExtensionPoint.java | 25 + ...ElementTypeConfigurationKindExtensionPoint.java | 30 + .../IElementTypeSetExtensionPoint.java | 27 + .../IMatcherConfigurationKindExtensionPoint.java | 30 + .../types/core/factories/IContainerFactory.java | 21 + .../core/factories/IEditHelperAdviceFactory.java | 21 + .../IElementTypeConfigurationFactory.java | 21 + .../types/core/factories/IMatcherFactory.java | 21 + .../impl/AbstractAdviceBindingFactory.java | 60 + .../core/factories/impl/AbstractAdviceFactory.java | 44 + .../impl/AbstractEditHelperAdviceFactory.java | 61 + .../AbstractElementTypeConfigurationFactory.java | 70 + .../impl/DefaultAdviceBindingFactory.java | 34 + .../impl/DefaultEditHelperAdviceFactory.java | 34 + .../core/factories/impl/DefaultMatcherFactory.java | 35 + .../core/factories/impl/MetamodelTypeFactory.java | 43 + .../factories/impl/SpecializationTypeFactory.java | 89 + .../impl/ConfiguredEditHelperAdviceDescriptor.java | 74 + .../impl/ConfiguredHintedMetamodelElementType.java | 61 + .../ConfiguredHintedSpecializationElementType.java | 75 + .../types/core/impl/NullEditHelperAdvice.java | 31 + .../notification/AbstractNotifierEditHelper.java | 258 + .../notification/ITypesEventsChainListener.java | 21 + .../core/notification/ITypesEventsListener.java | 20 + .../types/core/notification/TypesEventsChain.java | 245 + .../core/notification/TypesListenersRegistry.java | 74 + .../notification/events/AbstractApprovedEvent.java | 34 + .../events/AbstractDisapprovedEvent.java | 34 + .../events/AbstractExecutableEvent.java | 46 + .../notification/events/AbstractIdentityEvent.java | 34 + .../notification/events/AbstractRequestEvent.java | 34 + .../notification/events/AbstractTypesEvent.java | 77 + .../events/AbstractUnexecutableEvent.java | 48 + .../notification/events/AdviceApprovedEvent.java | 46 + .../events/AdviceDisapprovedEvent.java | 46 + .../core/notification/events/AdvicePhase.java | 17 + .../notification/events/AdviceRequestEvent.java | 50 + .../events/EditHelperApprovedEvent.java | 23 + .../events/EditHelperDisapprovedEvent.java | 23 + .../events/EditHelperRequestEvent.java | 23 + .../notification/events/ExecutableAdviceEvent.java | 57 + .../events/ExecutableEditHelperEvent.java | 24 + .../core/notification/events/IAdviceEvent.java | 28 + .../core/notification/events/ITypesEvent.java | 29 + .../notification/events/IdentityAdviceEvent.java | 56 + .../events/IdentityEditHelperEvent.java | 24 + .../core/notification/events/TypesEventKind.java | 17 + .../events/UnexecutableAdviceEvent.java | 57 + .../events/UnexecutableEditHelperEvent.java | 24 + .../AdviceConfigurationTypeRegistry.java | 133 + .../ContainerConfigurationTypeRegistry.java | 125 + .../ElementTypeConfigurationTypeRegistry.java | 95 + .../ElementTypeSetConfigurationRegistry.java | 566 ++ .../MatcherConfigurationTypeRegistry.java | 100 + .../infra/types/core/utils/AdviceComparator.java | 47 + .../types/core/utils/ElementTypeRegistryUtils.java | 76 + .../infra/types/core/utils/OrientedGraph.java | 97 + .../core/utils/TypesConfigurationsCycleUtil.java | 127 + .../.classpath | 7 + .../org.eclipse.papyrus.infra.types.edit/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 288 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 16 + .../about.html | 28 + .../build.properties | 23 + ...ntainerConfiguration_ContainerConfiguration.gif | Bin 0 -> 84 bytes ...n_matcherConfiguration_MatcherConfiguration.gif | Bin 0 -> 76 bytes ...ntainerConfiguration_ContainerConfiguration.gif | Bin 0 -> 84 bytes ...n_matcherConfiguration_MatcherConfiguration.gif | Bin 0 -> 76 bytes ...erMatcherConfiguration_MatcherConfiguration.gif | Bin 0 -> 76 bytes ...lementTypeConfiguration_iconEntry_IconEntry.gif | Bin 0 -> 87 bytes ...gsConfigurations_AdviceBindingConfiguration.gif | Bin 0 -> 198 bytes ...peConfigurations_MetamodelTypeConfiguration.gif | Bin 0 -> 116 bytes ...figurations_SpecializationTypeConfiguration.gif | Bin 0 -> 94 bytes ...ntainerConfiguration_ContainerConfiguration.gif | Bin 0 -> 84 bytes ...Configuration_EditHelperAdviceConfiguration.gif | Bin 0 -> 101 bytes ...n_matcherConfiguration_MatcherConfiguration.gif | Bin 0 -> 76 bytes .../full/obj16/AdviceBindingConfiguration.gif | Bin 0 -> 198 bytes .../icons/full/obj16/ContainerConfiguration.gif | Bin 0 -> 84 bytes .../full/obj16/EditHelperAdviceConfiguration.gif | Bin 0 -> 101 bytes .../full/obj16/ElementTypeSetConfiguration.gif | Bin 0 -> 104 bytes .../icons/full/obj16/IconEntry.gif | Bin 0 -> 87 bytes .../icons/full/obj16/MatcherConfiguration.gif | Bin 0 -> 76 bytes .../full/obj16/MetamodelTypeConfiguration.gif | Bin 0 -> 116 bytes .../full/obj16/SpecializationTypeConfiguration.gif | Bin 0 -> 94 bytes .../plugin.properties | 82 + .../plugin.xml | 35 + .../org.eclipse.papyrus.infra.types.edit/pom.xml | 12 + ...ractAdviceBindingConfigurationItemProvider.java | 226 + ...tEditHelperAdviceConfigurationItemProvider.java | 98 + .../AbstractMatcherConfigurationItemProvider.java | 120 + .../AdviceBindingConfigurationItemProvider.java | 142 + .../provider/AdviceConfigurationItemProvider.java | 155 + .../provider/ConfigurationElementItemProvider.java | 158 + .../ContainerConfigurationItemProvider.java | 203 + .../EditHelperAdviceConfigurationItemProvider.java | 142 + .../ElementTypeConfigurationItemProvider.java | 244 + .../ElementTypeSetConfigurationItemProvider.java | 243 + ...esConfigurationsItemProviderAdapterFactory.java | 421 + .../types/provider/IconEntryItemProvider.java | 193 + .../provider/MatcherConfigurationItemProvider.java | 142 + .../MetamodelTypeConfigurationItemProvider.java | 165 + ...pecializationTypeConfigurationItemProvider.java | 197 + .../provider/TypesConfigurationsEditPlugin.java | 99 + .../.classpath | 7 + .../.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 288 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 18 + .../about.html | 28 + .../build.properties | 23 + .../obj16/ElementtypesconfigurationsModelFile.gif | Bin 0 -> 346 bytes .../full/obj16/TypesConfigurationsModelFile.gif | Bin 0 -> 346 bytes .../icons/full/obj16/TypesModelFile.gif | Bin 0 -> 346 bytes .../full/wizban/NewElementtypesconfigurations.gif | Bin 0 -> 2462 bytes .../icons/full/wizban/NewTypes.gif | Bin 0 -> 2462 bytes .../icons/full/wizban/NewTypesConfigurations.gif | Bin 0 -> 2462 bytes .../plugin.properties | 85 + .../plugin.xml | 48 + .../org.eclipse.papyrus.infra.types.editor/pom.xml | 12 + ...entTypesConfigurationsActionBarContributor.java | 433 + .../ElementTypesConfigurationsEditor.java | 1829 ++++ .../ElementTypesConfigurationsModelWizard.java | 640 ++ .../TypesConfigurationsEditorPlugin.java | 101 + .../.classpath | 8 + .../.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 28 + .../about.html | 28 + .../build.properties | 26 + ...composedRules_AndInvariantRuleConfiguration.gif | Bin 0 -> 102 bytes ...mposedRules_InvariantContainerConfiguration.gif | Bin 0 -> 223 bytes ...edRules_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...composedRules_NotInvariantRuleConfiguration.gif | Bin 0 -> 85 bytes ..._composedRules_OrInvariantRuleConfiguration.gif | Bin 0 -> 94 bytes ...guration_composedRules_AndRuleConfiguration.gif | Bin 0 -> 223 bytes ...guration_composedRules_NotRuleConfiguration.gif | Bin 0 -> 223 bytes ...iguration_composedRules_OrRuleConfiguration.gif | Bin 0 -> 223 bytes ...rations_InvariantContainerTypeConfiguration.gif | Bin 0 -> 223 bytes ...urations_InvariantSemanticTypeConfiguration.gif | Bin 0 -> 223 bytes ...peConfigurations_InvariantTypeConfiguration.gif | Bin 0 -> 94 bytes ...peConfigurations_RuleBasedTypeConfiguration.gif | Bin 0 -> 223 bytes ...ntTypeConfigurations_RuledTypeConfiguration.gif | Bin 0 -> 223 bytes ...nfiguration_permissions_HierarchyPermission.gif | Bin 0 -> 223 bytes ...nfiguration_permissions_HierarchyPermission.gif | Bin 0 -> 223 bytes ...Configuration_AndInvariantRuleConfiguration.gif | Bin 0 -> 223 bytes ...nfiguration_InvariantContainerConfiguration.gif | Bin 0 -> 223 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...eConfiguration_OrInvariantRuleConfiguration.gif | Bin 0 -> 223 bytes ...Configuration_AndInvariantRuleConfiguration.gif | Bin 0 -> 102 bytes ...uration_InvariantContainerRuleConfiguration.gif | Bin 0 -> 223 bytes ...Configuration_NotInvariantRuleConfiguration.gif | Bin 0 -> 85 bytes ...eConfiguration_OrInvariantRuleConfiguration.gif | Bin 0 -> 94 bytes ..._composedRule_AndInvariantRuleConfiguration.gif | Bin 0 -> 102 bytes ..._composedRule_NotInvariantRuleConfiguration.gif | Bin 0 -> 85 bytes ...n_composedRule_OrInvariantRuleConfiguration.gif | Bin 0 -> 94 bytes ...tion_ruleConfiguration_AndRuleConfiguration.gif | Bin 0 -> 223 bytes ...tion_ruleConfiguration_NotRuleConfiguration.gif | Bin 0 -> 223 bytes ...ation_ruleConfiguration_OrRuleConfiguration.gif | Bin 0 -> 223 bytes ...riantRuleConfiguration_AndRuleConfiguration.gif | Bin 0 -> 223 bytes ...riantRuleConfiguration_NotRuleConfiguration.gif | Bin 0 -> 223 bytes ...ariantRuleConfiguration_OrRuleConfiguration.gif | Bin 0 -> 223 bytes ...tion_ruleConfiguration_AndRuleConfiguration.gif | Bin 0 -> 223 bytes ...tion_ruleConfiguration_NotRuleConfiguration.gif | Bin 0 -> 223 bytes ...ation_ruleConfiguration_OrRuleConfiguration.gif | Bin 0 -> 223 bytes .../full/obj16/AndInvariantRuleConfiguration.gif | Bin 0 -> 102 bytes .../icons/full/obj16/AndRuleConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/HierarchyPermission.gif | Bin 0 -> 129 bytes .../full/obj16/InvariantContainerConfiguration.gif | Bin 0 -> 129 bytes .../obj16/InvariantContainerRuleConfiguration.gif | Bin 0 -> 129 bytes .../obj16/InvariantContainerTypeConfiguration.gif | Bin 0 -> 129 bytes .../obj16/InvariantSemanticTypeConfiguration.gif | Bin 0 -> 129 bytes .../full/obj16/InvariantTypeConfiguration.gif | Bin 0 -> 94 bytes .../full/obj16/NotInvariantRuleConfiguration.gif | Bin 0 -> 85 bytes .../icons/full/obj16/NotRuleConfiguration.gif | Bin 0 -> 129 bytes .../full/obj16/OrInvariantRuleConfiguration.gif | Bin 0 -> 94 bytes .../icons/full/obj16/OrRuleConfiguration.gif | Bin 0 -> 129 bytes .../full/obj16/RuleBasedTypeConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/RuledTypeConfiguration.gif | Bin 0 -> 129 bytes .../model/RuleBased.ecore | 21 + .../model/RuleBased.genmodel | 29 + .../model/rulebased.elementtypesconfigurations | 5 + .../plugin.properties | 31 + .../plugin.xml | 58 + .../pom.xml | 12 + .../schema/ruleKind.exsd | 112 + .../types/rulebased/AndRuleConfiguration.java | 27 + .../rulebased/CompositeRuleConfiguration.java | 50 + .../types/rulebased/NotRuleConfiguration.java | 59 + .../infra/types/rulebased/OrRuleConfiguration.java | 27 + .../infra/types/rulebased/RuleBasedFactory.java | 79 + .../infra/types/rulebased/RuleBasedPackage.java | 576 ++ .../rulebased/RuleBasedTypeConfiguration.java | 60 + .../infra/types/rulebased/RuleConfiguration.java | 28 + .../rulebased/impl/AndRuleConfigurationImpl.java | 47 + .../impl/CompositeRuleConfigurationImpl.java | 160 + .../rulebased/impl/NotRuleConfigurationImpl.java | 166 + .../rulebased/impl/OrRuleConfigurationImpl.java | 47 + .../types/rulebased/impl/RuleBasedFactoryImpl.java | 138 + .../types/rulebased/impl/RuleBasedPackageImpl.java | 329 + .../impl/RuleBasedTypeConfigurationImpl.java | 187 + .../rulebased/impl/RuleConfigurationImpl.java | 49 + .../provider/AndRuleConfigurationItemProvider.java | 104 + .../CompositeRuleConfigurationItemProvider.java | 151 + .../provider/NotRuleConfigurationItemProvider.java | 130 + .../provider/OrRuleConfigurationItemProvider.java | 104 + .../rulebased/provider/RuleBasedEditPlugin.java | 105 + .../RuleBasedItemProviderAdapterFactory.java | 422 + .../RuleBasedTypeConfigurationItemProvider.java | 167 + .../provider/RuleConfigurationItemProvider.java | 120 + .../rulebased/util/RuleBasedAdapterFactory.java | 316 + .../util/RuleBasedResourceFactoryImpl.java | 51 + .../rulebased/util/RuleBasedResourceImpl.java | 38 + .../types/rulebased/util/RuleBasedSwitch.java | 317 + .../papyrus/infra/types/rulebased/Activator.java | 74 + .../infra/types/rulebased/core/AbstractRule.java | 101 + .../infra/types/rulebased/core/DefaultRule.java | 57 + .../core/DefaultRuleEditHelperAdvice.java | 230 + .../rulebased/core/DefaultRuleElementMatcher.java | 97 + .../papyrus/infra/types/rulebased/core/IRule.java | 25 + .../types/rulebased/core/IRuleExtensionPoint.java | 28 + .../core/RuleConfigurationTypeRegistry.java | 77 + .../rulebased/core/RuleElementTypeFactory.java | 30 + .../org.eclipse.papyrus.infra.types.ui/.classpath | 7 + .../org.eclipse.papyrus.infra.types.ui/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 17 + .../org.eclipse.papyrus.infra.types.ui/about.html | 28 + .../build.properties | 13 + .../icons/configuration.gif | Bin 0 -> 341 bytes .../icons/error.gif | Bin 0 -> 353 bytes .../plugin.properties | 15 + .../org.eclipse.papyrus.infra.types.ui/plugin.xml | 86 + .../org.eclipse.papyrus.infra.types.ui/pom.xml | 12 + .../infra/types/core/internal/ui/LogUtil.java | 33 + .../DeployElementTypeSetConfigurationHandler.java | 155 + ...UndeployElementTypeSetConfigurationHandler.java | 174 + .../ui/providers/ClientContextContentProvider.java | 35 + .../org.eclipse.papyrus.infra.types/.classpath | 8 + .../types/org.eclipse.papyrus.infra.types/.project | 28 + .../.settings/org.eclipse.core.resources.prefs | 2 + .../META-INF/MANIFEST.MF | 17 + .../org.eclipse.papyrus.infra.types/about.html | 28 + .../build.properties | 21 + .../model/ElementTypesConfigurations.ecore | 98 + .../model/ElementTypesConfigurations.ecore_diagram | 555 ++ .../model/ElementTypesConfigurations.genmodel | 84 + .../plugin.properties | 16 + .../org.eclipse.papyrus.infra.types/plugin.xml | 53 + .../types/org.eclipse.papyrus.infra.types/pom.xml | 12 + .../types/AbstractAdviceBindingConfiguration.java | 143 + .../AbstractEditHelperAdviceConfiguration.java | 61 + .../infra/types/AbstractMatcherConfiguration.java | 28 + .../infra/types/AdviceBindingConfiguration.java | 59 + .../papyrus/infra/types/AdviceConfiguration.java | 67 + .../papyrus/infra/types/ConfigurationElement.java | 60 + .../infra/types/ContainerConfiguration.java | 80 + .../infra/types/EditHelperAdviceConfiguration.java | 59 + .../infra/types/ElementTypeConfiguration.java | 115 + .../infra/types/ElementTypeSetConfiguration.java | 94 + .../types/ElementTypesConfigurationsFactory.java | 115 + .../types/ElementTypesConfigurationsPackage.java | 2056 +++++ .../org/eclipse/papyrus/infra/types/IconEntry.java | 87 + .../infra/types/IdentifiedConfiguration.java | 60 + .../papyrus/infra/types/InheritanceKind.java | 224 + .../papyrus/infra/types/MatcherConfiguration.java | 59 + .../infra/types/MetamodelTypeConfiguration.java | 87 + .../papyrus/infra/types/NamedConfiguration.java | 60 + .../types/SpecializationTypeConfiguration.java | 133 + .../AbstractAdviceBindingConfigurationImpl.java | 469 + .../AbstractEditHelperAdviceConfigurationImpl.java | 205 + .../impl/AbstractMatcherConfigurationImpl.java | 49 + .../types/impl/AdviceBindingConfigurationImpl.java | 172 + .../infra/types/impl/AdviceConfigurationImpl.java | 193 + .../infra/types/impl/ConfigurationElementImpl.java | 173 + .../types/impl/ContainerConfigurationImpl.java | 228 + .../impl/EditHelperAdviceConfigurationImpl.java | 172 + .../types/impl/ElementTypeConfigurationImpl.java | 461 + .../impl/ElementTypeSetConfigurationImpl.java | 422 + .../ElementTypesConfigurationsFactoryImpl.java | 233 + .../ElementTypesConfigurationsPackageImpl.java | 852 ++ .../papyrus/infra/types/impl/IconEntryImpl.java | 227 + .../infra/types/impl/MatcherConfigurationImpl.java | 172 + .../types/impl/MetamodelTypeConfigurationImpl.java | 233 + .../impl/SpecializationTypeConfigurationImpl.java | 392 + .../ElementTypesConfigurationsAdapterFactory.java | 400 + ...mentTypesConfigurationsResourceFactoryImpl.java | 51 + .../ElementTypesConfigurationsResourceImpl.java | 38 + .../util/ElementTypesConfigurationsSwitch.java | 463 + ...mentTypesConfigurationsResourceFactoryImpl.java | 27 + ...stomElementTypesConfigurationsResourceImpl.java | 28 + plugins/infra/types/pom.xml | 22 + .../META-INF/MANIFEST.MF | 2 +- .../ExtendedElementTypeSetRegistry.java | 2 +- .../extendedtypes/UserExtendedTypesRegistry.java | 2 +- .../META-INF/MANIFEST.MF | 4 +- .../sysml-activities.elementtypesconfigurations | 50 +- .../sysml-allocations.elementtypesconfigurations | 20 +- .../model/sysml-blocks.elementtypesconfigurations | 64 +- .../sysml-constraints.elementtypesconfigurations | 14 +- .../sysml-modelelements.elementtypesconfigurations | 32 +- .../sysml-portsandflows.elementtypesconfigurations | 26 +- .../sysml-requirements.elementtypesconfigurations | 44 +- .../model/sysml.elementtypesconfigurations | 492 +- .../plugin.xml | 16 +- .../META-INF/MANIFEST.MF | 6 +- .../plugin.xml | 2 +- .../internal/wizards/GenerateAssistantsWizard.java | 16 +- .../META-INF/MANIFEST.MF | 4 +- .../generator/ConnectionAssistantRule.xtend | 10 +- .../profile/assistants/generator/FiltersUtil.xtend | 4 +- .../assistants/generator/GeneratorModule.java | 6 +- .../generator/ModelingAssistantProviderRule.xtend | 6 +- .../generator/ModelingAssistantsGenerator.java | 4 +- .../assistants/generator/PopupAssistantRule.xtend | 10 +- .../.classpath | 7 - .../.project | 29 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 35 - .../about.html | 28 - .../build.properties | 20 - .../icons/full/obj16/plugin.gif | Bin 328 -> 0 bytes .../icons/full/obj16/project.png | Bin 454 -> 0 bytes .../plugin.properties | 13 - .../plugin.xml | 52 - .../pom.xml | 12 - .../generator/ui/internal/Activator.java | 55 - .../handlers/GenerateElementTypesHandler.java | 62 - .../internal/wizards/BaseElementTypeSetBlock.java | 340 - .../ui/internal/wizards/GeneratorMainPage.java | 78 - .../internal/wizards/GeneratorParametersBlock.java | 119 - .../ui/internal/wizards/GeneratorWizard.java | 168 - .../ui/internal/wizards/GeneratorWizardModel.java | 164 - .../ui/internal/wizards/IGeneratorWizardPage.java | 33 - .../.classpath | 8 - .../.project | 35 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../.settings/org.eclipse.xtend.core.Xtend.prefs | 30 - .../META-INF/MANIFEST.MF | 24 - .../about.html | 28 - .../build.properties | 19 - .../plugin.properties | 13 - .../pom.xml | 50 - .../generator/AbstractGenerator.java | 153 - .../generator/ApplyStereotypeAdviceRule.xtend | 46 - .../generator/ConfigurationSetRule.xtend | 60 - .../generator/ElementTypeRule.xtend | 100 - .../generator/ElementTypesGenerator.java | 41 - .../generator/GeneratorModule.java | 77 - .../generator/Identifiers.xtend | 112 - .../generator/ImpliedExtension.xtend | 28 - .../generator/InputModel.java | 31 - .../generator/OutputModel.java | 31 - .../elementtypesconfigurations/generator/UML.xtend | 117 - .../generator/UMLElementTypes.xtend | 226 - .../generator/internal/Activator.java | 47 - .../xtend-gen/.gitignore | 1 - .../.classpath | 7 + .../.project | 29 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 35 + .../about.html | 28 + .../build.properties | 20 + .../icons/full/obj16/plugin.gif | Bin 0 -> 328 bytes .../icons/full/obj16/project.png | Bin 0 -> 454 bytes .../plugin.properties | 13 + .../plugin.xml | 52 + .../pom.xml | 12 + .../types/generator/ui/internal/Activator.java | 55 + .../handlers/GenerateElementTypesHandler.java | 62 + .../internal/wizards/BaseElementTypeSetBlock.java | 340 + .../ui/internal/wizards/GeneratorMainPage.java | 78 + .../internal/wizards/GeneratorParametersBlock.java | 119 + .../ui/internal/wizards/GeneratorWizard.java | 168 + .../ui/internal/wizards/GeneratorWizardModel.java | 164 + .../ui/internal/wizards/IGeneratorWizardPage.java | 33 + .../.classpath | 8 + .../.project | 35 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../.settings/org.eclipse.xtend.core.Xtend.prefs | 30 + .../META-INF/MANIFEST.MF | 24 + .../about.html | 28 + .../build.properties | 19 + .../plugin.properties | 13 + .../pom.xml | 50 + .../profile/types/generator/AbstractGenerator.java | 153 + .../generator/ApplyStereotypeAdviceRule.xtend | 45 + .../types/generator/ConfigurationSetRule.xtend | 60 + .../profile/types/generator/ElementTypeRule.xtend | 101 + .../types/generator/ElementTypesGenerator.java | 41 + .../profile/types/generator/GeneratorModule.java | 77 + .../uml/profile/types/generator/Identifiers.xtend | 112 + .../profile/types/generator/ImpliedExtension.xtend | 28 + .../uml/profile/types/generator/InputModel.java | 31 + .../uml/profile/types/generator/OutputModel.java | 31 + .../papyrus/uml/profile/types/generator/UML.xtend | 117 + .../profile/types/generator/UMLElementTypes.xtend | 226 + .../types/generator/internal/Activator.java | 47 + .../xtend-gen/.gitignore | 1 + plugins/uml/assistants/pom.xml | 4 +- .../activityDiagram.elementtypesconfigurations | 1520 ++-- .../plugin.xml | 2 +- .../META-INF/MANIFEST.MF | 2 +- ...lassdiagram-notation.elementtypesconfigurations | 8 +- .../model/classdiagram.elementtypesconfigurations | 810 +- .../plugin.xml | 4 +- ...nentDiagram-notation.elementtypesconfigurations | 14 +- .../ComponentDiagram.elementtypesconfigurations | 278 +- .../plugin.xml | 4 +- .../META-INF/MANIFEST.MF | 2 +- ...sitediagram-notation.elementtypesconfigurations | 20 +- .../compositediagram.elementtypesconfigurations | 842 +- .../plugin.xml | 4 +- ...mentDiagram-notation.elementtypesconfigurations | 8 +- .../DeploymentDiagram.elementtypesconfigurations | 286 +- .../plugin.xml | 4 +- .../META-INF/MANIFEST.MF | 1 - ...ctionOverviewDiagram.elementtypesconfigurations | 22 +- .../plugin.xml | 2 +- .../profilediagram.elementtypesconfigurations | 340 +- .../plugin.xml | 2 +- .../stateMachineDiagram.elementtypesconfigurations | 224 +- .../plugin.xml | 2 +- .../META-INF/MANIFEST.MF | 2 +- ...caseDiagram-notation.elementtypesconfigurations | 8 +- .../usecaseDiagram.elementtypesconfigurations | 276 +- .../plugin.xml | 4 +- .../META-INF/MANIFEST.MF | 2 +- .../generator/NewChildMenuGenerator.xtend | 4 +- .../.classpath | 8 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 52 - .../about.html | 28 - .../build.properties | 8 - .../icons/Stereotype.gif | Bin 605 -> 0 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 223 -> 0 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 223 -> 0 bytes ...tion_StereotypedElementMatcherConfiguration.gif | Bin 223 -> 0 bytes ...ration_stereotypesToApply_StereotypeToApply.gif | Bin 223 -> 0 bytes ...ration_stereotypesToApply_StereotypeToApply.gif | Bin 223 -> 0 bytes ...posedRules_InvariantStereotypeConfiguration.gif | Bin 223 -> 0 bytes ...dRules_InvariantStereotypeRuleConfiguration.gif | Bin 223 -> 0 bytes .../CreateConstantValue_valueInstance_Duration.gif | Bin 223 -> 0 bytes ...onstantValue_valueInstance_DurationInterval.gif | Bin 223 -> 0 bytes ...reateConstantValue_valueInstance_Expression.gif | Bin 223 -> 0 bytes ...teConstantValue_valueInstance_InstanceValue.gif | Bin 223 -> 0 bytes .../CreateConstantValue_valueInstance_Interval.gif | Bin 223 -> 0 bytes ...eConstantValue_valueInstance_LiteralBoolean.gif | Bin 223 -> 0 bytes ...eConstantValue_valueInstance_LiteralInteger.gif | Bin 223 -> 0 bytes ...eateConstantValue_valueInstance_LiteralNull.gif | Bin 223 -> 0 bytes ...eateConstantValue_valueInstance_LiteralReal.gif | Bin 223 -> 0 bytes ...teConstantValue_valueInstance_LiteralString.gif | Bin 223 -> 0 bytes ...Value_valueInstance_LiteralUnlimitedNatural.gif | Bin 223 -> 0 bytes ...onstantValue_valueInstance_OpaqueExpression.gif | Bin 223 -> 0 bytes ...onstantValue_valueInstance_StringExpression.gif | Bin 223 -> 0 bytes ...eConstantValue_valueInstance_TimeExpression.gif | Bin 223 -> 0 bytes ...ateConstantValue_valueInstance_TimeInterval.gif | Bin 223 -> 0 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 223 -> 0 bytes ...tion_StereotypedElementMatcherConfiguration.gif | Bin 223 -> 0 bytes ...urations_ApplyStereotypeActionConfiguration.gif | Bin 223 -> 0 bytes ...urations_ApplyStereotypeAdviceConfiguration.gif | Bin 223 -> 0 bytes ...gsConfigurations_SetTypeActionConfiguration.gif | Bin 223 -> 0 bytes ...gsConfigurations_SetTypeAdviceConfiguration.gif | Bin 223 -> 0 bytes .../CreateFeatureToSet_value_ConstantValue.gif | Bin 223 -> 0 bytes .../ctool16/CreateFeatureToSet_value_ListValue.gif | Bin 223 -> 0 bytes ...reateFeatureToSet_value_QueryExecutionValue.gif | Bin 223 -> 0 bytes ...figuration_InvariantStereotypeConfiguration.gif | Bin 223 -> 0 bytes ...ration_InvariantStereotypeRuleConfiguration.gif | Bin 223 -> 0 bytes ...ration_InvariantStereotypeRuleConfiguration.gif | Bin 223 -> 0 bytes ...edRule_InvariantStereotypeRuleConfiguration.gif | Bin 223 -> 0 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 223 -> 0 bytes ...tion_StereotypedElementMatcherConfiguration.gif | Bin 223 -> 0 bytes ...tereotypeToApply_featuresToSet_FeatureToSet.gif | Bin 223 -> 0 bytes .../obj16/ApplyStereotypeActionConfiguration.gif | Bin 129 -> 0 bytes .../obj16/ApplyStereotypeAdviceConfiguration.gif | Bin 129 -> 0 bytes .../icons/full/obj16/ConstantValue.gif | Bin 129 -> 0 bytes .../icons/full/obj16/FeatureToSet.gif | Bin 129 -> 0 bytes .../obj16/InvariantStereotypeConfiguration.gif | Bin 129 -> 0 bytes .../obj16/InvariantStereotypeRuleConfiguration.gif | Bin 129 -> 0 bytes .../icons/full/obj16/ListValue.gif | Bin 129 -> 0 bytes .../icons/full/obj16/QueryExecutionValue.gif | Bin 129 -> 0 bytes .../full/obj16/SetTypeActionConfiguration.gif | Bin 129 -> 0 bytes .../full/obj16/SetTypeAdviceConfiguration.gif | Bin 129 -> 0 bytes .../StereotypeApplicationMatcherConfiguration.gif | Bin 129 -> 0 bytes .../icons/full/obj16/StereotypeToApply.gif | Bin 129 -> 0 bytes .../StereotypedElementMatcherConfiguration.gif | Bin 129 -> 0 bytes .../model/ApplyStereotypeAdviceConfiguration.ecore | 36 - .../ApplyStereotypeAdviceConfiguration.genmodel | 38 - .../InvariantStereotypeRuleConfiguration.ecore | 13 - .../InvariantStereotypeRuleConfiguration.genmodel | 22 - .../model/SetTypeAdviceConfiguration.ecore | 11 - .../model/SetTypeAdviceConfiguration.genmodel | 21 - ...StereotypeApplicationMatcherConfiguration.ecore | 11 - ...reotypeApplicationMatcherConfiguration.genmodel | 21 - .../plugin.properties | 50 - .../plugin.xml | 170 - .../pom.xml | 12 - .../ApplyStereotypeAdviceConfiguration.java | 52 - .../ApplyStereotypeAdviceConfigurationFactory.java | 97 - .../ApplyStereotypeAdviceConfigurationPackage.java | 731 -- .../ConstantValue.java | 60 - .../DynamicValue.java | 27 - .../FeatureToSet.java | 87 - .../FeatureValue.java | 28 - .../ListValue.java | 50 - .../QueryExecutionValue.java | 27 - .../StereotypeToApply.java | 123 - ...lyStereotypeAdviceConfigurationFactoryImpl.java | 160 - .../ApplyStereotypeAdviceConfigurationImpl.java | 162 - ...lyStereotypeAdviceConfigurationPackageImpl.java | 442 - .../impl/ConstantValueImpl.java | 186 - .../impl/DynamicValueImpl.java | 47 - .../impl/FeatureToSetImpl.java | 254 - .../impl/FeatureValueImpl.java | 49 - .../impl/ListValueImpl.java | 160 - .../impl/QueryExecutionValueImpl.java | 47 - .../impl/StereotypeToApplyImpl.java | 323 - ...plyStereotypeAdviceConfigurationEditPlugin.java | 108 - ...yStereotypeAdviceConfigurationItemProvider.java | 170 - ...iceConfigurationItemProviderAdapterFactory.java | 433 - .../provider/ConstantValueItemProvider.java | 223 - .../provider/DynamicValueItemProvider.java | 93 - .../provider/FeatureToSetItemProvider.java | 219 - .../provider/FeatureValueItemProvider.java | 119 - .../provider/ListValueItemProvider.java | 130 - .../provider/QueryExecutionValueItemProvider.java | 104 - .../provider/StereotypeToApplyItemProvider.java | 257 - ...tereotypeAdviceConfigurationAdapterFactory.java | 333 - ...typeAdviceConfigurationResourceFactoryImpl.java | 51 - ...yStereotypeAdviceConfigurationResourceImpl.java | 38 - .../ApplyStereotypeAdviceConfigurationSwitch.java | 341 - ...yStereotypeAdviceConfigurationXMLProcessor.java | 60 - .../InvariantStereotypeRuleConfiguration.java | 114 - ...nvariantStereotypeRuleConfigurationFactory.java | 52 - ...nvariantStereotypeRuleConfigurationPackage.java | 228 - ...iantStereotypeRuleConfigurationFactoryImpl.java | 105 - .../InvariantStereotypeRuleConfigurationImpl.java | 283 - ...iantStereotypeRuleConfigurationPackageImpl.java | 227 - ...riantStereotypeRuleConfigurationEditPlugin.java | 107 - ...antStereotypeRuleConfigurationItemProvider.java | 197 - ...uleConfigurationItemProviderAdapterFactory.java | 341 - ...tStereotypeRuleConfigurationAdapterFactory.java | 151 - ...eotypeRuleConfigurationResourceFactoryImpl.java | 51 - ...antStereotypeRuleConfigurationResourceImpl.java | 38 - ...InvariantStereotypeRuleConfigurationSwitch.java | 141 - ...antStereotypeRuleConfigurationXMLProcessor.java | 60 - .../SetTypeAdviceConfiguration.java | 69 - .../SetTypeAdviceConfigurationFactory.java | 52 - .../SetTypeAdviceConfigurationPackage.java | 272 - .../SetTypeAdviceConfigurationFactoryImpl.java | 105 - .../impl/SetTypeAdviceConfigurationImpl.java | 195 - .../SetTypeAdviceConfigurationPackageImpl.java | 210 - .../SetTypeAdviceConfigurationEditPlugin.java | 105 - .../SetTypeAdviceConfigurationItemProvider.java | 181 - ...iceConfigurationItemProviderAdapterFactory.java | 313 - .../SetTypeAdviceConfigurationAdapterFactory.java | 207 - .../util/SetTypeAdviceConfigurationSwitch.java | 189 - .../StereotypeApplicationMatcherConfiguration.java | 79 - ...typeApplicationMatcherConfigurationFactory.java | 52 - ...typeApplicationMatcherConfigurationPackage.java | 200 - ...ApplicationMatcherConfigurationFactoryImpl.java | 105 - ...reotypeApplicationMatcherConfigurationImpl.java | 217 - ...ApplicationMatcherConfigurationPackageImpl.java | 210 - ...eApplicationMatcherConfigurationEditPlugin.java | 105 - ...pplicationMatcherConfigurationItemProvider.java | 181 - ...herConfigurationItemProviderAdapterFactory.java | 345 - ...licationMatcherConfigurationAdapterFactory.java | 150 - ...ionMatcherConfigurationResourceFactoryImpl.java | 51 - ...pplicationMatcherConfigurationResourceImpl.java | 38 - ...otypeApplicationMatcherConfigurationSwitch.java | 138 - ...pplicationMatcherConfigurationXMLProcessor.java | 60 - .../uml/elementtypesconfigurations/Activator.java | 78 - .../ApplyStereotypeAdviceEditHelperAdvice.java | 216 - .../ApplyStereotypeAdviceFactory.java | 33 - .../StereotypeFeatureValueUtils.java | 130 - .../commands/AbstractProfilingCommand.java | 79 - .../commands/ApplyProfileCommand.java | 63 - .../commands/ApplyStereotypeCommand.java | 63 - .../commands/SetStereotypeValueCommand.java | 65 - .../commands/UnapplyProfileCommand.java | 63 - .../commands/UnapplyStereotypeCommand.java | 63 - .../edithelper/DefaultUMLEditHelper.java | 96 - .../edithelper/DefaultUMLEditHelperAdvice.java | 152 - .../InvariantStereotypeRule.java | 193 - .../requests/AbstractProfileRequest.java | 90 - .../requests/AbstractStereotypeRequest.java | 88 - .../requests/ApplyProfileRequest.java | 34 - .../requests/ApplyStereotypeRequest.java | 33 - .../requests/SetStereotypeValueRequest.java | 111 - .../requests/UnapplyProfileRequest.java | 26 - .../requests/UnapplyStereotypeRequest.java | 34 - .../SetTypeAdviceEditHelperAdvice.java | 116 - .../SetTypeAdviceFactory.java | 33 - .../StereotypeApplicationMatcher.java | 83 - .../StereotypeApplicationMatcherFactory.java | 30 - .../umlinvariantrule/AbstractUmlInvariantRule.java | 93 - .../META-INF/MANIFEST.MF | 2 +- .../model/uml-advice.elementtypesconfigurations | 132 +- .../plugin.xml | 2 +- .../META-INF/MANIFEST.MF | 4 +- .../StandardProfile.elementtypesconfigurations | 14 +- .../uml-containments.elementtypesconfigurations | 674 +- .../model/uml.elementtypesconfigurations | 2202 ++--- .../plugin.xml | 6 +- .../service/types/helper/ElementEditHelper.java | 2 +- ...eatureRelationshipReorientEditHelperAdvice.java | 2 +- .../org.eclipse.papyrus.uml.types.core/.classpath | 8 + .../org.eclipse.papyrus.uml.types.core/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 55 + .../org.eclipse.papyrus.uml.types.core/about.html | 28 + .../build.properties | 6 + .../icons/Stereotype.gif | Bin 0 -> 605 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 0 -> 223 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 0 -> 223 bytes ...tion_StereotypedElementMatcherConfiguration.gif | Bin 0 -> 223 bytes ...ration_stereotypesToApply_StereotypeToApply.gif | Bin 0 -> 223 bytes ...ration_stereotypesToApply_StereotypeToApply.gif | Bin 0 -> 223 bytes ...posedRules_InvariantStereotypeConfiguration.gif | Bin 0 -> 223 bytes ...dRules_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes ...dRules_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes .../CreateConstantValue_valueInstance_Duration.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_DurationInterval.gif | Bin 0 -> 223 bytes ...reateConstantValue_valueInstance_Expression.gif | Bin 0 -> 223 bytes ...teConstantValue_valueInstance_InstanceValue.gif | Bin 0 -> 223 bytes .../CreateConstantValue_valueInstance_Interval.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_LiteralBoolean.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_LiteralInteger.gif | Bin 0 -> 223 bytes ...eateConstantValue_valueInstance_LiteralNull.gif | Bin 0 -> 223 bytes ...eateConstantValue_valueInstance_LiteralReal.gif | Bin 0 -> 223 bytes ...teConstantValue_valueInstance_LiteralString.gif | Bin 0 -> 223 bytes ...Value_valueInstance_LiteralUnlimitedNatural.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_OpaqueExpression.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_StringExpression.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_TimeExpression.gif | Bin 0 -> 223 bytes ...ateConstantValue_valueInstance_TimeInterval.gif | Bin 0 -> 223 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 0 -> 223 bytes ...tion_StereotypedElementMatcherConfiguration.gif | Bin 0 -> 223 bytes ...urations_ApplyStereotypeActionConfiguration.gif | Bin 0 -> 223 bytes ...urations_ApplyStereotypeAdviceConfiguration.gif | Bin 0 -> 223 bytes ...gsConfigurations_SetTypeActionConfiguration.gif | Bin 0 -> 223 bytes ...gsConfigurations_SetTypeAdviceConfiguration.gif | Bin 0 -> 223 bytes .../CreateFeatureToSet_value_ConstantValue.gif | Bin 0 -> 223 bytes .../ctool16/CreateFeatureToSet_value_ListValue.gif | Bin 0 -> 223 bytes ...reateFeatureToSet_value_QueryExecutionValue.gif | Bin 0 -> 223 bytes ...figuration_InvariantStereotypeConfiguration.gif | Bin 0 -> 223 bytes ...ration_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes ...ration_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes ...edRule_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes ...ration_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes ...ration_InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 223 bytes ...n_StereotypeApplicationMatcherConfiguration.gif | Bin 0 -> 223 bytes ...tion_StereotypedElementMatcherConfiguration.gif | Bin 0 -> 223 bytes ...tereotypeToApply_featuresToSet_FeatureToSet.gif | Bin 0 -> 223 bytes .../obj16/ApplyStereotypeActionConfiguration.gif | Bin 0 -> 129 bytes .../obj16/ApplyStereotypeAdviceConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ConstantValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/FeatureToSet.gif | Bin 0 -> 129 bytes .../obj16/InvariantStereotypeConfiguration.gif | Bin 0 -> 129 bytes .../obj16/InvariantStereotypeRuleConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ListValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/QueryExecutionValue.gif | Bin 0 -> 129 bytes .../full/obj16/SetTypeActionConfiguration.gif | Bin 0 -> 129 bytes .../full/obj16/SetTypeAdviceConfiguration.gif | Bin 0 -> 129 bytes .../StereotypeApplicationMatcherConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/StereotypeToApply.gif | Bin 0 -> 129 bytes .../StereotypedElementMatcherConfiguration.gif | Bin 0 -> 129 bytes .../model/ApplyStereotypeAdvice.ecore | 36 + .../model/ApplyStereotypeAdvice.genmodel | 36 + .../model/InvariantStereotypeRule.ecore | 13 + .../model/InvariantStereotypeRule.genmodel | 21 + .../model/SetTypeAdvice.ecore | 11 + .../model/SetTypeAdvice.genmodel | 21 + .../model/StereotypeMatcher.ecore | 11 + .../model/StereotypeMatcher.genmodel | 19 + .../plugin.properties | 50 + .../org.eclipse.papyrus.uml.types.core/plugin.xml | 185 + .../uml/org.eclipse.papyrus.uml.types.core/pom.xml | 12 + .../ApplyStereotypeAdviceConfiguration.java | 52 + .../ApplyStereotypeAdviceFactory.java | 97 + .../ApplyStereotypeAdvicePackage.java | 731 ++ .../advices/applystereotype/ConstantValue.java | 60 + .../core/advices/applystereotype/DynamicValue.java | 27 + .../core/advices/applystereotype/FeatureToSet.java | 87 + .../core/advices/applystereotype/FeatureValue.java | 28 + .../core/advices/applystereotype/ListValue.java | 50 + .../applystereotype/QueryExecutionValue.java | 27 + .../advices/applystereotype/StereotypeToApply.java | 123 + .../ApplyStereotypeAdviceConfigurationImpl.java | 162 + .../impl/ApplyStereotypeAdviceFactoryImpl.java | 160 + .../impl/ApplyStereotypeAdvicePackageImpl.java | 442 + .../applystereotype/impl/ConstantValueImpl.java | 186 + .../applystereotype/impl/DynamicValueImpl.java | 47 + .../applystereotype/impl/FeatureToSetImpl.java | 254 + .../applystereotype/impl/FeatureValueImpl.java | 49 + .../applystereotype/impl/ListValueImpl.java | 160 + .../impl/QueryExecutionValueImpl.java | 47 + .../impl/StereotypeToApplyImpl.java | 323 + ...yStereotypeAdviceConfigurationItemProvider.java | 170 + .../provider/ApplyStereotypeAdviceEditPlugin.java | 108 + ...StereotypeAdviceItemProviderAdapterFactory.java | 433 + .../provider/ConstantValueItemProvider.java | 223 + .../provider/DynamicValueItemProvider.java | 93 + .../provider/FeatureToSetItemProvider.java | 219 + .../provider/FeatureValueItemProvider.java | 119 + .../provider/ListValueItemProvider.java | 130 + .../provider/QueryExecutionValueItemProvider.java | 104 + .../provider/StereotypeToApplyItemProvider.java | 257 + .../util/ApplyStereotypeAdviceAdapterFactory.java | 333 + .../ApplyStereotypeAdviceResourceFactoryImpl.java | 51 + .../util/ApplyStereotypeAdviceResourceImpl.java | 38 + .../util/ApplyStereotypeAdviceSwitch.java | 341 + .../util/ApplyStereotypeAdviceXMLProcessor.java | 60 + .../settype/SetTypeAdviceConfiguration.java | 69 + .../settype/SetTypeAdviceConfigurationFactory.java | 52 + .../settype/SetTypeAdviceConfigurationPackage.java | 272 + .../SetTypeAdviceConfigurationFactoryImpl.java | 105 + .../impl/SetTypeAdviceConfigurationImpl.java | 195 + .../SetTypeAdviceConfigurationPackageImpl.java | 210 + .../SetTypeAdviceConfigurationItemProvider.java | 181 + ...iceConfigurationItemProviderAdapterFactory.java | 313 + .../settype/provider/SetTypeAdviceEditPlugin.java | 105 + .../SetTypeAdviceConfigurationAdapterFactory.java | 207 + .../util/SetTypeAdviceConfigurationSwitch.java | 189 + .../StereotypeApplicationMatcherConfiguration.java | 79 + .../StereotypeApplicationMatcherFactory.java | 52 + .../StereotypeApplicationMatcherPackage.java | 200 + ...reotypeApplicationMatcherConfigurationImpl.java | 217 + .../StereotypeApplicationMatcherFactoryImpl.java | 105 + .../StereotypeApplicationMatcherPackageImpl.java | 210 + ...eApplicationMatcherConfigurationEditPlugin.java | 105 + ...pplicationMatcherConfigurationItemProvider.java | 181 + ...plicationMatcherItemProviderAdapterFactory.java | 345 + ...StereotypeApplicationMatcherAdapterFactory.java | 150 + ...otypeApplicationMatcherResourceFactoryImpl.java | 51 + .../StereotypeApplicationMatcherResourceImpl.java | 38 + .../util/StereotypeApplicationMatcherSwitch.java | 138 + .../StereotypeApplicationMatcherXMLProcessor.java | 60 + .../InvariantStereotypeRuleConfiguration.java | 112 + ...nvariantStereotypeRuleConfigurationFactory.java | 52 + ...nvariantStereotypeRuleConfigurationPackage.java | 228 + ...iantStereotypeRuleConfigurationFactoryImpl.java | 105 + .../InvariantStereotypeRuleConfigurationImpl.java | 280 + ...iantStereotypeRuleConfigurationPackageImpl.java | 226 + ...riantStereotypeRuleConfigurationEditPlugin.java | 107 + ...antStereotypeRuleConfigurationItemProvider.java | 194 + ...uleConfigurationItemProviderAdapterFactory.java | 324 + ...tStereotypeRuleConfigurationAdapterFactory.java | 148 + ...eotypeRuleConfigurationResourceFactoryImpl.java | 51 + ...antStereotypeRuleConfigurationResourceImpl.java | 38 + ...InvariantStereotypeRuleConfigurationSwitch.java | 138 + ...antStereotypeRuleConfigurationXMLProcessor.java | 60 + .../eclipse/papyrus/uml/types/core/Activator.java | 78 + .../ApplyStereotypeAdviceConfigurationFactory.java | 34 + .../ApplyStereotypeAdviceEditHelperAdvice.java | 216 + .../StereotypeFeatureValueUtils.java | 130 + .../settype/SetTypeAdviceEditHelperAdvice.java | 116 + .../core/advices/settype/SetTypeAdviceFactory.java | 34 + .../core/commands/AbstractProfilingCommand.java | 79 + .../types/core/commands/ApplyProfileCommand.java | 63 + .../core/commands/ApplyStereotypeCommand.java | 63 + .../core/commands/SetStereotypeValueCommand.java | 65 + .../types/core/commands/UnapplyProfileCommand.java | 63 + .../core/commands/UnapplyStereotypeCommand.java | 63 + .../core/edithelper/DefaultUMLEditHelper.java | 96 + .../edithelper/DefaultUMLEditHelperAdvice.java | 152 + .../stereotype/StereotypeApplicationMatcher.java | 83 + ...typeApplicationMatcherConfigurationFactory.java | 31 + .../core/requests/AbstractProfileRequest.java | 90 + .../core/requests/AbstractStereotypeRequest.java | 88 + .../types/core/requests/ApplyProfileRequest.java | 34 + .../core/requests/ApplyStereotypeRequest.java | 33 + .../core/requests/SetStereotypeValueRequest.java | 111 + .../types/core/requests/UnapplyProfileRequest.java | 26 + .../core/requests/UnapplyStereotypeRequest.java | 34 + .../uml/types/core/rules/AbstractUmlRule.java | 94 + .../InvariantStereotypeRule.java | 194 + plugins/uml/pom.xml | 2 +- releng/main-tests/pom.xml | 6 +- .../.classpath | 7 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 296 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 21 - .../about.html | 28 - .../build.properties | 21 - .../icons/M.gif | Bin 912 -> 0 bytes .../icons/O.gif | Bin 912 -> 0 bytes .../icons/Values.gif | Bin 361 -> 0 bytes .../icons/debug.gif | Bin 348 -> 0 bytes .../model/ElementTypesTestsProfile.profile.di | 2 - .../ElementTypesTestsProfile.profile.notation | 107 - .../model/ElementTypesTestsProfile.profile.uml | 195 - .../model/MyPalette.palette | 22 - .../model/model.di | 2 - .../model/model.notation | 220 - .../model/model.uml | 38 - ...eclipse.papyrus.infra.elementtypes.tests.launch | 42 - .../plugin.properties | 13 - .../plugin.xml | 12 - .../pom.xml | 15 - .../tests/AbstractElementTypeTests.java | 197 - .../tests/Activator.java | 61 - .../elementtypesconfigurations/tests/AllTests.java | 26 - .../tests/ElementEditHelperAdviceTests.java | 307 - .../tests/ElementTypesRegistryTests.java | 40 - .../tests/ITestConstants.java | 50 - .../tests/TestEditHelperAdvice1.java | 20 - .../tests/TestEditHelperAdvice2.java | 20 - .../tests/TestEditHelperAdvice3.java | 20 - .../.classpath | 7 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 296 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../META-INF/MANIFEST.MF | 21 - .../about.html | 28 - .../build.properties | 21 - .../model/ElementTypesMenu.xmi | 33 - .../model/ElementTypesTestsProfile.ctx | 38 - .../model/MyPalette.palette | 22 - ...ipse.papyrus.infra.elementtypes.tests.ui.launch | 42 - .../plugin.properties | 13 - .../plugin.xml | 17 - .../pom.xml | 15 - .../ui/tests/AllTests.java | 29 - .../ui/tests/ElementTypesRegistryTests.java | 127 - .../org.eclipse.papyrus.tests/META-INF/MANIFEST.MF | 4 +- .../test/org/eclipse/papyrus/tests/AllTests.java | 4 +- .../META-INF/MANIFEST.MF | 2 +- .../eclipse/papyrus/infra/emf/tests/AllTests.java | 2 +- .../META-INF/MANIFEST.MF | 2 +- .../resources/j2ee-all.elementtypesconfigurations | 194 +- .../j2ee-usecase.elementtypesconfigurations | 362 +- .../infra/gmfdiag/assistant/tests/AllTests.java | 4 +- .../gmfdiag/assistant/tests/AssistantsFixture.java | 8 +- .../META-INF/MANIFEST.MF | 3 +- .../fragment.xml | 2 +- ...TestExpansionDiagram.elementtypesconfigurations | 26 +- .../gmfdiag/common/tests/ExpansionAddLink.java | 2 +- .../.classpath | 7 + .../org.eclipse.papyrus.infra.types.tests/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 296 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 22 + .../about.html | 28 + .../build.properties | 21 + .../icons/M.gif | Bin 0 -> 912 bytes .../icons/O.gif | Bin 0 -> 912 bytes .../icons/Values.gif | Bin 0 -> 361 bytes .../icons/debug.gif | Bin 0 -> 348 bytes .../model/ElementTypesTestsProfile.profile.di | 2 + .../ElementTypesTestsProfile.profile.notation | 107 + .../model/ElementTypesTestsProfile.profile.uml | 195 + .../model/MyPalette.palette | 22 + .../model/cyclicAdvices.elementtypesconfigurations | 18 + .../elementtypetest.elementtypesconfigurations | 108 + .../model/model.di | 2 + .../model/model.notation | 220 + .../model/model.uml | 38 + .../validAdvicesOrder.elementtypesconfigurations | 15 + .../org.eclipse.papyrus.infra.types.tests.launch | 42 + .../plugin.properties | 13 + .../plugin.xml | 12 + .../org.eclipse.papyrus.infra.types.tests/pom.xml | 15 + .../types/tests/AbstractElementTypeTests.java | 197 + .../papyrus/infra/types/tests/Activator.java | 63 + .../papyrus/infra/types/tests/AllTests.java | 26 + .../types/tests/ElementEditHelperAdviceTests.java | 307 + .../types/tests/ElementTypesRegistryTests.java | 41 + .../papyrus/infra/types/tests/ITestConstants.java | 50 + .../infra/types/tests/TestEditHelperAdvice1.java | 20 + .../infra/types/tests/TestEditHelperAdvice2.java | 20 + .../infra/types/tests/TestEditHelperAdvice3.java | 20 + .../.classpath | 7 + .../.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 296 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 21 + .../about.html | 28 + .../build.properties | 21 + .../model/ElementTypesMenu.xmi | 33 + .../model/ElementTypesTestsProfile.ctx | 38 + .../model/MyPalette.palette | 22 + .../model/WorkspaceTest.elementtypesconfigurations | 12 + .../elementtypetestui.elementtypesconfigurations | 11 + .../model/ui/SingleStereotypeWithFeaturesToSet.xwt | 51 + ...org.eclipse.papyrus.infra.types.ui.tests.launch | 42 + .../plugin.properties | 13 + .../plugin.xml | 17 + .../pom.xml | 15 + .../papyrus/infra/types/ui/tests/AllTests.java | 29 + .../types/ui/tests/ElementTypesRegistryTests.java | 127 + .../META-INF/MANIFEST.MF | 2 +- .../Papyrus Diagram Assistants tests.launch | 4 +- .../papyrus/tests/diagramassistants/AllTests.java | 2 +- .../META-INF/MANIFEST.MF | 1 + .../registry/TestElementTypeRegistryContent.java | 116 +- .../META-INF/MANIFEST.MF | 6 +- ...s.uml.profile.assistants.generator.tests.launch | 45 - .../DiagramSpecificAssistantsGenerationTest.java | 2 +- .../generator/tests/ModelGenFixture.java | 4 +- .../.classpath | 7 - .../.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 291 - .../.settings/org.eclipse.jdt.ui.prefs | 68 - .../about.html | 28 - .../build.properties | 19 - ...ementtypesconfigurations.generator.tests.launch | 45 - .../plugin.properties | 13 - .../pom.xml | 14 - .../resources/j2ee.profile.di | 18 - .../resources/j2ee.profile.notation | 437 - .../resources/j2ee.profile.uml | 228 - .../resources/nesting.profile.di | 2 - .../resources/nesting.profile.notation | 200 - .../resources/nesting.profile.uml | 117 - .../generator/tests/AllTests.java | 30 - .../generator/tests/BaseElementTypes.java | 31 - .../tests/BasicElementTypesGenerationTest.java | 110 - ...pecificElementTypesGenerationBug461717Test.java | 107 - .../DiagramSpecificElementTypesGenerationTest.java | 125 - .../generator/tests/GenOption.java | 21 - .../generator/tests/GenOptions.java | 31 - .../generator/tests/ModelGenFixture.java | 314 - .../tests/ProfilesWithPackageNestingTest.java | 144 - .../.classpath | 7 + .../.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 291 + .../.settings/org.eclipse.jdt.ui.prefs | 68 + .../META-INF/MANIFEST.MF | 27 + .../about.html | 28 + .../build.properties | 19 + ...apyrus.uml.profile.types.generator.tests.launch | 45 + .../plugin.properties | 13 + .../pom.xml | 14 + .../resources/j2ee.profile.di | 18 + .../resources/j2ee.profile.notation | 437 + .../resources/j2ee.profile.uml | 228 + .../resources/nesting.profile.di | 2 + .../resources/nesting.profile.notation | 200 + .../resources/nesting.profile.uml | 117 + .../profile/types/generator/tests/AllTests.java | 30 + .../types/generator/tests/BaseElementTypes.java | 31 + .../tests/BasicElementTypesGenerationTest.java | 110 + ...pecificElementTypesGenerationBug461717Test.java | 107 + .../DiagramSpecificElementTypesGenerationTest.java | 125 + .../profile/types/generator/tests/GenOption.java | 21 + .../profile/types/generator/tests/GenOptions.java | 31 + .../types/generator/tests/ModelGenFixture.java | 314 + .../tests/ProfilesWithPackageNestingTest.java | 144 + .../META-INF/MANIFEST.MF | 4 +- ...mpositeDiagramElementTypeConfigurationTest.java | 10 +- ...iagramNotationElementTypeConfigurationTest.java | 8 +- .../META-INF/MANIFEST.MF | 2 +- .../plugin.xml | 4 +- .../FakeProfile.elementtypesconfigurations | 26 +- .../TestPalette.elementtypesconfigurations | 26 +- .../tests/creation/CreatePureUMLElementTest.java | 2 +- .../types/ui/tests/creation/CreateElementTest.java | 2 +- .../types/ui/tests/creation/MoveElementTest.java | 2 +- .../types/ui/tests/creation/SetFeatureTest.java | 2 +- .../PropertyGrammarTests.launch | 4 +- 1699 files changed, 77844 insertions(+), 78882 deletions(-) create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/.classpath create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/.project create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/about.html create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/build.properties create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/icons/sample.gif create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/plugin.properties create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/plugin.xml create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/pom.xml create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/Activator.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/generator/ElementTypeRegistryGenerator.xtend create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/GenerateElementTypesRegistry.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/MigrateTypesConfigurations.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesContentProvider.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsContentProvider.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsLabelProvider.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesLabelProvider.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventContentProvider.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventLabelProvider.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/AdvicesComparator.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/EClassComparator.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeConfigurationComparator.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeRegistryUtils.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/GenerateElementTypesConfigurationsUtils.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/IElementTypeComparator.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/NotifierNullEditHelper.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/TypesEventPrinter.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/RegistredElementTypesView.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/TypesConfigurationsListenerView.java create mode 100644 plugins/developer/org.eclipse.papyrus.dev.types/xtend-gen/.gitignore delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.classpath delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.project delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.core.resources.prefs delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/META-INF/MANIFEST.MF delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/about.html delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/build.properties delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/icons/sample.gif delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.properties delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.xml delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/pom.xml delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/Activator.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/generator/ElementTypeRegistryGenerator.xtend delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/GenerateElementTypesRegistry.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/MigrateElementTypesConfigurations.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventContentProvider.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventLabelProvider.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesContentProvider.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsContentProvider.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsLabelProvider.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesLabelProvider.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/AdvicesComparator.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/EClassComparator.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeConfigurationComparator.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeRegistryUtils.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypesConfigurationsEventPrinter.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/GenerateElementTypesConfigurationsUtils.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/IElementTypeComparator.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/NotifierNullEditHelper.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/ElementTypesConfigurationsListenerView.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/RegistredElementTypesView.java delete mode 100644 plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/xtend-gen/.gitignore create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.classpath create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.project create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/META-INF/MANIFEST.MF create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/about.html create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/build.properties create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/ViewToDisplay.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.ecore create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.genmodel create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.properties create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.xml create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/pom.xml create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceConfiguration.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdvicePackage.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/ViewToDisplay.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceConfigurationImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceFactoryImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdvicePackageImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/ViewToDisplayImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceConfigurationItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceEditPlugin.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceItemProviderAdapterFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/ViewToDisplayItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceAdapterFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceFactoryImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceSwitch.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/Activator.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdvice.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdviceFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java create mode 100644 plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/AdviceBindingConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ElementTypeSetConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/IconEntry.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MatcherConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MetamodelTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/SpecializationTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractAdviceBindingConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractEditHelperAdviceConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractMatcherConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceBindingConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ConfigurationElementItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ContainerConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/EditHelperAdviceConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeSetConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypesConfigurationsEditPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementtypesconfigurationsItemProviderAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/IconEntryItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MatcherConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MetamodelTypeConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/NamedConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/SpecializationTypeConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/wizban/NewElementtypesconfigurations.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementTypesConfigurationsEditorPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsActionBarContributor.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsEditor.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsModelWizard.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/ViewToDisplay.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.ecore delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.genmodel delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimeValuesEditionAdviceConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationPackage.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/ViewToDisplay.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimeValuesEditionAdviceConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationPackageImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/ViewToDisplayImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimevalueseditionadviceconfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/ViewToDisplayItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationSwitch.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/Activator.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdvice.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdviceFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/Values.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ConstantValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ListValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ConstantValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/DynamicValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/FeatureToSet.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/HierarchyPermission.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ListValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/QueryExecutionValue.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesActionConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesAdviceConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ViewToDisplay.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.ecore delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.genmodel delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.ecore delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.genmodel delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/HierarchyPermission.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationPackage.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/HierarchyPermissionImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationPackageImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/HierarchyPermissionItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationEditPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationSwitch.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ConstantValue.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/DynamicValue.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureToSet.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValue.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ListValue.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/QueryExecutionValue.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationPackage.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ConstantValueImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/DynamicValueImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureToSetImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureValueImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ListValueImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/QueryExecutionValueImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationPackageImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ConstantValueItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/DynamicValueItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureToSetItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureValueItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ListValueItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/QueryExecutionValueItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationEditPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationSwitch.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/Activator.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterNotfoundException.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToBooleanConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToIntegerConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToBooleanConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEENumConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEnumerationConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToIntegerConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToStringConverter.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerconfiguration/InvariantContainerRule.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValueUtils.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdvice.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdviceFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/AndInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/HierarchyPermission.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantSemanticTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantTypeConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/NotInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/OrInvariantRuleConfiguration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.ecore delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.genmodel delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/invarianttype.elementtypesconfigurations delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/schema/invariantRule.exsd delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/AndInvariantRuleConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/CompositeInvariantRuleConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantRuleConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationPackage.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/NotInvariantRuleConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/OrInvariantRuleConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/AndInvariantRuleConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/CompositeInvariantRuleConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantRuleConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationPackageImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/NotInvariantRuleConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/OrInvariantRuleConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/AndInvariantRuleConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/CompositeInvariantRuleConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantRuleConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationEditPlugin.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/NotInvariantRuleConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/OrInvariantRuleConfigurationItemProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationSwitch.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/Activator.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/AbstractInvariantRule.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantEditHelperAdvice.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantElementMatcher.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantRule.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRule.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRuleExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantElementTypeFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantRuleConfigurationTypeRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/configuration.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/error.gif delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/LogUtil.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/providers/ClientContextContentProvider.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.classpath delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.project delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.core.resources.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/META-INF/MANIFEST.MF delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/about.html delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/build.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore_diagram delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.genmodel delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.properties delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/pom.xml delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/adviceConfigurationType.exsd delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/containerConfigurationType.exsd delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeConfigurationType.exsd delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeSetConfiguration.exsd delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/matcherConfigurationType.exsd delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractAdviceBindingConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractEditHelperAdviceConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractMatcherConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceBindingConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ConfigurationElement.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ContainerConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/EditHelperAdviceConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeSetConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsPackage.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IconEntry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IdentifiedConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/InheritanceKind.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MatcherConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MetamodelTypeConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/NamedConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/SpecializationTypeConfiguration.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractAdviceBindingConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractEditHelperAdviceConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractMatcherConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceBindingConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfigurationElementImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ContainerConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/EditHelperAdviceConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeSetConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsPackageImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/IconEntryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MatcherConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MetamodelTypeConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/SpecializationTypeConfigurationImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsAdapterFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsSwitch.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/Activator.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypesConfigurationsRegistryService.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredContainerDescriptor.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredEditHelperAdviceDescriptor.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredHintedElementType.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IAdviceConfigurationTypeExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IContainerConfigurationTypeExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeConfigurationTypeExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeSetExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IMatcherConfigurationTypeExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IUserElementTypeDefinitionsExtensionPoint.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IContainerFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IEditHelperAdviceFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IElementTypeConfigurationFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IMatcherFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceBindingFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractEditHelperAdviceFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractElementTypeConfigurationFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultAdviceBindingFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultEditHelperAdviceFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultMatcherFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/MetamodelTypeFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/SpecializationTypeFactory.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredEditHelperAdviceDescriptor.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedMetamodelElementType.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedSpecializationElementType.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/NullEditHelperAdvice.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/AbstractNotifierEditHelper.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsEventsChain.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsListenersRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsChainListener.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsListener.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractApprovedEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractDisapprovedEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractElementTypesConfigurationsEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractExecutableEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractIdentityEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractRequestConfigurationEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractUnexecutableEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceApprovedEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceDisapprovedEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdvicePhase.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceRequestConfigurationEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperApprovedEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperDisapprovedEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperRequestConfigurationEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ElementTypesConfigurationsEventType.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableAdviceEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableEditHelperEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IAdviceEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IElementTypesConfigurationsEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityAdviceEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityEditHelperEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableAdviceEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableEditHelperEvent.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/AdviceConfigurationTypeRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ContainerConfigurationTypeRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeConfigurationTypeRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeSetConfigurationRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/MatcherConfigurationTypeRegistry.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceFactoryImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceImpl.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/AdviceComparator.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeConfigurationCycleUtil.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeRegistryUtils.java delete mode 100644 plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/OrientedGraph.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/.classpath create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/.project create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/META-INF/MANIFEST.MF create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/about.html create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/build.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/pom.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/adviceConfigurationKind.exsd create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/containerConfigurationKind.exsd create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeConfigurationKind.exsd create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeSetConfiguration.exsd create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/matcherConfigurationKind.exsd create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/Activator.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredContainerDescriptor.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredEditHelperAdviceDescriptor.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredHintedElementType.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IAdviceKindExtensionPoint.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IContainerConfigurationKindExtensionPoint.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeConfigurationKindExtensionPoint.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeSetExtensionPoint.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IMatcherConfigurationKindExtensionPoint.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IContainerFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IEditHelperAdviceFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IElementTypeConfigurationFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IMatcherFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceBindingFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractEditHelperAdviceFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractElementTypeConfigurationFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultAdviceBindingFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultEditHelperAdviceFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultMatcherFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/MetamodelTypeFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/SpecializationTypeFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredEditHelperAdviceDescriptor.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedMetamodelElementType.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedSpecializationElementType.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/NullEditHelperAdvice.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/AbstractNotifierEditHelper.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsChainListener.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsListener.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesEventsChain.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesListenersRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractApprovedEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractDisapprovedEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractExecutableEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractIdentityEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractRequestEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractTypesEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractUnexecutableEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceApprovedEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceDisapprovedEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdvicePhase.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceRequestEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperApprovedEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperDisapprovedEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperRequestEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableAdviceEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableEditHelperEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IAdviceEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ITypesEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityAdviceEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityEditHelperEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/TypesEventKind.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableAdviceEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableEditHelperEvent.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/AdviceConfigurationTypeRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ContainerConfigurationTypeRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeConfigurationTypeRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeSetConfigurationRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/MatcherConfigurationTypeRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/AdviceComparator.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/ElementTypeRegistryUtils.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/OrientedGraph.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/TypesConfigurationsCycleUtil.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.classpath create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.project create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/META-INF/MANIFEST.MF create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/about.html create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/build.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/AdviceBindingConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ElementTypeSetConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/IconEntry.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MatcherConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MetamodelTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/SpecializationTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/pom.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractAdviceBindingConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractEditHelperAdviceConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractMatcherConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceBindingConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ConfigurationElementItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ContainerConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/EditHelperAdviceConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeSetConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypesConfigurationsItemProviderAdapterFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/IconEntryItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MatcherConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MetamodelTypeConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/SpecializationTypeConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/TypesConfigurationsEditPlugin.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.classpath create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.project create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/META-INF/MANIFEST.MF create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/about.html create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/build.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesConfigurationsModelFile.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesModelFile.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewElementtypesconfigurations.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypes.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypesConfigurations.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/pom.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsActionBarContributor.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsEditor.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsModelWizard.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/TypesConfigurationsEditorPlugin.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.classpath create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.project create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/META-INF/MANIFEST.MF create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/about.html create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/build.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_AndRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_NotRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_OrRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuleBasedTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuledTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_AndRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_NotRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_OrRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/HierarchyPermission.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantSemanticTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrInvariantRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrRuleConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuleBasedTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuledTypeConfiguration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.ecore create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.genmodel create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/rulebased.elementtypesconfigurations create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/pom.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/schema/ruleKind.exsd create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/AndRuleConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/CompositeRuleConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/NotRuleConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/OrRuleConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedPackage.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedTypeConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/AndRuleConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/CompositeRuleConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/NotRuleConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/OrRuleConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedFactoryImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedPackageImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedTypeConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/AndRuleConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/CompositeRuleConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/NotRuleConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/OrRuleConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedEditPlugin.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedItemProviderAdapterFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedTypeConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleConfigurationItemProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedAdapterFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceFactoryImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedSwitch.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/Activator.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/AbstractRule.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRule.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleEditHelperAdvice.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleElementMatcher.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRule.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRuleExtensionPoint.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleConfigurationTypeRegistry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleElementTypeFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.classpath create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.project create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/META-INF/MANIFEST.MF create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/about.html create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/build.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/configuration.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/error.gif create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/pom.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/LogUtil.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/providers/ClientContextContentProvider.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/.classpath create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/.project create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/.settings/org.eclipse.core.resources.prefs create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/META-INF/MANIFEST.MF create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/about.html create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/build.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore_diagram create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.properties create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/pom.xml create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractAdviceBindingConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractEditHelperAdviceConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractMatcherConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceBindingConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ConfigurationElement.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ContainerConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/EditHelperAdviceConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeSetConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsPackage.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IconEntry.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IdentifiedConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/InheritanceKind.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MatcherConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MetamodelTypeConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/NamedConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/SpecializationTypeConfiguration.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractAdviceBindingConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractEditHelperAdviceConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractMatcherConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceBindingConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ConfigurationElementImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ContainerConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/EditHelperAdviceConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeSetConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsFactoryImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsPackageImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/IconEntryImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MatcherConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MetamodelTypeConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/SpecializationTypeConfigurationImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsAdapterFactory.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceFactoryImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsSwitch.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceFactoryImpl.java create mode 100644 plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceImpl.java create mode 100644 plugins/infra/types/pom.xml delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.classpath delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.project delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/META-INF/MANIFEST.MF delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/about.html delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/build.properties delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/plugin.gif delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/project.png delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.properties delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.xml delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/pom.xml delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/Activator.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/handlers/GenerateElementTypesHandler.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/BaseElementTypeSetBlock.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorMainPage.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorParametersBlock.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizard.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizardModel.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/IGeneratorWizardPage.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.classpath delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.project delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.xtend.core.Xtend.prefs delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/META-INF/MANIFEST.MF delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/about.html delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/build.properties delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/plugin.properties delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/pom.xml delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/AbstractGenerator.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ApplyStereotypeAdviceRule.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ConfigurationSetRule.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypeRule.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypesGenerator.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/GeneratorModule.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/Identifiers.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ImpliedExtension.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/InputModel.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/OutputModel.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UML.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UMLElementTypes.xtend delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/internal/Activator.java delete mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/xtend-gen/.gitignore create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.classpath create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.project create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/META-INF/MANIFEST.MF create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/about.html create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/build.properties create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/plugin.gif create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/project.png create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.properties create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.xml create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/pom.xml create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/Activator.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/handlers/GenerateElementTypesHandler.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/BaseElementTypeSetBlock.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorMainPage.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorParametersBlock.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizard.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizardModel.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/IGeneratorWizardPage.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.classpath create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.project create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.xtend.core.Xtend.prefs create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/META-INF/MANIFEST.MF create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/about.html create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/build.properties create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/plugin.properties create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/pom.xml create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/AbstractGenerator.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ApplyStereotypeAdviceRule.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ConfigurationSetRule.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypeRule.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypesGenerator.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/GeneratorModule.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/Identifiers.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ImpliedExtension.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/InputModel.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/OutputModel.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UML.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UMLElementTypes.xtend create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/internal/Activator.java create mode 100644 plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/xtend-gen/.gitignore delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.classpath delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.project delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/META-INF/MANIFEST.MF delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/about.html delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/build.properties delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/Stereotype.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeActionConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ConstantValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/FeatureToSet.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ListValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/QueryExecutionValue.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeActionConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeAdviceConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeToApply.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypedElementMatcherConfiguration.gif delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.ecore delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.genmodel delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.ecore delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.genmodel delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.ecore delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.genmodel delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.ecore delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.genmodel delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.properties delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.xml delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/pom.xml delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfiguration.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationPackage.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ConstantValue.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/DynamicValue.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureToSet.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureValue.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ListValue.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/QueryExecutionValue.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeToApply.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationPackageImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ConstantValueImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/DynamicValueImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureToSetImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureValueImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ListValueImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/QueryExecutionValueImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationEditPlugin.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ConstantValueItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/DynamicValueItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureToSetItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureValueItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ListValueItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/QueryExecutionValueItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/StereotypeToApplyItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationSwitch.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationXMLProcessor.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfiguration.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationPackage.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationPackageImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationEditPlugin.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationSwitch.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationXMLProcessor.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfiguration.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationPackage.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationPackageImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationEditPlugin.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationSwitch.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfiguration.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationPackage.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationPackageImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProvider.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProviderAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationAdapterFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceFactoryImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceImpl.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationSwitch.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationXMLProcessor.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/Activator.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceEditHelperAdvice.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeFeatureValueUtils.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/AbstractProfilingCommand.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyProfileCommand.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyStereotypeCommand.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/SetStereotypeValueCommand.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyProfileCommand.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyStereotypeCommand.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelperAdvice.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRule.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractProfileRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractStereotypeRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyProfileRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyStereotypeRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/SetStereotypeValueRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyProfileRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyStereotypeRequest.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceEditHelperAdvice.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcher.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherFactory.java delete mode 100644 plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/umlinvariantrule/AbstractUmlInvariantRule.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/.classpath create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/.project create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.ui.prefs create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/META-INF/MANIFEST.MF create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/about.html create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/build.properties create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/Stereotype.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeActionConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ConstantValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/FeatureToSet.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ListValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/QueryExecutionValue.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeActionConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeAdviceConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeToApply.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypedElementMatcherConfiguration.gif create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.ecore create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.genmodel create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.ecore create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.genmodel create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.ecore create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.genmodel create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.ecore create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.genmodel create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.properties create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.xml create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/pom.xml create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfiguration.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdvicePackage.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ConstantValue.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/DynamicValue.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureToSet.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureValue.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ListValue.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/QueryExecutionValue.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeToApply.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceConfigurationImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdvicePackageImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ConstantValueImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/DynamicValueImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureToSetImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureValueImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ListValueImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/QueryExecutionValueImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/StereotypeToApplyImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceConfigurationItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceEditPlugin.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceItemProviderAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ConstantValueItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/DynamicValueItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureToSetItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureValueItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ListValueItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/QueryExecutionValueItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/StereotypeToApplyItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceSwitch.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceXMLProcessor.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfiguration.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationPackage.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationPackageImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceEditPlugin.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationSwitch.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfiguration.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherPackage.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherConfigurationImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherPackageImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherItemProviderAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherSwitch.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherXMLProcessor.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfiguration.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationPackage.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationPackageImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationEditPlugin.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProvider.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationAdapterFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceImpl.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationSwitch.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationXMLProcessor.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/Activator.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfigurationFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceEditHelperAdvice.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeFeatureValueUtils.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceEditHelperAdvice.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/AbstractProfilingCommand.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyProfileCommand.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyStereotypeCommand.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/SetStereotypeValueCommand.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyProfileCommand.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyStereotypeCommand.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelper.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelperAdvice.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcher.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfigurationFactory.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractProfileRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractStereotypeRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyProfileRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyStereotypeRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/SetStereotypeValueRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyProfileRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyStereotypeRequest.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/AbstractUmlRule.java create mode 100644 plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRule.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.classpath delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.project delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.core.prefs delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/META-INF/MANIFEST.MF delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/about.html delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/build.properties delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/M.gif delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/O.gif delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/Values.gif delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/debug.gif delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.di delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.notation delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.uml delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/MyPalette.palette delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.di delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.notation delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.uml delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/org.eclipse.papyrus.infra.elementtypes.tests.launch delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.properties delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.xml delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/pom.xml delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AbstractElementTypeTests.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/Activator.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AllTests.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementEditHelperAdviceTests.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementTypesRegistryTests.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ITestConstants.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice1.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice2.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice3.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.classpath delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.project delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.core.prefs delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/META-INF/MANIFEST.MF delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/about.html delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/build.properties delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesMenu.xmi delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesTestsProfile.ctx delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/MyPalette.palette delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/org.eclipse.papyrus.infra.elementtypes.tests.ui.launch delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.properties delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.xml delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/pom.xml delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/AllTests.java delete mode 100644 tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/ElementTypesRegistryTests.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.classpath create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.project create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.core.prefs create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.ui.prefs create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/META-INF/MANIFEST.MF create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/about.html create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/build.properties create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/M.gif create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/O.gif create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/Values.gif create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/debug.gif create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.di create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.notation create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.uml create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/MyPalette.palette create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/cyclicAdvices.elementtypesconfigurations create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/elementtypetest.elementtypesconfigurations create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.di create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.notation create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.uml create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/validAdvicesOrder.elementtypesconfigurations create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/org.eclipse.papyrus.infra.types.tests.launch create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.properties create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.xml create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/pom.xml create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AbstractElementTypeTests.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/Activator.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AllTests.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementEditHelperAdviceTests.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementTypesRegistryTests.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ITestConstants.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice1.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice2.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice3.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.classpath create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.project create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.core.prefs create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.ui.prefs create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/META-INF/MANIFEST.MF create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/about.html create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/build.properties create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesMenu.xmi create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesTestsProfile.ctx create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/MyPalette.palette create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/WorkspaceTest.elementtypesconfigurations create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/elementtypetestui.elementtypesconfigurations create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ui/SingleStereotypeWithFeaturesToSet.xwt create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/org.eclipse.papyrus.infra.types.ui.tests.launch create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.properties create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.xml create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/pom.xml create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/AllTests.java create mode 100644 tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/ElementTypesRegistryTests.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/org.eclipse.papyrus.uml.profile.assistants.generator.tests.launch delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.classpath delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.project delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.core.prefs delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/about.html delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/build.properties delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.launch delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/plugin.properties delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/pom.xml delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.di delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.notation delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.uml delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.di delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.notation delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.uml delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/AllTests.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BaseElementTypes.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BasicElementTypesGenerationTest.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationTest.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOption.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOptions.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ModelGenFixture.java delete mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ProfilesWithPackageNestingTest.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.classpath create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.project create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.core.prefs create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.ui.prefs create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/META-INF/MANIFEST.MF create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/about.html create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/build.properties create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/org.eclipse.papyrus.uml.profile.types.generator.tests.launch create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/plugin.properties create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/pom.xml create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.di create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.notation create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.uml create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.di create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.notation create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.uml create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/AllTests.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BaseElementTypes.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BasicElementTypesGenerationTest.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationTest.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOption.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOptions.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ModelGenFixture.java create mode 100644 tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ProfilesWithPackageNestingTest.java diff --git a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/META-INF/MANIFEST.MF b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/META-INF/MANIFEST.MF index a1a5c31bcad..3369582e04b 100644 --- a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/META-INF/MANIFEST.MF +++ b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/META-INF/MANIFEST.MF @@ -10,7 +10,7 @@ Require-Bundle: org.eclipse.ui, com.google.guava;bundle-version="11.0.0", org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.1.0", org.eclipse.papyrus.infra.emf;bundle-version="1.1.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.1.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.1.0", org.eclipse.gmf.runtime.diagram.core;bundle-version="1.7.0", org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0", org.eclipse.papyrus.uml.diagram.composite;bundle-version="1.1.0", diff --git a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/plugin.xml b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/plugin.xml index ae7debd6d48..958540a68a5 100644 --- a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/plugin.xml +++ b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/plugin.xml @@ -24,16 +24,16 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/EFFB.elementtypesconfigurations b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/EFFB.elementtypesconfigurations index 9758098619e..6d6525229d6 100644 --- a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/EFFB.elementtypesconfigurations +++ b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/EFFB.elementtypesconfigurations @@ -1,250 +1,93 @@ - - - - org.eclipse.papyrus.uml.OpaqueAction - - - EFFBProfile::Function - - - - org.eclipse.papyrus.uml.Activity - - - - org.eclipse.papyrus.uml.ActivityParameterNode - - - - org.eclipse.papyrus.uml.ActivityParameterNode - - - - org.eclipse.papyrus.uml.DecisionNode - - EFFBProfile::ORBegin - - - - org.eclipse.papyrus.uml.MergeNode - - - org.eclipse.papyrus.uml.ForkNode - - - org.eclipse.papyrus.uml.JoinNode - - - org.eclipse.papyrus.uml.MergeNode - - - org.eclipse.papyrus.uml.DecisionNode - - - org.eclipse.papyrus.uml.MergeNode - - - org.eclipse.papyrus.uml.DecisionNode - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - - - EFFBProfile - - - + + + org.eclipse.papyrus.uml.OpaqueAction + + + EFFBProfile::Function + + + + org.eclipse.papyrus.uml.Activity + + + + org.eclipse.papyrus.uml.ActivityParameterNode + + + + org.eclipse.papyrus.uml.ActivityParameterNode + + + + org.eclipse.papyrus.uml.DecisionNode + + EFFBProfile::ORBegin + + + + org.eclipse.papyrus.uml.MergeNode + + + org.eclipse.papyrus.uml.ForkNode + + + org.eclipse.papyrus.uml.JoinNode + + + org.eclipse.papyrus.uml.MergeNode + + + org.eclipse.papyrus.uml.DecisionNode + + + org.eclipse.papyrus.uml.MergeNode + + + org.eclipse.papyrus.uml.DecisionNode + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + + + EFFBProfile + + + \ No newline at end of file diff --git a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/GraphicalEFFB.elementtypesconfigurations b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/GraphicalEFFB.elementtypesconfigurations index aebf2ce9606..622b8691af9 100644 --- a/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/GraphicalEFFB.elementtypesconfigurations +++ b/extraplugins/EFFBD/org.eclipse.papyrus.effbd/resource/GraphicalEFFB.elementtypesconfigurations @@ -1,126 +1,47 @@ - - - - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - org.eclipse.papyrus.effbd.function - - - org.eclipse.papyrus.effbd.inputdata - - - org.eclipse.papyrus.effbd.outputdata - - - org.eclipse.papyrus.uml.OpaqueAction - - - org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 - org.eclipse.papyrus.effbd.orbegin - - - org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 - org.eclipse.papyrus.effbd.orend - - - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - org.eclipse.papyrus.effbd.andbegin - - - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - org.eclipse.papyrus.effbd.andend - - - org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 - org.eclipse.papyrus.effbd.itbegin - - - org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 - org.eclipse.papyrus.effbd.itend - - - org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 - org.eclipse.papyrus.effbd.lpbegin - - - org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 - org.eclipse.papyrus.effbd.lpend - - + + + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + org.eclipse.papyrus.effbd.function + + + org.eclipse.papyrus.effbd.inputdata + + + org.eclipse.papyrus.effbd.outputdata + + + org.eclipse.papyrus.uml.OpaqueAction + + + org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 + org.eclipse.papyrus.effbd.orbegin + + + org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 + org.eclipse.papyrus.effbd.orend + + + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + org.eclipse.papyrus.effbd.andbegin + + + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + org.eclipse.papyrus.effbd.andend + + + org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 + org.eclipse.papyrus.effbd.itbegin + + + org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 + org.eclipse.papyrus.effbd.itend + + + org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 + org.eclipse.papyrus.effbd.lpbegin + + + org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 + org.eclipse.papyrus.effbd.lpend + + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaboration.elementtypesconfigurations b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaboration.elementtypesconfigurations index 3479dcd4c41..2bea82d145a 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaboration.elementtypesconfigurations +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaboration.elementtypesconfigurations @@ -1,586 +1,586 @@ - - - - org.eclipse.papyrus.bpmn.InclusiveGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.InclusiveGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.EventBasedGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.EventBasedGateway_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.EventBasedGateway_InterruptibleActivityRegion - org.eclipse.papyrus.uml.diagram.activity.InterruptibleActivityRegion_3068 - - - - org.eclipse.papyrus.bpmn.NonExclusiveGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.NonExclusiveGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.ParallelGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.ParallelGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.ComplexGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.ComplexGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.ExclusiveGateway_DecisionNode - org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 - - - - org.eclipse.papyrus.bpmn.ExclusiveGateway_MergeNode - org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 - - - - org.eclipse.papyrus.uml.diagram.activity.Package_1000 - - BPMNProfile::Definitions - - - - - org.eclipse.papyrus.bpmn.LaneSet_ActivityPartition - org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 - - - - org.eclipse.papyrus.bpmn.BPMNProcess_Activity - org.eclipse.papyrus.uml.diagram.activity.Activity_2001 - - - - org.eclipse.papyrus.bpmn.BPMNProcess_Activity - org.eclipse.papyrus.uml.diagram.activity.Activity_3083 - - - - org.eclipse.papyrus.bpmn.Lane_ActivityPartition - org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 - - - - org.eclipse.papyrus.bpmn.EndEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.EndEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.CatchEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.CatchEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.StartEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.StartEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.IntermediateCatchEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.IntermediateCatchEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.IntermediateThrowEvent_SendObjectAction - org.eclipse.papyrus.uml.diagram.activity.SendObjectAction_3042 - - - - org.eclipse.papyrus.bpmn.IntermediateThrowEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.IntermediateThrowEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.ThrowEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.ThrowEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.BoundaryEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.BoundaryEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.ImplicitThrowEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.ImplicitThrowEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.TextAnnotation_Comment - org.eclipse.papyrus.uml.diagram.activity.Comment_3080 - - - - org.eclipse.papyrus.bpmn.Group_ActivityPartition - org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 - - - - org.eclipse.papyrus.bpmn.SequenceFlow_ControlFlow - org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 - - - - org.eclipse.papyrus.bpmn.DataObjectReference_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataOutputAssociation_ObjectFlow - org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3014 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3020 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3024 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3064 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3077 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3084 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3087 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3090 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3094 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3098 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3109 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3111 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3191 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3125 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3126 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3127 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3128 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3129 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3130 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3131 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3202 - - - - org.eclipse.papyrus.bpmn.DataOutput_Parameter - org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 - - - - org.eclipse.papyrus.bpmn.DataOutput_ActivityParameterNode - org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 - - - - org.eclipse.papyrus.bpmn.BPMNProperty_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataInputAssociation_ObjectFlow - org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 - - - - org.eclipse.papyrus.bpmn.DataStoreReference_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataObject_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3013 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3019 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3023 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3055 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3089 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3092 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3096 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3101 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3103 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3105 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3188 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3133 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3134 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3136 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3137 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3138 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3139 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3140 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3141 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3142 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3143 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3144 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3199 - - - - org.eclipse.papyrus.bpmn.DataInput_Parameter - org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 - - - - org.eclipse.papyrus.bpmn.DataInput_ActivityParameterNode - org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 - - - - org.eclipse.papyrus.bpmn.DataAssociation_ObjectFlow - org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 - - - - org.eclipse.papyrus.bpmn.UserTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.ManualTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.Documentation_Comment - org.eclipse.papyrus.uml.diagram.activity.Comment_3080 - - - - org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint - org.eclipse.papyrus.uml.diagram.activity.Constraint_3002 - - - - org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint - org.eclipse.papyrus.uml.diagram.activity.Constraint_3003 - - - - org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint - org.eclipse.papyrus.uml.diagram.activity.Constraint_3112 - - - - org.eclipse.papyrus.bpmn.SubProcess_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.LoopCharacteristics_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType - - BPMNProfile::CallActivity - - - - - org.eclipse.papyrus.bpmn.BusinessRuleTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.ComplexBehaviorDefinition_ControlFlow - org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 - - - - org.eclipse.papyrus.bpmn.AdHocSubProcess_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.ScriptTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.SendTask_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.Transaction_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_LoopNode - org.eclipse.papyrus.uml.diagram.activity.LoopNode_3071 - - - - org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.ReceiveTask_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.ServiceTask_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_ExpansionRegion - org.eclipse.papyrus.uml.diagram.activity.ExpansionRegion_3070 - - - - org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - BPMNProfile - - - - - BPMNProfile - - + + + + org.eclipse.papyrus.bpmn.InclusiveGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.InclusiveGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.EventBasedGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.EventBasedGateway_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.EventBasedGateway_InterruptibleActivityRegion + org.eclipse.papyrus.uml.diagram.activity.InterruptibleActivityRegion_3068 + + + + org.eclipse.papyrus.bpmn.NonExclusiveGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.NonExclusiveGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.ParallelGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.ParallelGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.ComplexGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.ComplexGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.ExclusiveGateway_DecisionNode + org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 + + + + org.eclipse.papyrus.bpmn.ExclusiveGateway_MergeNode + org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 + + + + org.eclipse.papyrus.uml.diagram.activity.Package_1000 + + BPMNProfile::Definitions + + + + + org.eclipse.papyrus.bpmn.LaneSet_ActivityPartition + org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 + + + + org.eclipse.papyrus.bpmn.BPMNProcess_Activity + org.eclipse.papyrus.uml.diagram.activity.Activity_2001 + + + + org.eclipse.papyrus.bpmn.BPMNProcess_Activity + org.eclipse.papyrus.uml.diagram.activity.Activity_3083 + + + + org.eclipse.papyrus.bpmn.Lane_ActivityPartition + org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 + + + + org.eclipse.papyrus.bpmn.EndEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.EndEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.CatchEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.CatchEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.StartEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.StartEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.IntermediateCatchEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.IntermediateCatchEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.IntermediateThrowEvent_SendObjectAction + org.eclipse.papyrus.uml.diagram.activity.SendObjectAction_3042 + + + + org.eclipse.papyrus.bpmn.IntermediateThrowEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.IntermediateThrowEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.ThrowEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.ThrowEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.BoundaryEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.BoundaryEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.ImplicitThrowEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.ImplicitThrowEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.TextAnnotation_Comment + org.eclipse.papyrus.uml.diagram.activity.Comment_3080 + + + + org.eclipse.papyrus.bpmn.Group_ActivityPartition + org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 + + + + org.eclipse.papyrus.bpmn.SequenceFlow_ControlFlow + org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 + + + + org.eclipse.papyrus.bpmn.DataObjectReference_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataOutputAssociation_ObjectFlow + org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3014 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3020 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3024 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3064 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3077 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3084 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3087 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3090 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3094 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3098 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3109 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3111 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3191 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3125 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3126 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3127 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3128 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3129 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3130 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3131 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3202 + + + + org.eclipse.papyrus.bpmn.DataOutput_Parameter + org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 + + + + org.eclipse.papyrus.bpmn.DataOutput_ActivityParameterNode + org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 + + + + org.eclipse.papyrus.bpmn.BPMNProperty_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataInputAssociation_ObjectFlow + org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 + + + + org.eclipse.papyrus.bpmn.DataStoreReference_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataObject_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3013 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3019 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3023 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3055 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3089 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3092 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3096 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3101 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3103 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3105 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3188 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3133 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3134 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3136 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3137 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3138 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3139 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3140 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3141 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3142 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3143 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3144 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3199 + + + + org.eclipse.papyrus.bpmn.DataInput_Parameter + org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 + + + + org.eclipse.papyrus.bpmn.DataInput_ActivityParameterNode + org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 + + + + org.eclipse.papyrus.bpmn.DataAssociation_ObjectFlow + org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 + + + + org.eclipse.papyrus.bpmn.UserTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.ManualTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.Documentation_Comment + org.eclipse.papyrus.uml.diagram.activity.Comment_3080 + + + + org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint + org.eclipse.papyrus.uml.diagram.activity.Constraint_3002 + + + + org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint + org.eclipse.papyrus.uml.diagram.activity.Constraint_3003 + + + + org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint + org.eclipse.papyrus.uml.diagram.activity.Constraint_3112 + + + + org.eclipse.papyrus.bpmn.SubProcess_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.LoopCharacteristics_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType + + BPMNProfile::CallActivity + + + + + org.eclipse.papyrus.bpmn.BusinessRuleTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.ComplexBehaviorDefinition_ControlFlow + org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 + + + + org.eclipse.papyrus.bpmn.AdHocSubProcess_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.ScriptTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.SendTask_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.Transaction_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_LoopNode + org.eclipse.papyrus.uml.diagram.activity.LoopNode_3071 + + + + org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.ReceiveTask_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.ServiceTask_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_ExpansionRegion + org.eclipse.papyrus.uml.diagram.activity.ExpansionRegion_3070 + + + + org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + BPMNProfile + + + + + BPMNProfile + + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaborationCustom.elementtypesconfigurations b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaborationCustom.elementtypesconfigurations index 64fa7606771..58fa064094b 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaborationCustom.elementtypesconfigurations +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/model/collaborationCustom.elementtypesconfigurations @@ -1,11 +1,11 @@ - - - - org.eclipse.papyrus.bpmn.Lane_ActivityPartition - - - - org.eclipse.papyrus.bpmn.Task_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - + + + + org.eclipse.papyrus.bpmn.Lane_ActivityPartition + + + + org.eclipse.papyrus.bpmn.Task_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/plugin.xml b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/plugin.xml index 645f14d9258..28c39e7742b 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/plugin.xml +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.collaboration/plugin.xml @@ -2,14 +2,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/process.elementtypesconfigurations b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/process.elementtypesconfigurations index 913332c1929..08fc41f1421 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/process.elementtypesconfigurations +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/process.elementtypesconfigurations @@ -1,586 +1,586 @@ - - - - org.eclipse.papyrus.bpmn.InclusiveGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.InclusiveGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.EventBasedGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.EventBasedGateway_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.EventBasedGateway_InterruptibleActivityRegion - org.eclipse.papyrus.uml.diagram.activity.InterruptibleActivityRegion_3068 - - - - org.eclipse.papyrus.bpmn.NonExclusiveGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.NonExclusiveGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.ParallelGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.ParallelGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.ComplexGateway_JoinNode - org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 - - - - org.eclipse.papyrus.bpmn.ComplexGateway_ForkNode - org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 - - - - org.eclipse.papyrus.bpmn.ExclusiveGateway_DecisionNode - org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 - - - - org.eclipse.papyrus.bpmn.ExclusiveGateway_MergeNode - org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 - - - - org.eclipse.papyrus.uml.diagram.activity.Package_1000 - - BPMNProfile::Definitions - - - - - org.eclipse.papyrus.bpmn.LaneSet_ActivityPartition - org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 - - - - org.eclipse.papyrus.bpmn.BPMNProcess_Activity - org.eclipse.papyrus.uml.diagram.activity.Activity_2001 - - - - org.eclipse.papyrus.bpmn.BPMNProcess_Activity - org.eclipse.papyrus.uml.diagram.activity.Activity_3083 - - - - org.eclipse.papyrus.bpmn.Lane_ActivityPartition - org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 - - - - org.eclipse.papyrus.bpmn.EndEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.EndEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.CatchEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.CatchEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.StartEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.StartEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.IntermediateCatchEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.IntermediateCatchEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.IntermediateThrowEvent_SendObjectAction - org.eclipse.papyrus.uml.diagram.activity.SendObjectAction_3042 - - - - org.eclipse.papyrus.bpmn.IntermediateThrowEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.IntermediateThrowEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.ThrowEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.ThrowEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.BoundaryEvent_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.BoundaryEvent_InitialNode - org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 - - - - org.eclipse.papyrus.bpmn.ImplicitThrowEvent_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.ImplicitThrowEvent_FlowFinalNode - org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 - - - - org.eclipse.papyrus.bpmn.TextAnnotation_Comment - org.eclipse.papyrus.uml.diagram.activity.Comment_3080 - - - - org.eclipse.papyrus.bpmn.Group_ActivityPartition - org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 - - - - org.eclipse.papyrus.bpmn.SequenceFlow_ControlFlow - org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 - - - - org.eclipse.papyrus.bpmn.DataObjectReference_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataOutputAssociation_ObjectFlow - org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3014 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3020 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3024 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3064 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3077 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3084 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3087 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3090 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3094 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3098 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3109 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3111 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3191 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3125 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3126 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3127 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3128 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3129 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3130 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3131 - - - - org.eclipse.papyrus.bpmn.DataOutput_OutputPin - org.eclipse.papyrus.uml.diagram.activity.OutputPin_3202 - - - - org.eclipse.papyrus.bpmn.DataOutput_Parameter - org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 - - - - org.eclipse.papyrus.bpmn.DataOutput_ActivityParameterNode - org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 - - - - org.eclipse.papyrus.bpmn.BPMNProperty_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataInputAssociation_ObjectFlow - org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 - - - - org.eclipse.papyrus.bpmn.DataStoreReference_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataObject_DataStoreNode - org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3013 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3019 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3023 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3055 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3089 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3092 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3096 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3101 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3103 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3105 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3188 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3133 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3134 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3136 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3137 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3138 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3139 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3140 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3141 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3142 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3143 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3144 - - - - org.eclipse.papyrus.bpmn.DataInput_InputPin - org.eclipse.papyrus.uml.diagram.activity.InputPin_3199 - - - - org.eclipse.papyrus.bpmn.DataInput_Parameter - org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 - - - - org.eclipse.papyrus.bpmn.DataInput_ActivityParameterNode - org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 - - - - org.eclipse.papyrus.bpmn.DataAssociation_ObjectFlow - org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 - - - - org.eclipse.papyrus.bpmn.UserTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.ManualTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.Documentation_Comment - org.eclipse.papyrus.uml.diagram.activity.Comment_3080 - - - - org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint - org.eclipse.papyrus.uml.diagram.activity.Constraint_3002 - - - - org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint - org.eclipse.papyrus.uml.diagram.activity.Constraint_3003 - - - - org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint - org.eclipse.papyrus.uml.diagram.activity.Constraint_3112 - - - - org.eclipse.papyrus.bpmn.SubProcess_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.LoopCharacteristics_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType - - BPMNProfile::CallActivity - - - - - org.eclipse.papyrus.bpmn.BusinessRuleTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.ComplexBehaviorDefinition_ControlFlow - org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 - - - - org.eclipse.papyrus.bpmn.AdHocSubProcess_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.ScriptTask_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - - - - org.eclipse.papyrus.bpmn.SendTask_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.Transaction_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_LoopNode - org.eclipse.papyrus.uml.diagram.activity.LoopNode_3071 - - - - org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - org.eclipse.papyrus.bpmn.ReceiveTask_AcceptEventAction - org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 - - - - org.eclipse.papyrus.bpmn.ServiceTask_CallOperationAction - org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 - - - - org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_ExpansionRegion - org.eclipse.papyrus.uml.diagram.activity.ExpansionRegion_3070 - - - - org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_StructuredActivityNode - org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 - - - - BPMNProfile - - - - - BPMNProfile - - + + + + org.eclipse.papyrus.bpmn.InclusiveGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.InclusiveGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.EventBasedGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.EventBasedGateway_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.EventBasedGateway_InterruptibleActivityRegion + org.eclipse.papyrus.uml.diagram.activity.InterruptibleActivityRegion_3068 + + + + org.eclipse.papyrus.bpmn.NonExclusiveGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.NonExclusiveGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.ParallelGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.ParallelGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.ComplexGateway_JoinNode + org.eclipse.papyrus.uml.diagram.activity.JoinNode_3041 + + + + org.eclipse.papyrus.bpmn.ComplexGateway_ForkNode + org.eclipse.papyrus.uml.diagram.activity.ForkNode_3040 + + + + org.eclipse.papyrus.bpmn.ExclusiveGateway_DecisionNode + org.eclipse.papyrus.uml.diagram.activity.DecisionNode_3038 + + + + org.eclipse.papyrus.bpmn.ExclusiveGateway_MergeNode + org.eclipse.papyrus.uml.diagram.activity.MergeNode_3039 + + + + org.eclipse.papyrus.uml.diagram.activity.Package_1000 + + BPMNProfile::Definitions + + + + + org.eclipse.papyrus.bpmn.LaneSet_ActivityPartition + org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 + + + + org.eclipse.papyrus.bpmn.BPMNProcess_Activity + org.eclipse.papyrus.uml.diagram.activity.Activity_2001 + + + + org.eclipse.papyrus.bpmn.BPMNProcess_Activity + org.eclipse.papyrus.uml.diagram.activity.Activity_3083 + + + + org.eclipse.papyrus.bpmn.Lane_ActivityPartition + org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 + + + + org.eclipse.papyrus.bpmn.EndEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.EndEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.CatchEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.CatchEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.StartEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.StartEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.IntermediateCatchEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.IntermediateCatchEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.IntermediateThrowEvent_SendObjectAction + org.eclipse.papyrus.uml.diagram.activity.SendObjectAction_3042 + + + + org.eclipse.papyrus.bpmn.IntermediateThrowEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.IntermediateThrowEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.ThrowEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.ThrowEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.BoundaryEvent_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.BoundaryEvent_InitialNode + org.eclipse.papyrus.uml.diagram.activity.InitialNode_3004 + + + + org.eclipse.papyrus.bpmn.ImplicitThrowEvent_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.ImplicitThrowEvent_FlowFinalNode + org.eclipse.papyrus.uml.diagram.activity.FlowFinalNode_3006 + + + + org.eclipse.papyrus.bpmn.TextAnnotation_Comment + org.eclipse.papyrus.uml.diagram.activity.Comment_3080 + + + + org.eclipse.papyrus.bpmn.Group_ActivityPartition + org.eclipse.papyrus.uml.diagram.activity.ActivityPartition_3067 + + + + org.eclipse.papyrus.bpmn.SequenceFlow_ControlFlow + org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 + + + + org.eclipse.papyrus.bpmn.DataObjectReference_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataOutputAssociation_ObjectFlow + org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3014 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3020 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3024 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3064 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3077 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3084 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3087 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3090 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3094 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3098 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3109 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3111 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3191 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3125 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3126 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3127 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3128 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3129 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3130 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3131 + + + + org.eclipse.papyrus.bpmn.DataOutput_OutputPin + org.eclipse.papyrus.uml.diagram.activity.OutputPin_3202 + + + + org.eclipse.papyrus.bpmn.DataOutput_Parameter + org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 + + + + org.eclipse.papyrus.bpmn.DataOutput_ActivityParameterNode + org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 + + + + org.eclipse.papyrus.bpmn.BPMNProperty_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataInputAssociation_ObjectFlow + org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 + + + + org.eclipse.papyrus.bpmn.DataStoreReference_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataObject_DataStoreNode + org.eclipse.papyrus.uml.diagram.activity.DataStoreNode_3078 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3013 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3019 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3023 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3055 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3089 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3092 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3096 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3101 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3103 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3105 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3188 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3133 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3134 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3136 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3137 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3138 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3139 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3140 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3141 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3142 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3143 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3144 + + + + org.eclipse.papyrus.bpmn.DataInput_InputPin + org.eclipse.papyrus.uml.diagram.activity.InputPin_3199 + + + + org.eclipse.papyrus.bpmn.DataInput_Parameter + org.eclipse.papyrus.uml.diagram.activity.Parameter_3001 + + + + org.eclipse.papyrus.bpmn.DataInput_ActivityParameterNode + org.eclipse.papyrus.uml.diagram.activity.ActivityParameterNode_3059 + + + + org.eclipse.papyrus.bpmn.DataAssociation_ObjectFlow + org.eclipse.papyrus.uml.diagram.activity.ObjectFlow_4003 + + + + org.eclipse.papyrus.bpmn.UserTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.ManualTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.Documentation_Comment + org.eclipse.papyrus.uml.diagram.activity.Comment_3080 + + + + org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint + org.eclipse.papyrus.uml.diagram.activity.Constraint_3002 + + + + org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint + org.eclipse.papyrus.uml.diagram.activity.Constraint_3003 + + + + org.eclipse.papyrus.bpmn.BPMNRelationship_Constraint + org.eclipse.papyrus.uml.diagram.activity.Constraint_3112 + + + + org.eclipse.papyrus.bpmn.SubProcess_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.LoopCharacteristics_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType + + BPMNProfile::CallActivity + + + + + org.eclipse.papyrus.bpmn.BusinessRuleTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.ComplexBehaviorDefinition_ControlFlow + org.eclipse.papyrus.uml.diagram.activity.ControlFlow_4004 + + + + org.eclipse.papyrus.bpmn.AdHocSubProcess_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.ScriptTask_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + + + + org.eclipse.papyrus.bpmn.SendTask_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.Transaction_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_LoopNode + org.eclipse.papyrus.uml.diagram.activity.LoopNode_3071 + + + + org.eclipse.papyrus.bpmn.StandardLoopCharacteristics_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + org.eclipse.papyrus.bpmn.ReceiveTask_AcceptEventAction + org.eclipse.papyrus.uml.diagram.activity.AcceptEventAction_3063 + + + + org.eclipse.papyrus.bpmn.ServiceTask_CallOperationAction + org.eclipse.papyrus.uml.diagram.activity.CallOperationAction_3010 + + + + org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_ExpansionRegion + org.eclipse.papyrus.uml.diagram.activity.ExpansionRegion_3070 + + + + org.eclipse.papyrus.bpmn.MultiInstanceLoopCharacteristics_StructuredActivityNode + org.eclipse.papyrus.uml.diagram.activity.StructuredActivityNode_3065 + + + + BPMNProfile + + + + + BPMNProfile + + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/processCustom.elementtypesconfigurations b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/processCustom.elementtypesconfigurations index 0f4550ce1fa..349e6050eed 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/processCustom.elementtypesconfigurations +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/model/processCustom.elementtypesconfigurations @@ -1,11 +1,11 @@ - - - - org.eclipse.papyrus.bpmn.Lane_ActivityPartition - - - - org.eclipse.papyrus.bpmn.Task_OpaqueAction - org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 - + + + + org.eclipse.papyrus.bpmn.Lane_ActivityPartition + + + + org.eclipse.papyrus.bpmn.Task_OpaqueAction + org.eclipse.papyrus.uml.diagram.activity.OpaqueAction_3007 + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/plugin.xml b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/plugin.xml index 3aa5e416b03..12d54823fce 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/plugin.xml +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn.diagram.process/plugin.xml @@ -2,14 +2,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/META-INF/MANIFEST.MF b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/META-INF/MANIFEST.MF index f79de249662..5bf36f8ea54 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/META-INF/MANIFEST.MF +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/META-INF/MANIFEST.MF @@ -6,7 +6,7 @@ Export-Package: org.eclipse.papyrus.bpmn, Require-Bundle: org.eclipse.ui;bundle-version="3.107.0", org.eclipse.core.runtime;bundle-version="3.11.0", org.eclipse.uml2.uml;bundle-version="5.1.0";visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0" + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0" Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy Bundle-ClassPath: . diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/bpmn.elementtypesconfigurations b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/bpmn.elementtypesconfigurations index 0daa6d253f3..0f01cecf910 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/bpmn.elementtypesconfigurations +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/bpmn.elementtypesconfigurations @@ -1,4550 +1,4550 @@ - - - - org.eclipse.papyrus.uml.JoinNode - - BPMNProfile::InclusiveGateway - - - - - org.eclipse.papyrus.uml.ForkNode - - BPMNProfile::InclusiveGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::InclusiveGateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::InclusiveGateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::InclusiveGateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::InclusiveGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::Gateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::Gateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::Gateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Gateway - - - - - org.eclipse.papyrus.uml.ForkNode - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.InterruptibleActivityRegion - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::EventBasedGateway - - - - - org.eclipse.papyrus.uml.JoinNode - - BPMNProfile::NonExclusiveGateway - - - - - org.eclipse.papyrus.uml.ForkNode - - BPMNProfile::NonExclusiveGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::NonExclusiveGateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::NonExclusiveGateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::NonExclusiveGateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::NonExclusiveGateway - - - - - org.eclipse.papyrus.uml.JoinNode - - BPMNProfile::ParallelGateway - - - - - org.eclipse.papyrus.uml.ForkNode - - BPMNProfile::ParallelGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::ParallelGateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::ParallelGateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ParallelGateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ParallelGateway - - - - - org.eclipse.papyrus.uml.JoinNode - - BPMNProfile::ComplexGateway - - - - - org.eclipse.papyrus.uml.ForkNode - - BPMNProfile::ComplexGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::ComplexGateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::ComplexGateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ComplexGateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ComplexGateway - - - - - org.eclipse.papyrus.uml.DecisionNode - - BPMNProfile::ExclusiveGateway - - - - - org.eclipse.papyrus.uml.MergeNode - - BPMNProfile::ExclusiveGateway - - - - - org.eclipse.papyrus.uml.ControlNode - - BPMNProfile::ExclusiveGateway - - - - - org.eclipse.papyrus.uml.ActivityGroup - - BPMNProfile::ExclusiveGateway - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ExclusiveGateway - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ExclusiveGateway - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::RootElement - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::RootElement - - - - - org.eclipse.papyrus.uml.PackageImport - - BPMNProfile::Import - - - - - org.eclipse.papyrus.uml.Package - - BPMNProfile::Definitions - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Definitions - - - - - org.eclipse.papyrus.uml.ActivityPartition - - BPMNProfile::LaneSet - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::LaneSet - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::Monitoring - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Monitoring - - - - - org.eclipse.papyrus.uml.Activity - - BPMNProfile::BPMNProcess - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::BPMNProcess - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::BPMNProcess - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNProcess - - - - - org.eclipse.papyrus.uml.ActivityPartition - - BPMNProfile::Lane - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Lane - - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - BPMNProfile::GlobalScriptTask - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::GlobalScriptTask - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::GlobalScriptTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::GlobalScriptTask - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::Auditing - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Auditing - - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - BPMNProfile::GlobalTask - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::GlobalTask - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::GlobalTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::GlobalTask - - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - BPMNProfile::GlobalBusinessRuleTask - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::GlobalBusinessRuleTask - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::GlobalBusinessRuleTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::GlobalBusinessRuleTask - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::CompensateEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::CompensateEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::CompensateEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CompensateEventDefinition - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::EscalationEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::EscalationEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::EscalationEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::EscalationEventDefinition - - - - - org.eclipse.papyrus.uml.ChangeEvent - - BPMNProfile::TimerEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::TimerEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::TimerEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::TimerEventDefinition - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::SignalEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::SignalEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::SignalEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::SignalEventDefinition - - - - - org.eclipse.papyrus.uml.FinalNode - - BPMNProfile::EndEvent - - - - - org.eclipse.papyrus.uml.CallOperationAction - - BPMNProfile::EndEvent - - - - - org.eclipse.papyrus.uml.FlowFinalNode - - BPMNProfile::EndEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::EndEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::EndEvent - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::EventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::EventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::EventDefinition - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::BPMNEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNEvent - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::Error - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::Error - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Error - - - - - org.eclipse.papyrus.uml.AcceptEventAction - - BPMNProfile::CatchEvent - - - - - org.eclipse.papyrus.uml.InitialNode - - BPMNProfile::CatchEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::CatchEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CatchEvent - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::MessageEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::MessageEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::MessageEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::MessageEventDefinition - - - - - org.eclipse.papyrus.uml.AcceptEventAction - - BPMNProfile::StartEvent - - - - - org.eclipse.papyrus.uml.InitialNode - - BPMNProfile::StartEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::StartEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::StartEvent - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::BPMNSignal - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::BPMNSignal - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNSignal - - - - - org.eclipse.papyrus.uml.ChangeEvent - - BPMNProfile::ConditionalEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::ConditionalEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::ConditionalEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ConditionalEventDefinition - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::LinkEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::LinkEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::LinkEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::LinkEventDefinition - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::ErrorEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::ErrorEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::ErrorEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ErrorEventDefinition - - - - - org.eclipse.papyrus.uml.AcceptEventAction - - BPMNProfile::IntermediateCatchEvent - - - - - org.eclipse.papyrus.uml.InitialNode - - BPMNProfile::IntermediateCatchEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::IntermediateCatchEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::IntermediateCatchEvent - - - - - org.eclipse.papyrus.uml.SendObjectAction - - BPMNProfile::IntermediateThrowEvent - - - - - org.eclipse.papyrus.uml.CallOperationAction - - BPMNProfile::IntermediateThrowEvent - - - - - org.eclipse.papyrus.uml.FlowFinalNode - - BPMNProfile::IntermediateThrowEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::IntermediateThrowEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::IntermediateThrowEvent - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::TerminateEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::TerminateEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::TerminateEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::TerminateEventDefinition - - - - - org.eclipse.papyrus.uml.CallOperationAction - - BPMNProfile::ThrowEvent - - - - - org.eclipse.papyrus.uml.FlowFinalNode - - BPMNProfile::ThrowEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ThrowEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ThrowEvent - - - - - org.eclipse.papyrus.uml.AcceptEventAction - - BPMNProfile::BoundaryEvent - - - - - org.eclipse.papyrus.uml.InitialNode - - BPMNProfile::BoundaryEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::BoundaryEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BoundaryEvent - - - - - org.eclipse.papyrus.uml.CallOperationAction - - BPMNProfile::ImplicitThrowEvent - - - - - org.eclipse.papyrus.uml.FlowFinalNode - - BPMNProfile::ImplicitThrowEvent - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ImplicitThrowEvent - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ImplicitThrowEvent - - - - - org.eclipse.papyrus.uml.CallEvent - - BPMNProfile::CancelEventDefinition - - - - - org.eclipse.papyrus.uml.Event - - BPMNProfile::CancelEventDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::CancelEventDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CancelEventDefinition - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::Escalation - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::Escalation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Escalation - - - - - org.eclipse.papyrus.uml.Comment - - BPMNProfile::TextAnnotation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::TextAnnotation - - - - - org.eclipse.papyrus.uml.Enumeration - - BPMNProfile::Category - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::Category - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Category - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::BPMNAssociation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNAssociation - - - - - org.eclipse.papyrus.uml.ActivityPartition - - BPMNProfile::Group - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Group - - - - - org.eclipse.papyrus.uml.EnumerationLiteral - - BPMNProfile::CategoryValue - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CategoryValue - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNArtifact - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::FlowNode - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::FlowNode - - - - - org.eclipse.papyrus.uml.OpaqueExpression - - BPMNProfile::FormalExpression - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::FormalExpression - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::Resource - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::Resource - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Resource - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::FlowElement - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::CorrelationPropertyBinding - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CorrelationPropertyBinding - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::CorrelationSubscription - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CorrelationSubscription - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::CallableElement - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::CallableElement - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CallableElement - - - - - org.eclipse.papyrus.uml.ControlFlow - - BPMNProfile::SequenceFlow - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::SequenceFlow - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::CorrelationPropertyRetrievalExpression - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CorrelationPropertyRetrievalExpression - - - - - org.eclipse.papyrus.uml.OpaqueExpression - - BPMNProfile::BPMNExpression - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNExpression - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::CorrelationProperty - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CorrelationProperty - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::ItemDefinition - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::ItemDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ItemDefinition - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::CorrelationKey - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CorrelationKey - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::FlowElementsContainer - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::BPMNMessage - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::BPMNMessage - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNMessage - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::ResourceParameter - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ResourceParameter - - - - - org.eclipse.papyrus.uml.ParameterSet - - BPMNProfile::OutputSet - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::OutputSet - - - - - org.eclipse.papyrus.uml.ParameterSet - - BPMNProfile::InputSet - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::InputSet - - - - - org.eclipse.papyrus.uml.State - - BPMNProfile::DataState - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataState - - - - - org.eclipse.papyrus.uml.DataStoreNode - - BPMNProfile::DataObjectReference - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::DataObjectReference - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataObjectReference - - - - - org.eclipse.papyrus.uml.ObjectFlow - - BPMNProfile::DataOutputAssociation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataOutputAssociation - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::InputOutputBinding - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::InputOutputBinding - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::Assignment - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Assignment - - - - - org.eclipse.papyrus.uml.OutputPin - - BPMNProfile::DataOutput - - - - - org.eclipse.papyrus.uml.Parameter - - BPMNProfile::DataOutput - - - - - org.eclipse.papyrus.uml.ActivityParameterNode - - BPMNProfile::DataOutput - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::DataOutput - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataOutput - - - - - org.eclipse.papyrus.uml.DataStoreNode - - BPMNProfile::BPMNProperty - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::BPMNProperty - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNProperty - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::ItemAwareElement - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ItemAwareElement - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::InputOutputSpecification - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::InputOutputSpecification - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::InputOutputSpecification - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::DataStore - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::DataStore - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataStore - - - - - org.eclipse.papyrus.uml.ObjectFlow - - BPMNProfile::DataInputAssociation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataInputAssociation - - - - - org.eclipse.papyrus.uml.DataStoreNode - - BPMNProfile::DataStoreReference - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataStoreReference - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::DataStoreReference - - - - - org.eclipse.papyrus.uml.DataStoreNode - - BPMNProfile::DataObject - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::DataObject - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataObject - - - - - org.eclipse.papyrus.uml.InputPin - - BPMNProfile::DataInput - - - - - org.eclipse.papyrus.uml.Parameter - - BPMNProfile::DataInput - - - - - org.eclipse.papyrus.uml.ActivityParameterNode - - BPMNProfile::DataInput - - - - - org.eclipse.papyrus.uml.TypedElement - - BPMNProfile::DataInput - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataInput - - - - - org.eclipse.papyrus.uml.ObjectFlow - - BPMNProfile::DataAssociation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::DataAssociation - - - - - org.eclipse.papyrus.uml.OpaqueAction - - BPMNProfile::UserTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::UserTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::UserTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::UserTask - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::HumanPerformer - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::HumanPerformer - - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - BPMNProfile::GlobalUserTask - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::GlobalUserTask - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::GlobalUserTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::GlobalUserTask - - - - - org.eclipse.papyrus.uml.Image - - BPMNProfile::Rendering - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Rendering - - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - BPMNProfile::GlobalManualTask - - - - - org.eclipse.papyrus.uml.Behavior - - BPMNProfile::GlobalManualTask - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::GlobalManualTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::GlobalManualTask - - - - - org.eclipse.papyrus.uml.OpaqueAction - - BPMNProfile::ManualTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::ManualTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ManualTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ManualTask - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::PotentialOwner - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::PotentialOwner - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::InteractionNode - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::Participant - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Participant - - - - - org.eclipse.papyrus.uml.Class - - BPMNProfile::PartnerRole - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::PartnerRole - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::PartnerRole - - - - - org.eclipse.papyrus.uml.InformationFlow - - BPMNProfile::MessageFlow - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::MessageFlow - - - - - org.eclipse.papyrus.uml.Collaboration - - BPMNProfile::BPMNCollaboration - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::BPMNCollaboration - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNCollaboration - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::MessageFlowAssociation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::MessageFlowAssociation - - - - - org.eclipse.papyrus.uml.InstanceSpecification - - BPMNProfile::PartnerEntity - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::PartnerEntity - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::PartnerEntity - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::ParticipantAssociation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ParticipantAssociation - - - - - org.eclipse.papyrus.uml.MultiplicityElement - - BPMNProfile::ParticipantMultiplicity - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ParticipantMultiplicity - - - - - org.eclipse.papyrus.uml.Comment - - BPMNProfile::Documentation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Documentation - - - - - org.eclipse.papyrus.uml.Stereotype - - BPMNProfile::ExtensionDefinition - - - - - org.eclipse.papyrus.uml.Constraint - - BPMNProfile::BPMNRelationship - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNRelationship - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BaseElement - - - - - org.eclipse.papyrus.uml.Slot - - BPMNProfile::ExtensionAttributeValue - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::ExtensionAttributeDefinition - - - - - org.eclipse.papyrus.uml.Stereotype - - BPMNProfile::BPMNExtension - - - - - org.eclipse.papyrus.uml.Operation - - BPMNProfile::BPMNOperation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNOperation - - - - - org.eclipse.papyrus.uml.Interface - - BPMNProfile::BPMNInterface - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::BPMNInterface - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNInterface - - - - - org.eclipse.papyrus.uml.InformationFlow - - BPMNProfile::SubConversation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::SubConversation - - - - - org.eclipse.papyrus.uml.InformationFlow - - BPMNProfile::ConversationNode - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ConversationNode - - - - - org.eclipse.papyrus.uml.Collaboration - - BPMNProfile::GlobalConversation - - - - - org.eclipse.papyrus.uml.PackageableElement - - BPMNProfile::GlobalConversation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::GlobalConversation - - - - - org.eclipse.papyrus.uml.InformationFlow - - BPMNProfile::CallConversation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CallConversation - - - - - org.eclipse.papyrus.uml.InformationFlow - - BPMNProfile::Conversation - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Conversation - - - - - org.eclipse.papyrus.uml.Dependency - - BPMNProfile::ConversationLink - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ConversationLink - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::SubProcess - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::SubProcess - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::SubProcess - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::SubProcess - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::Performer - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Performer - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::BPMNActivity - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::BPMNActivity - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BPMNActivity - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::LoopCharacteristics - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::LoopCharacteristics - - - - - org.eclipse.papyrus.uml.CallBehaviorAction - - BPMNProfile::CallActivity - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::CallActivity - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::CallActivity - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::CallActivity - - - - - org.eclipse.papyrus.uml.Property - - BPMNProfile::ResourceRole - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ResourceRole - - - - - org.eclipse.papyrus.uml.OpaqueAction - - BPMNProfile::BusinessRuleTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::BusinessRuleTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::BusinessRuleTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::BusinessRuleTask - - - - - org.eclipse.papyrus.uml.ControlFlow - - BPMNProfile::ComplexBehaviorDefinition - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ComplexBehaviorDefinition - - - - - org.eclipse.papyrus.uml.OpaqueExpression - - BPMNProfile::ResourceAssignmentExpression - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ResourceAssignmentExpression - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::AdHocSubProcess - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::AdHocSubProcess - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::AdHocSubProcess - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::AdHocSubProcess - - - - - org.eclipse.papyrus.uml.OpaqueAction - - BPMNProfile::ScriptTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::ScriptTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ScriptTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ScriptTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::Task - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::Task - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Task - - - - - org.eclipse.papyrus.uml.CallOperationAction - - BPMNProfile::SendTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::SendTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::SendTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::SendTask - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::Transaction - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::Transaction - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::Transaction - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::Transaction - - - - - org.eclipse.papyrus.uml.LoopNode - - BPMNProfile::StandardLoopCharacteristics - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::StandardLoopCharacteristics - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::StandardLoopCharacteristics - - - - - org.eclipse.papyrus.uml.AcceptEventAction - - BPMNProfile::ReceiveTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::ReceiveTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ReceiveTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ReceiveTask - - - - - org.eclipse.papyrus.uml.Slot - - BPMNProfile::ResourceParameterBinding - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ResourceParameterBinding - - - - - org.eclipse.papyrus.uml.CallOperationAction - - BPMNProfile::ServiceTask - - - - - org.eclipse.papyrus.uml.Action - - BPMNProfile::ServiceTask - - - - - org.eclipse.papyrus.uml.ActivityNode - - BPMNProfile::ServiceTask - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::ServiceTask - - - - - org.eclipse.papyrus.uml.ExpansionRegion - - BPMNProfile::MultiInstanceLoopCharacteristics - - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - BPMNProfile::MultiInstanceLoopCharacteristics - - - - - org.eclipse.papyrus.uml.Element - - BPMNProfile::MultiInstanceLoopCharacteristics - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - - - - BPMNProfile - - + + + + org.eclipse.papyrus.uml.JoinNode + + BPMNProfile::InclusiveGateway + + + + + org.eclipse.papyrus.uml.ForkNode + + BPMNProfile::InclusiveGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::InclusiveGateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::InclusiveGateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::InclusiveGateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::InclusiveGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::Gateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::Gateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::Gateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Gateway + + + + + org.eclipse.papyrus.uml.ForkNode + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.InterruptibleActivityRegion + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::EventBasedGateway + + + + + org.eclipse.papyrus.uml.JoinNode + + BPMNProfile::NonExclusiveGateway + + + + + org.eclipse.papyrus.uml.ForkNode + + BPMNProfile::NonExclusiveGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::NonExclusiveGateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::NonExclusiveGateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::NonExclusiveGateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::NonExclusiveGateway + + + + + org.eclipse.papyrus.uml.JoinNode + + BPMNProfile::ParallelGateway + + + + + org.eclipse.papyrus.uml.ForkNode + + BPMNProfile::ParallelGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::ParallelGateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::ParallelGateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ParallelGateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ParallelGateway + + + + + org.eclipse.papyrus.uml.JoinNode + + BPMNProfile::ComplexGateway + + + + + org.eclipse.papyrus.uml.ForkNode + + BPMNProfile::ComplexGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::ComplexGateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::ComplexGateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ComplexGateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ComplexGateway + + + + + org.eclipse.papyrus.uml.DecisionNode + + BPMNProfile::ExclusiveGateway + + + + + org.eclipse.papyrus.uml.MergeNode + + BPMNProfile::ExclusiveGateway + + + + + org.eclipse.papyrus.uml.ControlNode + + BPMNProfile::ExclusiveGateway + + + + + org.eclipse.papyrus.uml.ActivityGroup + + BPMNProfile::ExclusiveGateway + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ExclusiveGateway + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ExclusiveGateway + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::RootElement + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::RootElement + + + + + org.eclipse.papyrus.uml.PackageImport + + BPMNProfile::Import + + + + + org.eclipse.papyrus.uml.Package + + BPMNProfile::Definitions + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Definitions + + + + + org.eclipse.papyrus.uml.ActivityPartition + + BPMNProfile::LaneSet + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::LaneSet + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::Monitoring + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Monitoring + + + + + org.eclipse.papyrus.uml.Activity + + BPMNProfile::BPMNProcess + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::BPMNProcess + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::BPMNProcess + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNProcess + + + + + org.eclipse.papyrus.uml.ActivityPartition + + BPMNProfile::Lane + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Lane + + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + BPMNProfile::GlobalScriptTask + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::GlobalScriptTask + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::GlobalScriptTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::GlobalScriptTask + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::Auditing + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Auditing + + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + BPMNProfile::GlobalTask + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::GlobalTask + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::GlobalTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::GlobalTask + + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + BPMNProfile::GlobalBusinessRuleTask + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::GlobalBusinessRuleTask + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::GlobalBusinessRuleTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::GlobalBusinessRuleTask + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::CompensateEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::CompensateEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::CompensateEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CompensateEventDefinition + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::EscalationEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::EscalationEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::EscalationEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::EscalationEventDefinition + + + + + org.eclipse.papyrus.uml.ChangeEvent + + BPMNProfile::TimerEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::TimerEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::TimerEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::TimerEventDefinition + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::SignalEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::SignalEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::SignalEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::SignalEventDefinition + + + + + org.eclipse.papyrus.uml.FinalNode + + BPMNProfile::EndEvent + + + + + org.eclipse.papyrus.uml.CallOperationAction + + BPMNProfile::EndEvent + + + + + org.eclipse.papyrus.uml.FlowFinalNode + + BPMNProfile::EndEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::EndEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::EndEvent + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::EventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::EventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::EventDefinition + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::BPMNEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNEvent + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::Error + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::Error + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Error + + + + + org.eclipse.papyrus.uml.AcceptEventAction + + BPMNProfile::CatchEvent + + + + + org.eclipse.papyrus.uml.InitialNode + + BPMNProfile::CatchEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::CatchEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CatchEvent + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::MessageEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::MessageEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::MessageEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::MessageEventDefinition + + + + + org.eclipse.papyrus.uml.AcceptEventAction + + BPMNProfile::StartEvent + + + + + org.eclipse.papyrus.uml.InitialNode + + BPMNProfile::StartEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::StartEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::StartEvent + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::BPMNSignal + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::BPMNSignal + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNSignal + + + + + org.eclipse.papyrus.uml.ChangeEvent + + BPMNProfile::ConditionalEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::ConditionalEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::ConditionalEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ConditionalEventDefinition + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::LinkEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::LinkEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::LinkEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::LinkEventDefinition + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::ErrorEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::ErrorEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::ErrorEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ErrorEventDefinition + + + + + org.eclipse.papyrus.uml.AcceptEventAction + + BPMNProfile::IntermediateCatchEvent + + + + + org.eclipse.papyrus.uml.InitialNode + + BPMNProfile::IntermediateCatchEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::IntermediateCatchEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::IntermediateCatchEvent + + + + + org.eclipse.papyrus.uml.SendObjectAction + + BPMNProfile::IntermediateThrowEvent + + + + + org.eclipse.papyrus.uml.CallOperationAction + + BPMNProfile::IntermediateThrowEvent + + + + + org.eclipse.papyrus.uml.FlowFinalNode + + BPMNProfile::IntermediateThrowEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::IntermediateThrowEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::IntermediateThrowEvent + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::TerminateEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::TerminateEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::TerminateEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::TerminateEventDefinition + + + + + org.eclipse.papyrus.uml.CallOperationAction + + BPMNProfile::ThrowEvent + + + + + org.eclipse.papyrus.uml.FlowFinalNode + + BPMNProfile::ThrowEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ThrowEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ThrowEvent + + + + + org.eclipse.papyrus.uml.AcceptEventAction + + BPMNProfile::BoundaryEvent + + + + + org.eclipse.papyrus.uml.InitialNode + + BPMNProfile::BoundaryEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::BoundaryEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BoundaryEvent + + + + + org.eclipse.papyrus.uml.CallOperationAction + + BPMNProfile::ImplicitThrowEvent + + + + + org.eclipse.papyrus.uml.FlowFinalNode + + BPMNProfile::ImplicitThrowEvent + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ImplicitThrowEvent + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ImplicitThrowEvent + + + + + org.eclipse.papyrus.uml.CallEvent + + BPMNProfile::CancelEventDefinition + + + + + org.eclipse.papyrus.uml.Event + + BPMNProfile::CancelEventDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::CancelEventDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CancelEventDefinition + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::Escalation + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::Escalation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Escalation + + + + + org.eclipse.papyrus.uml.Comment + + BPMNProfile::TextAnnotation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::TextAnnotation + + + + + org.eclipse.papyrus.uml.Enumeration + + BPMNProfile::Category + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::Category + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Category + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::BPMNAssociation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNAssociation + + + + + org.eclipse.papyrus.uml.ActivityPartition + + BPMNProfile::Group + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Group + + + + + org.eclipse.papyrus.uml.EnumerationLiteral + + BPMNProfile::CategoryValue + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CategoryValue + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNArtifact + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::FlowNode + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::FlowNode + + + + + org.eclipse.papyrus.uml.OpaqueExpression + + BPMNProfile::FormalExpression + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::FormalExpression + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::Resource + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::Resource + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Resource + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::FlowElement + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::CorrelationPropertyBinding + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CorrelationPropertyBinding + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::CorrelationSubscription + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CorrelationSubscription + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::CallableElement + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::CallableElement + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CallableElement + + + + + org.eclipse.papyrus.uml.ControlFlow + + BPMNProfile::SequenceFlow + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::SequenceFlow + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::CorrelationPropertyRetrievalExpression + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CorrelationPropertyRetrievalExpression + + + + + org.eclipse.papyrus.uml.OpaqueExpression + + BPMNProfile::BPMNExpression + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNExpression + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::CorrelationProperty + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CorrelationProperty + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::ItemDefinition + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::ItemDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ItemDefinition + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::CorrelationKey + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CorrelationKey + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::FlowElementsContainer + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::BPMNMessage + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::BPMNMessage + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNMessage + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::ResourceParameter + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ResourceParameter + + + + + org.eclipse.papyrus.uml.ParameterSet + + BPMNProfile::OutputSet + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::OutputSet + + + + + org.eclipse.papyrus.uml.ParameterSet + + BPMNProfile::InputSet + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::InputSet + + + + + org.eclipse.papyrus.uml.State + + BPMNProfile::DataState + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataState + + + + + org.eclipse.papyrus.uml.DataStoreNode + + BPMNProfile::DataObjectReference + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::DataObjectReference + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataObjectReference + + + + + org.eclipse.papyrus.uml.ObjectFlow + + BPMNProfile::DataOutputAssociation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataOutputAssociation + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::InputOutputBinding + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::InputOutputBinding + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::Assignment + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Assignment + + + + + org.eclipse.papyrus.uml.OutputPin + + BPMNProfile::DataOutput + + + + + org.eclipse.papyrus.uml.Parameter + + BPMNProfile::DataOutput + + + + + org.eclipse.papyrus.uml.ActivityParameterNode + + BPMNProfile::DataOutput + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::DataOutput + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataOutput + + + + + org.eclipse.papyrus.uml.DataStoreNode + + BPMNProfile::BPMNProperty + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::BPMNProperty + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNProperty + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::ItemAwareElement + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ItemAwareElement + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::InputOutputSpecification + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::InputOutputSpecification + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::InputOutputSpecification + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::DataStore + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::DataStore + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataStore + + + + + org.eclipse.papyrus.uml.ObjectFlow + + BPMNProfile::DataInputAssociation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataInputAssociation + + + + + org.eclipse.papyrus.uml.DataStoreNode + + BPMNProfile::DataStoreReference + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataStoreReference + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::DataStoreReference + + + + + org.eclipse.papyrus.uml.DataStoreNode + + BPMNProfile::DataObject + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::DataObject + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataObject + + + + + org.eclipse.papyrus.uml.InputPin + + BPMNProfile::DataInput + + + + + org.eclipse.papyrus.uml.Parameter + + BPMNProfile::DataInput + + + + + org.eclipse.papyrus.uml.ActivityParameterNode + + BPMNProfile::DataInput + + + + + org.eclipse.papyrus.uml.TypedElement + + BPMNProfile::DataInput + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataInput + + + + + org.eclipse.papyrus.uml.ObjectFlow + + BPMNProfile::DataAssociation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::DataAssociation + + + + + org.eclipse.papyrus.uml.OpaqueAction + + BPMNProfile::UserTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::UserTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::UserTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::UserTask + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::HumanPerformer + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::HumanPerformer + + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + BPMNProfile::GlobalUserTask + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::GlobalUserTask + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::GlobalUserTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::GlobalUserTask + + + + + org.eclipse.papyrus.uml.Image + + BPMNProfile::Rendering + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Rendering + + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + BPMNProfile::GlobalManualTask + + + + + org.eclipse.papyrus.uml.Behavior + + BPMNProfile::GlobalManualTask + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::GlobalManualTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::GlobalManualTask + + + + + org.eclipse.papyrus.uml.OpaqueAction + + BPMNProfile::ManualTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::ManualTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ManualTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ManualTask + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::PotentialOwner + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::PotentialOwner + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::InteractionNode + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::Participant + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Participant + + + + + org.eclipse.papyrus.uml.Class + + BPMNProfile::PartnerRole + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::PartnerRole + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::PartnerRole + + + + + org.eclipse.papyrus.uml.InformationFlow + + BPMNProfile::MessageFlow + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::MessageFlow + + + + + org.eclipse.papyrus.uml.Collaboration + + BPMNProfile::BPMNCollaboration + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::BPMNCollaboration + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNCollaboration + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::MessageFlowAssociation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::MessageFlowAssociation + + + + + org.eclipse.papyrus.uml.InstanceSpecification + + BPMNProfile::PartnerEntity + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::PartnerEntity + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::PartnerEntity + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::ParticipantAssociation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ParticipantAssociation + + + + + org.eclipse.papyrus.uml.MultiplicityElement + + BPMNProfile::ParticipantMultiplicity + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ParticipantMultiplicity + + + + + org.eclipse.papyrus.uml.Comment + + BPMNProfile::Documentation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Documentation + + + + + org.eclipse.papyrus.uml.Stereotype + + BPMNProfile::ExtensionDefinition + + + + + org.eclipse.papyrus.uml.Constraint + + BPMNProfile::BPMNRelationship + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNRelationship + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BaseElement + + + + + org.eclipse.papyrus.uml.Slot + + BPMNProfile::ExtensionAttributeValue + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::ExtensionAttributeDefinition + + + + + org.eclipse.papyrus.uml.Stereotype + + BPMNProfile::BPMNExtension + + + + + org.eclipse.papyrus.uml.Operation + + BPMNProfile::BPMNOperation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNOperation + + + + + org.eclipse.papyrus.uml.Interface + + BPMNProfile::BPMNInterface + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::BPMNInterface + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNInterface + + + + + org.eclipse.papyrus.uml.InformationFlow + + BPMNProfile::SubConversation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::SubConversation + + + + + org.eclipse.papyrus.uml.InformationFlow + + BPMNProfile::ConversationNode + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ConversationNode + + + + + org.eclipse.papyrus.uml.Collaboration + + BPMNProfile::GlobalConversation + + + + + org.eclipse.papyrus.uml.PackageableElement + + BPMNProfile::GlobalConversation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::GlobalConversation + + + + + org.eclipse.papyrus.uml.InformationFlow + + BPMNProfile::CallConversation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CallConversation + + + + + org.eclipse.papyrus.uml.InformationFlow + + BPMNProfile::Conversation + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Conversation + + + + + org.eclipse.papyrus.uml.Dependency + + BPMNProfile::ConversationLink + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ConversationLink + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::SubProcess + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::SubProcess + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::SubProcess + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::SubProcess + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::Performer + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Performer + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::BPMNActivity + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::BPMNActivity + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BPMNActivity + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::LoopCharacteristics + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::LoopCharacteristics + + + + + org.eclipse.papyrus.uml.CallBehaviorAction + + BPMNProfile::CallActivity + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::CallActivity + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::CallActivity + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::CallActivity + + + + + org.eclipse.papyrus.uml.Property + + BPMNProfile::ResourceRole + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ResourceRole + + + + + org.eclipse.papyrus.uml.OpaqueAction + + BPMNProfile::BusinessRuleTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::BusinessRuleTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::BusinessRuleTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::BusinessRuleTask + + + + + org.eclipse.papyrus.uml.ControlFlow + + BPMNProfile::ComplexBehaviorDefinition + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ComplexBehaviorDefinition + + + + + org.eclipse.papyrus.uml.OpaqueExpression + + BPMNProfile::ResourceAssignmentExpression + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ResourceAssignmentExpression + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::AdHocSubProcess + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::AdHocSubProcess + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::AdHocSubProcess + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::AdHocSubProcess + + + + + org.eclipse.papyrus.uml.OpaqueAction + + BPMNProfile::ScriptTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::ScriptTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ScriptTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ScriptTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::Task + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::Task + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Task + + + + + org.eclipse.papyrus.uml.CallOperationAction + + BPMNProfile::SendTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::SendTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::SendTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::SendTask + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::Transaction + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::Transaction + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::Transaction + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::Transaction + + + + + org.eclipse.papyrus.uml.LoopNode + + BPMNProfile::StandardLoopCharacteristics + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::StandardLoopCharacteristics + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::StandardLoopCharacteristics + + + + + org.eclipse.papyrus.uml.AcceptEventAction + + BPMNProfile::ReceiveTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::ReceiveTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ReceiveTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ReceiveTask + + + + + org.eclipse.papyrus.uml.Slot + + BPMNProfile::ResourceParameterBinding + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ResourceParameterBinding + + + + + org.eclipse.papyrus.uml.CallOperationAction + + BPMNProfile::ServiceTask + + + + + org.eclipse.papyrus.uml.Action + + BPMNProfile::ServiceTask + + + + + org.eclipse.papyrus.uml.ActivityNode + + BPMNProfile::ServiceTask + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::ServiceTask + + + + + org.eclipse.papyrus.uml.ExpansionRegion + + BPMNProfile::MultiInstanceLoopCharacteristics + + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + BPMNProfile::MultiInstanceLoopCharacteristics + + + + + org.eclipse.papyrus.uml.Element + + BPMNProfile::MultiInstanceLoopCharacteristics + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + + + + BPMNProfile + + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/customBpmn.elementtypesconfigurations b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/customBpmn.elementtypesconfigurations index 73c941e56ac..353f3e70f0e 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/customBpmn.elementtypesconfigurations +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/model/customBpmn.elementtypesconfigurations @@ -1,14 +1,14 @@ - - - - org.eclipse.papyrus.uml.OpaqueAction - - BPMNProfile::Task - - - - - BPMNProfile - - + + + + org.eclipse.papyrus.uml.OpaqueAction + + BPMNProfile::Task + + + + + BPMNProfile + + \ No newline at end of file diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/plugin.xml b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/plugin.xml index 4705c38d506..6c1ecc5335a 100644 --- a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/plugin.xml +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/plugin.xml @@ -34,14 +34,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF index 0cd52338d3e..9909cf78989 100644 --- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF @@ -7,7 +7,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0", org.eclipse.papyrus.umlrt;bundle-version="1.2.0", org.eclipse.papyrus.infra.newchild;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", org.eclipse.emf.ecore, org.eclipse.uml2.uml, org.eclipse.papyrus.emf.facet.efacet.core;bundle-version="1.2.0", diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/META-INF/MANIFEST.MF b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/META-INF/MANIFEST.MF index a861015c245..5e672fcdb35 100644 --- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/META-INF/MANIFEST.MF +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/META-INF/MANIFEST.MF @@ -8,7 +8,7 @@ Require-Bundle: org.eclipse.papyrus.uml.extensionpoints;bundle-version="1.2.0", org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0", org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.2.0", org.eclipse.papyrus.infra.newchild;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", org.eclipse.gmf.runtime.emf.type.core, org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0", org.eclipse.papyrus.dsml.validation;bundle-version="1.2.0", diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations index 3841ae4a75e..e1f383789d0 100644 --- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations @@ -1,375 +1,132 @@ - - - - - org.eclipse.papyrus.uml.Class - - - UMLRealTime::Capsule - - - - - org.eclipse.papyrus.uml.Property - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.uml.Collaboration - - - UMLRealTime::Protocol - - - - - org.eclipse.papyrus.uml.Port - - UMLRealTime::RTPort - - - - - org.eclipse.papyrus.uml.Connector - - UMLRealTime::RTConnector - - - - - org.eclipse.papyrus.uml.Package - - - UMLRealTime::ProtocolContainer - - - - - org.eclipse.papyrus.uml.RedefinableElement - - UMLRealTime::RTRExcludedElement - - - - - org.eclipse.papyrus.uml.Interface - - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.uml.Operation - - - - - - org.eclipse.papyrus.umlrt.ProtocolMessage - - - - - - org.eclipse.papyrus.umlrt.ProtocolMessage - - - - - - org.eclipse.papyrus.umlrt.ProtocolMessage - - - - - - UMLRealTime - - - - - UMLRealTime - - - - - UMLRealTime - - - - - UMLRealTime - - - - - UMLRealTime - - - - - UMLRealTime - - - - - UMLRealTime - - - - - UMLRealTime - - - - - - - - - + + + + org.eclipse.papyrus.uml.Class + + + UMLRealTime::Capsule + + + + + org.eclipse.papyrus.uml.Property + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.uml.Collaboration + + + UMLRealTime::Protocol + + + + + org.eclipse.papyrus.uml.Port + + UMLRealTime::RTPort + + + + + org.eclipse.papyrus.uml.Connector + + UMLRealTime::RTConnector + + + + + org.eclipse.papyrus.uml.Package + + + UMLRealTime::ProtocolContainer + + + + + org.eclipse.papyrus.uml.RedefinableElement + + UMLRealTime::RTRExcludedElement + + + + + org.eclipse.papyrus.uml.Interface + + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.uml.Operation + + + + + + org.eclipse.papyrus.umlrt.ProtocolMessage + + + + + + org.eclipse.papyrus.umlrt.ProtocolMessage + + + + + + org.eclipse.papyrus.umlrt.ProtocolMessage + + + + + + UMLRealTime + + + + + UMLRealTime + + + + + UMLRealTime + + + + + UMLRealTime + + + + + UMLRealTime + + + + + UMLRealTime + + + + + UMLRealTime + + + + + UMLRealTime + + + + + + + + + \ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.umlclassdiagram.elementtypesconfigurations b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.umlclassdiagram.elementtypesconfigurations index 3da949286d7..6fc43c5814d 100644 --- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.umlclassdiagram.elementtypesconfigurations +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.umlclassdiagram.elementtypesconfigurations @@ -1,714 +1,314 @@ - - - - - org.eclipse.papyrus.umlrt.Capsule - org.eclipse.papyrus.uml.diagram.clazz.Class_2008 - - UMLRealTime::Capsule - - - - - org.eclipse.papyrus.umlrt.Capsule - org.eclipse.papyrus.uml.diagram.clazz.Class_3004 - - UMLRealTime::Capsule - - - - - org.eclipse.papyrus.umlrt.Capsule - org.eclipse.papyrus.uml.diagram.clazz.Class_3008 - - UMLRealTime::Capsule - - - - - org.eclipse.papyrus.umlrt.Capsule - org.eclipse.papyrus.uml.diagram.clazz.Class_3010 - - UMLRealTime::Capsule - - - - - org.eclipse.papyrus.umlrt.Capsule - org.eclipse.papyrus.uml.diagram.clazz.Class_3014 - - UMLRealTime::Capsule - - - - - org.eclipse.papyrus.umlrt.CapsulePart - org.eclipse.papyrus.uml.diagram.clazz.Property_3002 - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.umlrt.CapsulePart - org.eclipse.papyrus.uml.diagram.clazz.Property_3005 - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.umlrt.CapsulePart - org.eclipse.papyrus.uml.diagram.clazz.Property_3006 - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.umlrt.CapsulePart - org.eclipse.papyrus.uml.diagram.clazz.Property_3012 - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.umlrt.CapsulePart - org.eclipse.papyrus.uml.diagram.clazz.Property_3018 - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.umlrt.CapsulePart - org.eclipse.papyrus.uml.diagram.clazz.Property_3041 - - UMLRealTime::CapsulePart - - - - - org.eclipse.papyrus.umlrt.Protocol - org.eclipse.papyrus.uml.diagram.clazz.Class_2008 - - UMLRealTime::Protocol - - - - - org.eclipse.papyrus.umlrt.Protocol - org.eclipse.papyrus.uml.diagram.clazz.Class_3004 - - UMLRealTime::Protocol - - - - - org.eclipse.papyrus.umlrt.Protocol - org.eclipse.papyrus.uml.diagram.clazz.Class_3008 - - UMLRealTime::Protocol - - - - - org.eclipse.papyrus.umlrt.Protocol - org.eclipse.papyrus.uml.diagram.clazz.Class_3010 - - UMLRealTime::Protocol - - - - - org.eclipse.papyrus.umlrt.Protocol - org.eclipse.papyrus.uml.diagram.clazz.Class_3014 - - UMLRealTime::Protocol - - - - - org.eclipse.papyrus.umlrt.ProtocolContainer - org.eclipse.papyrus.uml.diagram.clazz.Package_2007 - - UMLRealTime::ProtocolContainer - - - - - org.eclipse.papyrus.umlrt.ProtocolContainer - org.eclipse.papyrus.uml.diagram.clazz.Package_3009 - - UMLRealTime::ProtocolContainer - - - - - org.eclipse.papyrus.umlrt.ProtocolContainer - org.eclipse.papyrus.uml.diagram.clazz.Package_1000 - - UMLRealTime::ProtocolContainer - - - - - org.eclipse.papyrus.umlrt.RTMessageSet - org.eclipse.papyrus.uml.diagram.clazz.Interface_2004 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.RTMessageSet - org.eclipse.papyrus.uml.diagram.clazz.Interface_3023 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.RTMessageSet - org.eclipse.papyrus.uml.diagram.clazz.Interface_3036 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.RTMessageSet - org.eclipse.papyrus.uml.diagram.clazz.Interface_3037 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.RTMessageSet - org.eclipse.papyrus.uml.diagram.clazz.Interface_3038 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageIn - org.eclipse.papyrus.uml.diagram.clazz.Operation_3003 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageIn - org.eclipse.papyrus.uml.diagram.clazz.Operation_3007 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageIn - org.eclipse.papyrus.uml.diagram.clazz.Operation_3013 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageIn - org.eclipse.papyrus.uml.diagram.clazz.Operation_3019 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageIn - org.eclipse.papyrus.uml.diagram.clazz.Operation_3042 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageInOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3003 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageInOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3007 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageInOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3013 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageInOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3019 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageInOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3042 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3003 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3007 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3013 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3019 - - UMLRealTime::RTMessageSet - - - - - org.eclipse.papyrus.umlrt.ProtocolMessageOut - org.eclipse.papyrus.uml.diagram.clazz.Operation_3042 - - UMLRealTime::RTMessageSet - - - + + + + org.eclipse.papyrus.umlrt.Capsule + org.eclipse.papyrus.uml.diagram.clazz.Class_2008 + + UMLRealTime::Capsule + + + + + org.eclipse.papyrus.umlrt.Capsule + org.eclipse.papyrus.uml.diagram.clazz.Class_3004 + + UMLRealTime::Capsule + + + + + org.eclipse.papyrus.umlrt.Capsule + org.eclipse.papyrus.uml.diagram.clazz.Class_3008 + + UMLRealTime::Capsule + + + + + org.eclipse.papyrus.umlrt.Capsule + org.eclipse.papyrus.uml.diagram.clazz.Class_3010 + + UMLRealTime::Capsule + + + + + org.eclipse.papyrus.umlrt.Capsule + org.eclipse.papyrus.uml.diagram.clazz.Class_3014 + + UMLRealTime::Capsule + + + + + org.eclipse.papyrus.umlrt.CapsulePart + org.eclipse.papyrus.uml.diagram.clazz.Property_3002 + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.umlrt.CapsulePart + org.eclipse.papyrus.uml.diagram.clazz.Property_3005 + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.umlrt.CapsulePart + org.eclipse.papyrus.uml.diagram.clazz.Property_3006 + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.umlrt.CapsulePart + org.eclipse.papyrus.uml.diagram.clazz.Property_3012 + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.umlrt.CapsulePart + org.eclipse.papyrus.uml.diagram.clazz.Property_3018 + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.umlrt.CapsulePart + org.eclipse.papyrus.uml.diagram.clazz.Property_3041 + + UMLRealTime::CapsulePart + + + + + org.eclipse.papyrus.umlrt.Protocol + org.eclipse.papyrus.uml.diagram.clazz.Class_2008 + + UMLRealTime::Protocol + + + + + org.eclipse.papyrus.umlrt.Protocol + org.eclipse.papyrus.uml.diagram.clazz.Class_3004 + + UMLRealTime::Protocol + + + + + org.eclipse.papyrus.umlrt.Protocol + org.eclipse.papyrus.uml.diagram.clazz.Class_3008 + + UMLRealTime::Protocol + + + + + org.eclipse.papyrus.umlrt.Protocol + org.eclipse.papyrus.uml.diagram.clazz.Class_3010 + + UMLRealTime::Protocol + + + + + org.eclipse.papyrus.umlrt.Protocol + org.eclipse.papyrus.uml.diagram.clazz.Class_3014 + + UMLRealTime::Protocol + + + + + org.eclipse.papyrus.umlrt.ProtocolContainer + org.eclipse.papyrus.uml.diagram.clazz.Package_2007 + + UMLRealTime::ProtocolContainer + + + + + org.eclipse.papyrus.umlrt.ProtocolContainer + org.eclipse.papyrus.uml.diagram.clazz.Package_3009 + + UMLRealTime::ProtocolContainer + + + + + org.eclipse.papyrus.umlrt.ProtocolContainer + org.eclipse.papyrus.uml.diagram.clazz.Package_1000 + + UMLRealTime::ProtocolContainer + + + + + org.eclipse.papyrus.umlrt.RTMessageSet + org.eclipse.papyrus.uml.diagram.clazz.Interface_2004 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.RTMessageSet + org.eclipse.papyrus.uml.diagram.clazz.Interface_3023 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.RTMessageSet + org.eclipse.papyrus.uml.diagram.clazz.Interface_3036 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.RTMessageSet + org.eclipse.papyrus.uml.diagram.clazz.Interface_3037 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.RTMessageSet + org.eclipse.papyrus.uml.diagram.clazz.Interface_3038 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageIn + org.eclipse.papyrus.uml.diagram.clazz.Operation_3003 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageIn + org.eclipse.papyrus.uml.diagram.clazz.Operation_3007 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageIn + org.eclipse.papyrus.uml.diagram.clazz.Operation_3013 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageIn + org.eclipse.papyrus.uml.diagram.clazz.Operation_3019 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageIn + org.eclipse.papyrus.uml.diagram.clazz.Operation_3042 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageInOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3003 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageInOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3007 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageInOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3013 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageInOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3019 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageInOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3042 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3003 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3007 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3013 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3019 + + UMLRealTime::RTMessageSet + + + + + org.eclipse.papyrus.umlrt.ProtocolMessageOut + org.eclipse.papyrus.uml.diagram.clazz.Operation_3042 + + UMLRealTime::RTMessageSet + + + \ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/plugin.xml b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/plugin.xml index 0cbe3e07df6..76dfd6bea5d 100644 --- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/plugin.xml +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/plugin.xml @@ -54,16 +54,16 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml b/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml index 3293775418b..6b5967ed2f4 100644 --- a/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml +++ b/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml @@ -225,7 +225,7 @@ http://www.eclipse.org/legal/epl-v10.html unpack="false"/> + + + + diff --git a/features/papyrus-main-features/org.eclipse.papyrus.infra.feature/feature.xml b/features/papyrus-main-features/org.eclipse.papyrus.infra.feature/feature.xml index 6ce8d08a1ee..4efee20e7c3 100644 --- a/features/papyrus-main-features/org.eclipse.papyrus.infra.feature/feature.xml +++ b/features/papyrus-main-features/org.eclipse.papyrus.infra.feature/feature.xml @@ -41,17 +41,13 @@ http://www.eclipse.org/legal/epl-v10.html - - - - - + - + - - - + + + diff --git a/features/papyrus-main-features/org.eclipse.papyrus.infra.ui.feature/feature.xml b/features/papyrus-main-features/org.eclipse.papyrus.infra.ui.feature/feature.xml index d809562187d..d71c88771f9 100644 --- a/features/papyrus-main-features/org.eclipse.papyrus.infra.ui.feature/feature.xml +++ b/features/papyrus-main-features/org.eclipse.papyrus.infra.ui.feature/feature.xml @@ -23,7 +23,7 @@ http://www.eclipse.org/legal/epl-v10.html - + diff --git a/features/papyrus-main-features/org.eclipse.papyrus.uml.assistants.feature/feature.xml b/features/papyrus-main-features/org.eclipse.papyrus.uml.assistants.feature/feature.xml index 18d9aa2f92e..cae7df46d7f 100644 --- a/features/papyrus-main-features/org.eclipse.papyrus.uml.assistants.feature/feature.xml +++ b/features/papyrus-main-features/org.eclipse.papyrus.uml.assistants.feature/feature.xml @@ -17,8 +17,8 @@ http://www.eclipse.org/legal/epl-v10.html - + - + \ No newline at end of file diff --git a/features/papyrus-main-features/org.eclipse.papyrus.uml.feature/feature.xml b/features/papyrus-main-features/org.eclipse.papyrus.uml.feature/feature.xml index 0e584197575..6b2b498b058 100644 --- a/features/papyrus-main-features/org.eclipse.papyrus.uml.feature/feature.xml +++ b/features/papyrus-main-features/org.eclipse.papyrus.uml.feature/feature.xml @@ -55,6 +55,6 @@ http://www.eclipse.org/legal/epl-v10.html - + \ No newline at end of file diff --git a/features/papyrus-tests-features/org.eclipse.papyrus.tests.infra.feature/feature.xml b/features/papyrus-tests-features/org.eclipse.papyrus.tests.infra.feature/feature.xml index caf65622753..6fadcb604f4 100644 --- a/features/papyrus-tests-features/org.eclipse.papyrus.tests.infra.feature/feature.xml +++ b/features/papyrus-tests-features/org.eclipse.papyrus.tests.infra.feature/feature.xml @@ -18,9 +18,9 @@ http://www.eclipse.org/legal/epl-v10.html - + - + diff --git a/features/papyrus-tests-features/org.eclipse.papyrus.tests.uml.assistants.feature/feature.xml b/features/papyrus-tests-features/org.eclipse.papyrus.tests.uml.assistants.feature/feature.xml index e48c0d0b29c..48c7fca1c86 100644 --- a/features/papyrus-tests-features/org.eclipse.papyrus.tests.uml.assistants.feature/feature.xml +++ b/features/papyrus-tests-features/org.eclipse.papyrus.tests.uml.assistants.feature/feature.xml @@ -51,6 +51,6 @@ Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in t - + \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/META-INF/MANIFEST.MF index ff8ae8721fa..bc0d0de5aa9 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/META-INF/MANIFEST.MF +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/META-INF/MANIFEST.MF @@ -3,7 +3,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.uml2.uml;bundle-version="5.0.0", org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;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", com.google.guava;bundle-version="11.0.0", @@ -15,7 +15,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.ui.ide;bundle-version="3.10.100", org.eclipse.papyrus.infra.gmfdiag.assistant;bundle-version="1.2.0", org.eclipse.papyrus.uml.profile.assistants.generator;bundle-version="1.2.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator;bundle-version="1.2.0", org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", org.eclipse.gmf.codegen;bundle-version="2.11.0" diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypeToAssistantRule.xtend b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypeToAssistantRule.xtend index d9124801efd..268b2176800 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypeToAssistantRule.xtend +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypeToAssistantRule.xtend @@ -14,12 +14,12 @@ package org.eclipse.papyrus.dev.assistants.codegen.generator import javax.inject.Inject -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration import org.eclipse.papyrus.infra.filters.Filter import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantFactory import org.eclipse.papyrus.uml.profile.assistants.generator.FiltersUtil -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UMLElementTypes +import org.eclipse.papyrus.uml.profile.types.generator.UMLElementTypes /** * Element Type to Assistant transformation rule. diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypesToAssistantsGenerator.java b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypesToAssistantsGenerator.java index 84e8b3bbde5..71c6a104385 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypesToAssistantsGenerator.java +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ElementTypesToAssistantsGenerator.java @@ -13,10 +13,10 @@ package org.eclipse.papyrus.dev.assistants.codegen.generator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.AbstractGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.uml.profile.types.generator.AbstractGenerator; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; import com.google.inject.Inject; diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GMFGenToAssistantsGenerator.java b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GMFGenToAssistantsGenerator.java index dc39ffd8019..588d759be45 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GMFGenToAssistantsGenerator.java +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GMFGenToAssistantsGenerator.java @@ -15,8 +15,8 @@ package org.eclipse.papyrus.dev.assistants.codegen.generator; import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator; import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.AbstractGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; +import org.eclipse.papyrus.uml.profile.types.generator.AbstractGenerator; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; import com.google.inject.Inject; diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GeneratorModule.java b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GeneratorModule.java index 2ea20dcdd64..581c9db6fd8 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GeneratorModule.java +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/GeneratorModule.java @@ -14,10 +14,10 @@ package org.eclipse.papyrus.dev.assistants.codegen.generator; import org.eclipse.emf.ecore.EClass; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; import org.eclipse.papyrus.uml.profile.assistants.generator.ModelingAssistantProviderRule; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.InputModel; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; +import org.eclipse.papyrus.uml.profile.types.generator.InputModel; /** * The Guice injector module for the Element Types to Modeling Assistants transformation. @@ -44,7 +44,7 @@ public class GeneratorModule extends org.eclipse.papyrus.uml.profile.assistants. @Override protected void bindInputType() { - bind(EClass.class).annotatedWith(InputModel.class).toInstance(ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); + bind(EClass.class).annotatedWith(InputModel.class).toInstance(ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); } @Override diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ModelingAssistantProviderRule.xtend b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ModelingAssistantProviderRule.xtend index bbe49c3b7cc..71d49e0dc6f 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ModelingAssistantProviderRule.xtend +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/generator/ModelingAssistantProviderRule.xtend @@ -16,8 +16,8 @@ import javax.inject.Inject import javax.inject.Singleton import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantFactory import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UMLElementTypes -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration +import org.eclipse.papyrus.uml.profile.types.generator.UMLElementTypes +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator /** diff --git a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/internal/handlers/GenerateModelingAssistantsFromElementTypesHandler.java b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/internal/handlers/GenerateModelingAssistantsFromElementTypesHandler.java index 7b83a220c83..e21fe366766 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/internal/handlers/GenerateModelingAssistantsFromElementTypesHandler.java +++ b/plugins/developer/org.eclipse.papyrus.dev.assistants.codegen/src/org/eclipse/papyrus/dev/assistants/codegen/internal/handlers/GenerateModelingAssistantsFromElementTypesHandler.java @@ -26,10 +26,10 @@ import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.papyrus.dev.assistants.codegen.generator.ElementTypesToAssistantsGenerator; import org.eclipse.papyrus.infra.core.utils.AdapterUtils; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; import org.eclipse.papyrus.infra.emf.utils.EMFHelper; import org.eclipse.papyrus.infra.gmfdiag.assistant.util.AssistantResource; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; import org.eclipse.ui.handlers.HandlerUtil; import org.eclipse.ui.statushandlers.StatusManager; @@ -52,7 +52,7 @@ public class GenerateModelingAssistantsFromElementTypesHandler extends AbstractH final ResourceSet rset = new ResourceSetImpl(); try { Resource resource = rset.getResource(URI.createPlatformResourceURI(file.getFullPath().toString(), true), true); - Object input = EcoreUtil.getObjectByType(resource.getContents(), ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); + Object input = EcoreUtil.getObjectByType(resource.getContents(), ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); if (input instanceof ElementTypeSetConfiguration) { ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) input; diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/.classpath b/plugins/developer/org.eclipse.papyrus.dev.types/.classpath new file mode 100644 index 00000000000..7bcdff09eb7 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/.project b/plugins/developer/org.eclipse.papyrus.dev.types/.project new file mode 100644 index 00000000000..0dee8f27fe2 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/.project @@ -0,0 +1,34 @@ + + + org.eclipse.papyrus.dev.types + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.core.prefs b/plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..9ca8e68231b --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.ui.prefs b/plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..3a5c8f951a2 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF @@ -0,0 +1,27 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.uml2.uml;bundle-version="5.0.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", + org.eclipse.emf.codegen.ecore;bundle-version="2.10.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", + org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", + org.eclipse.papyrus.infra.core;bundle-version="1.2.0", + org.eclipse.gmf.codegen;bundle-version="2.11.0", + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + com.google.guava;bundle-version="11.0.0", + org.eclipse.xtext.xbase.lib, + org.eclipse.xtend.lib, + org.eclipse.xtend.lib.macro, + org.eclipse.ui.workbench, + org.eclipse.ui.ide;bundle-version="3.10.100", + org.eclipse.core.filesystem;bundle-version="1.6.0" +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.dev.types.Activator +Bundle-SymbolicName: org.eclipse.papyrus.dev.types;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/about.html b/plugins/developer/org.eclipse.papyrus.dev.types/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/build.properties b/plugins/developer/org.eclipse.papyrus.dev.types/build.properties new file mode 100644 index 00000000000..5f460d66db9 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/build.properties @@ -0,0 +1,22 @@ +# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation +# Christian W. Damus - bug 451230 +# + +source.. = src/,\ + xtend-gen/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + icons/,\ + plugin.properties,\ + about.html +src.includes = about.html diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/icons/sample.gif b/plugins/developer/org.eclipse.papyrus.dev.types/icons/sample.gif new file mode 100644 index 00000000000..34fb3c9d8cb Binary files /dev/null and b/plugins/developer/org.eclipse.papyrus.dev.types/icons/sample.gif differ diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/plugin.properties b/plugins/developer/org.eclipse.papyrus.dev.types/plugin.properties new file mode 100644 index 00000000000..2cd3688a3b7 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/plugin.properties @@ -0,0 +1,13 @@ +############################################################################### +# 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: +# CEA LIST - initial API and implementation +############################################################################### +pluginName=Papyrus TypesConfigurations framework for developers plugin +providerName=Eclipse Modeling Project + diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/plugin.xml b/plugins/developer/org.eclipse.papyrus.dev.types/plugin.xml new file mode 100644 index 00000000000..a591e0bb35c --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/plugin.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/pom.xml b/plugins/developer/org.eclipse.papyrus.dev.types/pom.xml new file mode 100644 index 00000000000..5a5bc064846 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + org.eclipse.papyrus.developer + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.dev.types + org.eclipse.papyrus + 1.2.0-SNAPSHOT + eclipse-plugin + + + + + org.apache.maven.plugins + maven-clean-plugin + + + + xtend-gen + + **/.gitignore + + + + + + + + org.eclipse.xtend + xtend-maven-plugin + + + + compile + + + xtend-gen + + + + + + + diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/Activator.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/Activator.java new file mode 100644 index 00000000000..be4d7b01a47 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/Activator.java @@ -0,0 +1,82 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types; + +import org.eclipse.jface.resource.ImageDescriptor; +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.dev.types"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** Logging helper */ + public static LogHelper log; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) + */ + 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) + */ + public void stop(BundleContext context) throws Exception { + log = null; + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + + /** + * Returns an image descriptor for the image file at the given + * plug-in relative path + * + * @param path + * the path + * @return the image descriptor + */ + public static ImageDescriptor getImageDescriptor(String path) { + return imageDescriptorFromPlugin(PLUGIN_ID, path); + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/generator/ElementTypeRegistryGenerator.xtend b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/generator/ElementTypeRegistryGenerator.xtend new file mode 100644 index 00000000000..8aa8eda55c6 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/generator/ElementTypeRegistryGenerator.xtend @@ -0,0 +1,61 @@ +package org.eclipse.papyrus.dev.types.generator + +import org.eclipse.emf.ecore.resource.Resource +import org.eclipse.emf.common.util.TreeIterator +import org.eclipse.emf.ecore.EObject +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration + +class ElementTypeRegistryGenerator { + + static def Iterable allContentsIterable(Resource resource) { + var TreeIterator _allContents = resource.getAllContents(); + return IteratorExtensions.toIterable(_allContents); + } + + static def String camelToUnderScore(String in) { + var String regex = "([a-z])([A-Z])"; + var String replacement = "$1_$2"; + return in.replaceAll(regex, replacement); + } + + static def String safeName(String in) { + var result = camelToUnderScore(in) + result = result.replaceAll("[^A-Za-z0-9]", "_") + result = result.replaceAll("_{2,}", "_") + result = result.toUpperCase; + result = result.replaceAll("UML_",""); + return result; + } + + + + + static def generateRegistry(Resource it,String outputType) ''' + /***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + import org.eclipse.gmf.runtime.emf.type.core.AbstractElementTypeEnumerator; + import org.eclipse.gmf.runtime.emf.type.core.IHintedType; + + public class �outputType� extends AbstractElementTypeEnumerator { + + /** Constant for UML nature */ + public static final String UML_NATURE = "UML_Nature"; + + �FOR elementTypeConfiguration : allContentsIterable(it).filter(typeof(ElementTypeConfiguration))� + public static final IHintedType �safeName(elementTypeConfiguration.name).toUpperCase� = (IHintedType)getElementType("�elementTypeConfiguration.identifier�"); //$NON-NLS-1$ + + �ENDFOR� + + } + ''' +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/GenerateElementTypesRegistry.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/GenerateElementTypesRegistry.java new file mode 100644 index 00000000000..d355447296d --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/GenerateElementTypesRegistry.java @@ -0,0 +1,105 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.handlers; + +import java.io.ByteArrayInputStream; +import java.io.InputStream; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IFolder; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.IWorkspace; +import org.eclipse.core.resources.IWorkspaceRoot; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.emf.common.util.URI; +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.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.papyrus.dev.types.generator.ElementTypeRegistryGenerator; +import org.eclipse.swt.widgets.Display; +import org.eclipse.ui.dialogs.ContainerSelectionDialog; +import org.eclipse.ui.handlers.HandlerUtil; + +/** + * Our sample handler extends AbstractHandler, an IHandler base class. + * + * @see org.eclipse.core.commands.IHandler + * @see org.eclipse.core.commands.AbstractHandler + */ +public class GenerateElementTypesRegistry extends AbstractHandler { + + + public GenerateElementTypesRegistry() { + } + + public Object execute(ExecutionEvent event) throws ExecutionException { + ResourceSet resourceSet = new ResourceSetImpl(); + ISelection currentSelection = HandlerUtil.getCurrentSelection(event); + if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { + return null; + } + + final IStructuredSelection selection = (IStructuredSelection) currentSelection; + Object selectedElement = selection.getFirstElement(); + + if (selectedElement instanceof IFile) { + + String selectedFilePath = ((IFile) selectedElement).getFullPath().toString(); + String outputType = ((IFile) selectedElement).getFullPath().removeFileExtension().lastSegment(); + String outputFileName = outputType + ".java"; + + ContainerSelectionDialog dialog = new ContainerSelectionDialog(Display.getCurrent().getActiveShell(), null, true, "Select a folder:"); + dialog.setTitle("Select output folder"); + dialog.open(); + if (dialog.getResult() != null && dialog.getResult().length > 0 && dialog.getResult()[0] instanceof IPath) { + + IWorkspace workspace = ResourcesPlugin.getWorkspace(); + IWorkspaceRoot root = workspace.getRoot(); + IResource container = root.findMember((IPath) dialog.getResult()[0]); + + if (container instanceof IFolder) { + + Resource inputResource = resourceSet.getResource(URI.createURI(selectedFilePath), true); + CharSequence registryText = ElementTypeRegistryGenerator.generateRegistry(inputResource, outputType); + + + IFile outputFile = ((IFolder) container).getFile(outputFileName); + if (!outputFile.exists()) { + + InputStream source = new ByteArrayInputStream(registryText.toString().getBytes()); + try { + outputFile.create(source, IResource.NONE, null); + } catch (CoreException e) { + e.printStackTrace(); + } + } else { + MessageDialog.openWarning(Display.getCurrent().getActiveShell(), "Registry already exists", "No file generated: the registry file already exists."); + } + } else { + MessageDialog.openWarning(Display.getCurrent().getActiveShell(), "Container selection", "Selection must be a folder"); + } + } + + + } + return null; + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/MigrateTypesConfigurations.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/MigrateTypesConfigurations.java new file mode 100644 index 00000000000..0d39894b1bd --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/MigrateTypesConfigurations.java @@ -0,0 +1,355 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.handlers; + +import java.io.File; +import java.io.IOException; +import java.net.URI; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.transform.OutputKeys; +import javax.xml.transform.Result; +import javax.xml.transform.Source; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerConfigurationException; +import javax.xml.transform.TransformerException; +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.TransformerFactoryConfigurationError; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.filesystem.EFS; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.ui.handlers.HandlerUtil; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.xml.sax.SAXException; + +public class MigrateTypesConfigurations extends AbstractHandler { + final String FILE_EXTENSION = "elementtypesconfigurations"; + + final String ELEMENTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:elementtypesconfigurations"; + final String ELEMENTTYPECONFIGURATION_NAMESPACE_OLD = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.0"; + final String ELEMENTTYPECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.1"; + + final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE = "applystereotypeadviceconfiguration"; + final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACENEW = "applystereotypeadvice"; + final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE; + final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACENEW; + final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/uml/types/applystereotypeadvice/1.1"; + + final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE = "invariantstereotyperuleconfiguration"; + final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACENEW = "invariantstereotyperule"; + final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE; + final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACENEW; + final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/uml/types/invariantstereotyperule/1.1"; + + final String SETTYPEADVICECONFIGURATION_NAMESPACE = "settypeadviceconfiguration"; + final String SETTYPEADVICECONFIGURATION_NAMESPACENEW = "settypeadvice"; + final String SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + SETTYPEADVICECONFIGURATION_NAMESPACE; + final String SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + SETTYPEADVICECONFIGURATION_NAMESPACENEW; + final String SETTYPEADVICECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/uml/types/settypeadvice/1.1"; + + final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE = "stereotypeapplicationmatcherconfiguration"; + final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACENEW = "stereotypematcher"; + final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE; + final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACENEW; + final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/uml/types/stereotypematcher/1.1"; + + final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE = "invariantcontainerruleconfiguration"; + final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACENEW = "invariantcontainerrule"; + final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE; + final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + INVARIANTCONTAINERRULECONFIGURATION_NAMESPACENEW; + final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/emf/types/invariantcontainerrule/1.1"; + + final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE = "runtimevalueseditionadviceconfiguration"; + final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACENEW = "runtimevaluesadvice"; + final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE; + final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACENEW; + final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/emf/types/runtimevaluesadvice/1.1"; + + final String SETVALUESADVICECONFIGURATION_NAMESPACE = "setvaluesadviceconfiguration"; + final String SETVALUESADVICECONFIGURATION_NAMESPACENEW = "setvaluesadvice"; + final String SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + SETVALUESADVICECONFIGURATION_NAMESPACE; + final String SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + SETVALUESADVICECONFIGURATION_NAMESPACENEW; + final String SETVALUESADVICECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/emf/types/setvaluesadvice/1.1"; + + final String INVARIANTTYPECONFIGURATION_NAMESPACE = "invarianttypeconfiguration"; + final String INVARIANTTYPECONFIGURATION_NAMESPACENEW = "rulebased"; + final String INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:" + INVARIANTTYPECONFIGURATION_NAMESPACE; + final String INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW = "xmlns:" + INVARIANTTYPECONFIGURATION_NAMESPACENEW; + final String INVARIANTTYPECONFIGURATION_NAMESPACE_NEW_URL = "http://www.eclipse.org/papyrus/infra/types/rulebased/1.1"; + + final String INVARIANTTYPECONFIGURATION = "InvariantTypeConfiguration"; + final String INVARIANTTYPECONFIGURATION_NEW = "RuleBasedTypeConfiguration"; + + final String RUNTIMEVALUESEDITIONADVICECONFIGURATION = "RuntimeValuesEditionAdviceConfiguration"; + final String RUNTIMEVALUESADVICECONFIGURATION = "RuntimeValuesAdviceConfiguration"; + + final String INHERITANCE_ATTRIBUTE = "inheritance"; + final String TYPE_ATTRIBUTE = "xsi:type"; + final String EDITHELPERADVICECONFIGURATION_TAG = "editHelperAdviceConfiguration"; + final String MATCHERCONFIGURATION_TAG = "matcherConfiguration"; + final String INVARIANTRULECONFIGURATION_TAG = "invariantRuleConfiguration"; + final String RULECONFIGURATION_TAG = "ruleConfiguration"; + final String NAME_ATTRIBUTE = "name"; + final String IDENTIFIER_ATTRIBUTE = "identifier"; + final String EDITHELPERADVICECLASSNAME_ATTRIBUTE = "editHelperAdviceClassName"; + final String ADVICEBINDINGSCONFIGURATIONS_TAG = "adviceBindingsConfigurations"; + final String MATCHER_TYPE = "elementtypesconfigurations:MatcherConfiguration"; + final String ADVICEBINDINGCONFIGURATION_TYPE = "elementtypesconfigurations:AdviceBindingConfiguration"; + final String EDITHELPERADVICECONFIGURATION_TYPE = "elementtypesconfigurations:EditHelperAdviceConfiguration"; + final String MATCHERCLASSNAME_ATTRIBUTE = "matcherClassName"; + + public Object execute(ExecutionEvent event) throws ExecutionException { + + + + + Map mapMigration = new HashMap<>(); + + mapMigration.put(APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE, APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACENEW); + mapMigration.put(INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE, INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACENEW); + mapMigration.put(SETTYPEADVICECONFIGURATION_NAMESPACE, SETTYPEADVICECONFIGURATION_NAMESPACENEW); + mapMigration.put(STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE, STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACENEW); + mapMigration.put(INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE, INVARIANTCONTAINERRULECONFIGURATION_NAMESPACENEW); + mapMigration.put(RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE, RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACENEW); + mapMigration.put(SETVALUESADVICECONFIGURATION_NAMESPACE, SETVALUESADVICECONFIGURATION_NAMESPACENEW); + mapMigration.put(INVARIANTTYPECONFIGURATION_NAMESPACE, INVARIANTTYPECONFIGURATION_NAMESPACENEW); + mapMigration.put(INVARIANTTYPECONFIGURATION, INVARIANTTYPECONFIGURATION_NEW); + mapMigration.put(RUNTIMEVALUESEDITIONADVICECONFIGURATION, RUNTIMEVALUESADVICECONFIGURATION); + + + ISelection currentSelection = HandlerUtil.getCurrentSelection(event); + if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { + return null; + } + + final IStructuredSelection selection = (IStructuredSelection) currentSelection; + + Iterator it = selection.iterator(); + + while (it.hasNext()) { + Object selectedElement = (Object) it.next(); + + if (selectedElement instanceof IFile) { + if (FILE_EXTENSION.equals(((IFile) selectedElement).getFileExtension())) { + IFile selectedFile = ((IFile) selectedElement); + URI uri = selectedFile.getLocationURI(); + + if (selectedFile.isLinked()) { + uri = selectedFile.getRawLocationURI(); + } + + try { + File file = EFS.getStore(uri).toLocalFile(0, new NullProgressMonitor()); + DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); + DocumentBuilder builder = factory.newDocumentBuilder(); + Document doc = builder.parse(file); + Element root = doc.getDocumentElement(); + + + + // Update namespaces + root.setAttribute(ELEMENTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE, ELEMENTTYPECONFIGURATION_NAMESPACE_NEW); + + if (!root.getAttribute(APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, SETTYPEADVICECONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, SETVALUESADVICECONFIGURATION_NAMESPACE_NEW_URL); + } + + if (!root.getAttribute(INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { + root.removeAttribute(INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE); + root.setAttribute(INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE_NEW, INVARIANTTYPECONFIGURATION_NAMESPACE_NEW_URL); + } + + NodeList editHelperAdviceConfigurations = root.getElementsByTagName(EDITHELPERADVICECONFIGURATION_TAG); + + + for (int i = 0; i < editHelperAdviceConfigurations.getLength(); i++) { + Element editHelperAdvice = (Element) editHelperAdviceConfigurations.item(i); + + Node type = editHelperAdvice.getAttributes().getNamedItem(TYPE_ATTRIBUTE); + + if (type == null) { + editHelperAdvice.setAttribute(TYPE_ATTRIBUTE, EDITHELPERADVICECONFIGURATION_TYPE); + } else if (!type.getNodeValue().equals(EDITHELPERADVICECONFIGURATION_TYPE)) { + editHelperAdvice.removeAttribute(EDITHELPERADVICECLASSNAME_ATTRIBUTE); + } + + editHelperAdvice.removeAttribute(NAME_ATTRIBUTE); + editHelperAdvice.removeAttribute(IDENTIFIER_ATTRIBUTE); + editHelperAdvice.removeAttribute(INHERITANCE_ATTRIBUTE); + } + + NodeList adviceBindingsConfigurations = root.getElementsByTagName(ADVICEBINDINGSCONFIGURATIONS_TAG); + + for (int i = 0; i < adviceBindingsConfigurations.getLength(); i++) { + Element adviceBinding = (Element) adviceBindingsConfigurations.item(i); + + Node type = adviceBinding.getAttributes().getNamedItem(TYPE_ATTRIBUTE); + + if (type == null) { + adviceBinding.setAttribute(TYPE_ATTRIBUTE, ADVICEBINDINGCONFIGURATION_TYPE); + } else if (!type.getNodeValue().equals(ADVICEBINDINGCONFIGURATION_TYPE)) { + adviceBinding.removeAttribute(EDITHELPERADVICECLASSNAME_ATTRIBUTE); + } + + adviceBinding.removeAttribute(NAME_ATTRIBUTE); + } + + NodeList matcherConfigurations = root.getElementsByTagName(MATCHERCONFIGURATION_TAG); + + for (int i = 0; i < matcherConfigurations.getLength(); i++) { + Element matcher = (Element) matcherConfigurations.item(i); + + Node type = matcher.getAttributes().getNamedItem(TYPE_ATTRIBUTE); + + if (type == null) { + matcher.setAttribute(TYPE_ATTRIBUTE, MATCHER_TYPE); + } else if (!type.getNodeValue().equals(MATCHER_TYPE)) { + matcher.removeAttribute(MATCHERCLASSNAME_ATTRIBUTE); + } + } + + NodeList invariantRuleConfigurations = root.getElementsByTagName(INVARIANTRULECONFIGURATION_TAG); + + + for (int i = 0; i < invariantRuleConfigurations.getLength(); i++) { + Element invariantRule = (Element) invariantRuleConfigurations.item(i); + + doc.renameNode(invariantRule, null, RULECONFIGURATION_TAG); + + + } + + migrate(root.getChildNodes(), mapMigration); + + Transformer transformer = TransformerFactory.newInstance().newTransformer(); + transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); + Result output = new StreamResult(file); + Source input = new DOMSource(doc); + + transformer.transform(input, output); + + + } catch (ParserConfigurationException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (SAXException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (CoreException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (TransformerConfigurationException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (TransformerFactoryConfigurationError e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (TransformerException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + } + } + + } + return null; + } + + + + void migrate(NodeList nodeList, Map mapMigration) { + for (int i = 0; i < nodeList.getLength(); i++) { + Node childNode = nodeList.item(i); + + NamedNodeMap attributes = childNode.getAttributes(); + if (attributes != null) { + for (int j = 0; j < attributes.getLength(); j++) { + Node childAttr = attributes.item(j); + + if (childAttr.getNodeName().equals(TYPE_ATTRIBUTE)) { + + for (String old : mapMigration.keySet()) { + if (childAttr.getNodeValue().contains(old)) { + String newNS = mapMigration.get(old); + String newValue = childAttr.getNodeValue().replace(old, newNS); + childAttr.setNodeValue(newValue); + } + } + + } + } + } + + NodeList children = childNode.getChildNodes(); + if (children != null) { + migrate(children, mapMigration); + } + } + } + + + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesContentProvider.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesContentProvider.java new file mode 100644 index 00000000000..2a7be16c7dd --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesContentProvider.java @@ -0,0 +1,85 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.providers; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.MetamodelType; +import org.eclipse.gmf.runtime.emf.type.core.SpecializationType; +import org.eclipse.jface.viewers.ITreeContentProvider; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.papyrus.dev.types.utils.IElementTypeComparator; + +public class ElementTypesContentProvider implements ITreeContentProvider { + + private Map> elementTypesHierarchy = new HashMap>(); + + @Override + public void dispose() { + } + + @Override + public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { + if (newInput instanceof Object[]) { + elementTypesHierarchy.clear(); + for (Object elementType : ((Object[]) newInput)) { + if (elementType instanceof MetamodelType) { + if (!elementTypesHierarchy.containsKey(elementType)) { + elementTypesHierarchy.put((MetamodelType) elementType, new ArrayList()); + } + } else if (elementType instanceof SpecializationType) { + for (IElementType superType : ((SpecializationType) elementType).getSpecializedTypes()) { + if (!elementTypesHierarchy.containsKey(superType)) { + elementTypesHierarchy.put(superType, new ArrayList()); + } + elementTypesHierarchy.get(superType).add((SpecializationType) elementType); + } + } + } + } + } + + @Override + public Object[] getElements(Object inputElement) { + inputChanged(null, null, inputElement); + ArrayList result = new ArrayList(); + for (IElementType iElementType : elementTypesHierarchy.keySet()) { + if (iElementType instanceof MetamodelType) { + result.add(iElementType); + } + } + Collections.sort(result, new IElementTypeComparator()); + + return result.toArray(); + } + + @Override + public Object[] getChildren(Object parentElement) { + return elementTypesHierarchy.containsKey(parentElement) ? elementTypesHierarchy.get(parentElement).toArray() : Collections.emptyList().toArray(); + } + + @Override + public Object getParent(Object element) { + return null; + } + + @Override + public boolean hasChildren(Object element) { + return getChildren(element).length == 0 ? false : true; + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsContentProvider.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsContentProvider.java new file mode 100644 index 00000000000..2b919398f82 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsContentProvider.java @@ -0,0 +1,153 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.providers; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.ecore.EReference; +import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.gmf.runtime.emf.type.core.SpecializationType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.jface.viewers.ITreeContentProvider; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.papyrus.dev.types.utils.AdvicesComparator; + +public class ElementTypesDetailsContentProvider implements ITreeContentProvider { + + /** + * @see org.eclipse.jface.viewers.IContentProvider#dispose() + * + */ + @Override + public void dispose() { + // TODO Auto-generated method stub + + } + + /** + * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) + * + * @param viewer + * @param oldInput + * @param newInput + */ + @Override + public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { + // TODO Auto-generated method stub + + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#getElements(java.lang.Object) + * + * @param inputElement + * @return + */ + @Override + public Object[] getElements(Object inputElement) { + ArrayList result = new ArrayList(); + if (inputElement instanceof IElementType) { + if (inputElement instanceof IHintedType) { + result.add("Semantic Hint: " + ((IHintedType) inputElement).getSemanticHint()); + } else { + result.add("Not Hinted"); + } + if (inputElement instanceof SpecializationType) { + for (String id : ((SpecializationType) inputElement).getSpecializedTypeIds()) { + result.add("SpecializedType Id: " + id); + } + + + if (((SpecializationType) inputElement).getEditHelperAdvice() != null) { + result.add("EditHelperAdvice: " + ((SpecializationType) inputElement).getEditHelperAdvice().getClass().getName()); + } else { + result.add("EditHelperAdvice: None"); + } + + if (((SpecializationType) inputElement).getEContainerDescriptor() != null) { + String eReferences = ""; + for (EReference eReference : ((SpecializationType) inputElement).getEContainerDescriptor().getContainmentFeatures()) { + eReferences += EMFCoreUtil.getQualifiedName(eReference, true) + " "; + } + result.add("EContainerDescriptor: " + eReferences); + } else { + result.add("EContainerDescriptor: None"); + } + } + + if (((IElementType) inputElement).getEditHelper() != null) { + result.add("EditHelper: " + ((IElementType) inputElement).getEditHelper().getClass().getName()); + } else { + result.add("EditHelper: None"); + } + + if (((IElementType) inputElement).getEClass() != null) { + result.add("Eclass: " + EMFCoreUtil.getQualifiedName(((IElementType) inputElement).getEClass(), true)); + } else { + result.add("Eclass: None"); + } + + result.add("Display Name: " + ((IElementType) inputElement).getDisplayName()); + IEditHelperAdvice[] advices = ElementTypeRegistry.getInstance().getEditHelperAdvice(((IElementType) inputElement)); + result.add(Arrays.asList(advices)); + } + return result.toArray(); + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) + * + * @param parentElement + * @return + */ + @Override + public Object[] getChildren(Object parentElement) { + if (parentElement instanceof List) { + Collections.sort((List) parentElement, new AdvicesComparator()); + return ((List) parentElement).toArray(); + } + + return Collections.emptyList().toArray(); + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) + * + * @param element + * @return + */ + @Override + public Object getParent(Object element) { + // TODO Auto-generated method stub + return null; + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) + * + * @param element + * @return + */ + @Override + public boolean hasChildren(Object element) { + return getChildren(element).length == 0 ? false : true; + } + + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsLabelProvider.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsLabelProvider.java new file mode 100644 index 00000000000..508b2bce445 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesDetailsLabelProvider.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.providers; + +import java.util.List; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.swt.graphics.Image; + +public class ElementTypesDetailsLabelProvider extends org.eclipse.jface.viewers.LabelProvider { + + @Override + public Image getImage(Object element) { + return null; + } + + @Override + public String getText(Object element) { + String result = ""; + if (element instanceof String) { + result += element; + } else if (element instanceof List) { + result += "Advices: "; + } else if (element instanceof IEditHelperAdvice) { + result += element; + } + return result; + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesLabelProvider.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesLabelProvider.java new file mode 100644 index 00000000000..d058a520729 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/ElementTypesLabelProvider.java @@ -0,0 +1,45 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.providers; + +import java.io.IOException; + +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.widgets.Display; + +public class ElementTypesLabelProvider extends org.eclipse.jface.viewers.LabelProvider { + + @Override + public Image getImage(Object element) { + if (element instanceof IElementType) { + if (((IElementType) element).getIconURL() != null) { + try { + return new Image(Display.getCurrent(), ((IElementType) element).getIconURL().openStream()); + } catch (IOException ex) { + ex.printStackTrace(); + } + } + } + return null; + } + + @Override + public String getText(Object element) { + String result = ""; + if (element instanceof IElementType) { + result += ((IElementType) element).getId(); + } + return result; + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventContentProvider.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventContentProvider.java new file mode 100644 index 00000000000..8968ed35174 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventContentProvider.java @@ -0,0 +1,161 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.dev.types.providers; + +import java.util.AbstractMap; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.Map; + +import org.eclipse.jface.viewers.ITreeContentProvider; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.papyrus.infra.types.core.notification.TypesEventsChain; +import org.eclipse.papyrus.infra.types.core.notification.events.AbstractTypesEvent; + + +public class TypesEventContentProvider implements ITreeContentProvider { + + /** + * @see org.eclipse.jface.viewers.IContentProvider#dispose() + * + */ + @Override + public void dispose() { + // TODO Auto-generated method stub + + } + + /** + * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) + * + * @param viewer + * @param oldInput + * @param newInput + */ + @Override + public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { + // TODO Auto-generated method stub + + } + + /** + * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) + * + * @param inputElement + * @return + */ + @Override + public Object[] getElements(Object inputElement) { + List result = new ArrayList(); + if (inputElement instanceof List) { + List inputSet = (List) inputElement; + for (Object element : inputSet) { + if (element instanceof TypesEventsChain) { + result.add((TypesEventsChain) element); + } + } + } + + Collections.sort(result, new Comparator() { + + @Override + public int compare(TypesEventsChain o1, TypesEventsChain o2) { + if (o1.getTimestamp() > o2.getTimestamp()) { + return -1; + } + return 1; + } + }); + + + return result.toArray(); + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) + * + * @param parentElement + * @return + */ + @Override + public Object[] getChildren(Object parentElement) { + + + List result = new ArrayList(); + if (parentElement instanceof TypesEventsChain) { + TypesEventsChain typesEventsChain = (TypesEventsChain) parentElement; + + List adviceRequestConfigurationEvents = typesEventsChain.getAdviceRequestConfigurationEvents(); + if (!adviceRequestConfigurationEvents.isEmpty()) { + result.add(new AbstractMap.SimpleEntry("AdviceRequestConfigurationEvents", adviceRequestConfigurationEvents)); + } + AbstractTypesEvent editHelperRequestConfigurationEvent = typesEventsChain.getEditHelperRequestConfigurationEvent(); + if (editHelperRequestConfigurationEvent != null) { + result.add(editHelperRequestConfigurationEvent); + } + List adviceApprovalEvents = typesEventsChain.getAdviceApprovalEvents(); + if (!adviceApprovalEvents.isEmpty()) { + result.add(new AbstractMap.SimpleEntry("AdviceApprovalEvents", adviceApprovalEvents)); + } + AbstractTypesEvent editHelperApprovalEvent = typesEventsChain.getEditHelperApprovalEvent(); + if (editHelperApprovalEvent != null) { + result.add(editHelperApprovalEvent); + } + List beforeAdvicesCommandsEvents = typesEventsChain.getBeforeAdvicesCommandsEvents(); + if (!beforeAdvicesCommandsEvents.isEmpty()) { + result.add(new AbstractMap.SimpleEntry("BeforeAdvicesCommandsEvents", beforeAdvicesCommandsEvents)); + } + AbstractTypesEvent editHelperCommandEvent = typesEventsChain.getEditHelperCommandEvent(); + if (editHelperCommandEvent != null) { + result.add(editHelperCommandEvent); + } + List afterAdvicesCommandsEvents = typesEventsChain.getAfterAdvicesCommandsEvents(); + if (!afterAdvicesCommandsEvents.isEmpty()) { + result.add(new AbstractMap.SimpleEntry("AfterAdvicesCommandsEvents", afterAdvicesCommandsEvents)); + } + } else if (parentElement instanceof Map.Entry) { + Object value = ((Map.Entry) parentElement).getValue(); + if (value instanceof Collection) { + result.addAll((Collection) value); + } + } + return result.toArray(); + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) + * + * @param element + * @return + */ + @Override + public Object getParent(Object element) { + return null; + } + + /** + * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) + * + * @param element + * @return + */ + @Override + public boolean hasChildren(Object element) { + return getChildren(element).length == 0 ? false : true; + } + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventLabelProvider.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventLabelProvider.java new file mode 100644 index 00000000000..5fda3e2d887 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/providers/TypesEventLabelProvider.java @@ -0,0 +1,135 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.dev.types.providers; + +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Collection; +import java.util.Map; + +import org.eclipse.jface.viewers.IColorProvider; +import org.eclipse.papyrus.infra.types.core.notification.TypesEventsChain; +import org.eclipse.papyrus.infra.types.core.notification.events.TypesEventKind; +import org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent; +import org.eclipse.swt.graphics.Color; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.graphics.RGB; +import org.eclipse.swt.widgets.Display; + + +public class TypesEventLabelProvider extends org.eclipse.jface.viewers.LabelProvider implements IColorProvider { + + @Override + public Image getImage(Object element) { + + return null; + } + + @Override + public String getText(Object element) { + String result = ""; + Calendar calendar = Calendar.getInstance(); + SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd - hh:mm:ss:SSS"); + if (element instanceof ITypesEvent) { + calendar.setTimeInMillis(((ITypesEvent) element).getTimestamp()); + result += "[" + formater.format(calendar.getTime()) + "] " + ((ITypesEvent) element).getEventName(); + } else if (element instanceof TypesEventsChain) { + calendar.setTimeInMillis(((TypesEventsChain) element).getTimestamp()); + result += "[" + formater.format(calendar.getTime()) + "] " + ((TypesEventsChain) element).getName(); + } else if (element instanceof Map.Entry) { + result += ((Map.Entry) element).getKey().toString(); + } else { + result += element.toString(); + } + return result; + } + + Color yellow = new Color(Display.getCurrent(), new RGB(255, 200, 0)); + Color green = new Color(Display.getCurrent(), new RGB(0, 128, 0)); + Color red = new Color(Display.getCurrent(), new RGB(255, 0, 0)); + Color black = new Color(Display.getCurrent(), new RGB(0, 0, 0)); + Color blue = new Color(Display.getCurrent(), new RGB(0, 0, 255)); + + + /** + * @see org.eclipse.jface.viewers.IColorProvider#getForeground(java.lang.Object) + * + * @param element + * @return + */ + @Override + public Color getForeground(Object element) { + if (element instanceof ITypesEvent) { + if (((ITypesEvent) element).getEventType().equals(TypesEventKind.Disapproved)) { + return red; + } else if (((ITypesEvent) element).getEventType().equals(TypesEventKind.Unexecutable)) { + return red; + } else if (((ITypesEvent) element).getEventType().equals(TypesEventKind.Executable)) { + return green; + } else if (((ITypesEvent) element).getEventType().equals(TypesEventKind.Approved)) { + return green; + } else if (((ITypesEvent) element).getEventType().equals(TypesEventKind.Identity)) { + return yellow; + } else if (((ITypesEvent) element).getEventType().equals(TypesEventKind.RequestConfiguration)) { + return blue; + } + } else if (element instanceof Map.Entry) { + Object value = ((Map.Entry) element).getValue(); + if (value instanceof Collection) { + return checkWorst((Collection) value, true); + } + } else if (element instanceof TypesEventsChain) { + return checkWorst(((TypesEventsChain) element).getAllEvents(), false); + } + return black; + } + + /** + * @param value + */ + private Color checkWorst(Collection value, boolean considerRequestConfiguration) { + Color result = green; + for (Object object : value) { + if (((ITypesEvent) object).getEventType().equals(TypesEventKind.Disapproved)) { + return red; + } else if (((ITypesEvent) object).getEventType().equals(TypesEventKind.Unexecutable)) { + return red; + } else if (((ITypesEvent) object).getEventType().equals(TypesEventKind.Identity)) { + if (result == green) { + result = yellow; + } + } else if (((ITypesEvent) object).getEventType().equals(TypesEventKind.RequestConfiguration)) { + if (considerRequestConfiguration) { + if (result != yellow && result != red) { + result = blue; + } + } + } + } + return result; + } + + /** + * @see org.eclipse.jface.viewers.IColorProvider#getBackground(java.lang.Object) + * + * @param element + * @return + */ + @Override + public Color getBackground(Object element) { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/AdvicesComparator.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/AdvicesComparator.java new file mode 100644 index 00000000000..781b4429dca --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/AdvicesComparator.java @@ -0,0 +1,35 @@ +/***************************************************************************** + * Copyright (c) 2015 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.dev.types.utils; + +import java.util.Comparator; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; + + +public class AdvicesComparator implements Comparator { + + /** + * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) + * + * @param arg0 + * @param arg1 + * @return + */ + @Override + public int compare(IEditHelperAdvice o1, IEditHelperAdvice o2) { + return o1.toString().compareTo(o2.toString()); + } + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/EClassComparator.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/EClassComparator.java new file mode 100644 index 00000000000..43edf19b7f2 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/EClassComparator.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.utils; + +import java.util.Comparator; + +import org.eclipse.emf.ecore.EClass; + +public class EClassComparator implements Comparator { + + @Override + public int compare(EClass o1, EClass o2) { + return o1.getName().compareTo(o2.getName()); + } +} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeConfigurationComparator.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeConfigurationComparator.java new file mode 100644 index 00000000000..6632433a54f --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeConfigurationComparator.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.utils; + +import java.util.Comparator; + +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; + +public class ElementTypeConfigurationComparator implements Comparator { + + @Override + public int compare(ElementTypeConfiguration o1, ElementTypeConfiguration o2) { + return o1.getName().compareTo(o2.getName()); + } +} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeRegistryUtils.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeRegistryUtils.java new file mode 100644 index 00000000000..bd6cd54695b --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/ElementTypeRegistryUtils.java @@ -0,0 +1,45 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.utils; + +import java.lang.reflect.Field; + +import org.eclipse.gmf.runtime.emf.type.core.MetamodelType; +import org.eclipse.papyrus.dev.types.Activator; + + +public class ElementTypeRegistryUtils { + + + static public synchronized Field getNullElementTypeEditHelper() { + + Field declaredField = null; + try { + declaredField = MetamodelType.class.getDeclaredField("editHelper"); + } catch (SecurityException e1) { + Activator.log.error(e1); + return null; + } catch (NoSuchFieldException e1) { + Activator.log.error(e1); + return null; + } + if (declaredField == null) { + Activator.log.error("impossible to find editHelper", null); + return null; + } + declaredField.setAccessible(true); + + return declaredField; + } + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/GenerateElementTypesConfigurationsUtils.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/GenerateElementTypesConfigurationsUtils.java new file mode 100644 index 00000000000..fbc452094b2 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/GenerateElementTypesConfigurationsUtils.java @@ -0,0 +1,112 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.utils; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.ENamedElement; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.uml2.uml.UMLPackage; + +public class GenerateElementTypesConfigurationsUtils { + + + + static public Collection findAmbiguousContainments(EReference eReference, Collection possibleContainmentsEReference) { + HashSet result = new HashSet(); + + for (EReference ownerContainment : eReference.getEContainingClass().getEAllContainments()) { + for (EReference possibleContainement : possibleContainmentsEReference) { + if (eReference != possibleContainement) { + if (ownerContainment.equals(possibleContainement)) { + result.add(possibleContainement); + } + } + } + } + + return result; + } + + static public Collection findPossibleContainmentsEReference(EClass ownedEClass, Collection ownerTypes) { + HashSet result = new HashSet(); + for (EClass candidateOwner : ownerTypes) { + for (EReference eReference : candidateOwner.getEAllContainments()) { + if (isKindOf(ownedEClass, eReference.getEReferenceType())) { + result.add(eReference); + } + } + } + return result; + } + + static public boolean isKindOf(EClass a, EClassifier b) { + if (a.getEAllSuperTypes().contains(b)) { + return true; + } else { + return a.equals(b); + } + } + + static public Collection getAllEClass(EPackage ePackage) { + List eClasses = new ArrayList(); + for (EClassifier eClassifier : ePackage.getEClassifiers()) { + if (eClassifier instanceof EClass) { + eClasses.add((EClass) eClassifier); + } + } + + Collections.sort(eClasses, new EClassComparator()); + + return eClasses; + } + + static public String getIdentifier(EClass eClass) { + return "org.eclipse.papyrus.uml." + eClass.getName(); + } + + static public String getAsName(EReference containmentEReference, EClass container) { + return "_As_" + ((ENamedElement) container.eContainer()).getName().toUpperCase() + "::" + container.getName() + "::" + containmentEReference.getName(); + } + + static public boolean isSpecializedASpecialization(EClass eClass, EReference containmentEReference) { + Collection possibleContainmentsEReference = findPossibleContainmentsEReference(eClass, getAllEClass(UMLPackage.eINSTANCE)); + if (!findAmbiguousContainments(containmentEReference, possibleContainmentsEReference).isEmpty()) { + // The SpecialiazedType is SpecializationType + return true; + } else { + // The SpecialiazedType is MetamodelType + return false; + + } + } + + static public String findSpecializedTypesIDs(EClass eClass, EReference containmentEReference) { + if (isSpecializedASpecialization(eClass, containmentEReference)) { + // The SpecialiazedType is SpecializationType + return GenerateElementTypesConfigurationsUtils.getIdentifier(eClass) + GenerateElementTypesConfigurationsUtils.getAsName(containmentEReference, eClass); + } else { + // The SpecialiazedType is MetamodelType + return getIdentifier(eClass); + } + + + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/IElementTypeComparator.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/IElementTypeComparator.java new file mode 100644 index 00000000000..b557679d875 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/IElementTypeComparator.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.utils; + +import java.util.Comparator; + +import org.eclipse.gmf.runtime.emf.type.core.IElementType; + +public class IElementTypeComparator implements Comparator { + + @Override + public int compare(IElementType o1, IElementType o2) { + return o1.getId().compareTo(o2.getId()); + } +} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/NotifierNullEditHelper.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/NotifierNullEditHelper.java new file mode 100644 index 00000000000..c7297f9d370 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/NotifierNullEditHelper.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.dev.types.utils; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.core.notification.AbstractNotifierEditHelper; + +/** + * Edit helper for the NullElementType that considers before and after + * advice, only. + */ +public class NotifierNullEditHelper + extends AbstractNotifierEditHelper { + + protected ICommand getInsteadCommand(IEditCommandRequest req) { + return null; + } +} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/TypesEventPrinter.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/TypesEventPrinter.java new file mode 100644 index 00000000000..88ef53da10f --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/utils/TypesEventPrinter.java @@ -0,0 +1,138 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.dev.types.utils; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceApprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceDisapprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceRequestEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperApprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperDisapprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperRequestEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ExecutableAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ExecutableEditHelperEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IdentityAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IdentityEditHelperEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.UnexecutableAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.UnexecutableEditHelperEvent; + +public class TypesEventPrinter { + public static Map getEventDetails(ITypesEvent event) { + Map result = new HashMap<>(); + + if (event instanceof AdviceApprovedEvent) { + result.put("Approved Advice", ((AdviceApprovedEvent) event).getAdvice().getClass().getName()); + } else if (event instanceof AdviceDisapprovedEvent) { + result.put("Disapprover Advice", ((AdviceDisapprovedEvent) event).getAdvice().getClass().getName()); + } else if (event instanceof EditHelperApprovedEvent) { + result.put("Approver edithelper", ((EditHelperApprovedEvent) event).getEditHelper().getClass().getName()); + } else if (event instanceof EditHelperDisapprovedEvent) { + result.put("Disapprover edithelper", ((EditHelperDisapprovedEvent) event).getEditHelper().getClass().getName()); + } else if (event instanceof ExecutableAdviceEvent) { + result.put("Advice", ((ExecutableAdviceEvent) event).getAdvice().getClass().getName()); + result.put("Phase ", ((ExecutableAdviceEvent) event).getAdvicePhase().name()); + result.put("Executable command", ((ExecutableAdviceEvent) event).getCommand().getClass().getName()); + } else if (event instanceof ExecutableEditHelperEvent) { + result.put("Executable command from edithelper", ((ExecutableEditHelperEvent) event).getEditHelper().getClass().getName()); + result.put("Executable command", ((ExecutableEditHelperEvent) event).getCommand().getClass().getName()); + } else if (event instanceof IdentityAdviceEvent) { + result.put("Identity Advice", ((IdentityAdviceEvent) event).getAdvice().getClass().getName()); + result.put("Phase ", ((IdentityAdviceEvent) event).getAdvicePhase().name()); + } else if (event instanceof IdentityEditHelperEvent) { + result.put("Identity EditHelper", ((IdentityEditHelperEvent) event).getEditHelper().getClass().getName()); + } else if (event instanceof UnexecutableAdviceEvent) { + result.put("Unexecutable Advice", ((UnexecutableAdviceEvent) event).getAdvice().getClass().getName()); + result.put("Phase ", ((UnexecutableAdviceEvent) event).getAdvicePhase().name()); + result.put("Unexecutable command", ((UnexecutableAdviceEvent) event).getCommand().getClass().getName()); + } else if (event instanceof UnexecutableEditHelperEvent) { + result.put("Unexecutable command from edithelper", ((UnexecutableEditHelperEvent) event).getEditHelper().getClass().getName()); + result.put("Unexecutable command", ((UnexecutableEditHelperEvent) event).getCommand().getClass().getName()); + } else if (event instanceof AdviceRequestEvent) { + result.put("RequestConfiguration Advice", ((AdviceRequestEvent) event).getAdvice().getClass().getName()); + } else if (event instanceof EditHelperRequestEvent) { + result.put("RequestConfiguration EditHelper", ((EditHelperRequestEvent) event).getEditHelper().getClass().getName()); + } + + if (event instanceof IAdviceEvent) { + String adviceNames = ""; + for (IEditHelperAdvice editHelperAdvice : ((IAdviceEvent) event).getAdvices()) { + adviceNames += " -" + editHelperAdvice.getClass().getName() + "\n"; + } + result.put("Among the following advices ", adviceNames); + } + + return result; + } + + public static String printHtmlEvent(Map details) { + + + String html = ""; + for (String key : details.keySet()) { + html += ""; + html += ""; + html += ""; + html += ""; + } + html += "
" + key + "" + details.get(key) + "
"; + + html = html.replaceAll("\\n", "
"); + + return html; + } + + /** + * @param req + * @return + */ + public static String printHtmRequest(IEditCommandRequest req) { + String result = "
    "; + result += "
  • Request: " + req + "
  • "; + result += "
  • Label: " + req.getLabel() + "
  • "; + result += "
  • Kind: " + req.getClass().getName() + "
  • "; + result += "
  • ElementsToEdit: " + req.getElementsToEdit() + "
  • "; + result += "
  • Parameters:
  • "; + + if (!req.getParameters().keySet().isEmpty()) { + result += "
      "; + + for (Object key : req.getParameters().keySet()) { + result += "
    • " + key + " <-> " + req.getParameters().get(key) + "
    • "; + } + result += "
    "; + } + result += "
  • EditHelperContext: " + req.getEditHelperContext() + "
  • "; + + if (req instanceof CreateElementRequest) { + result += "
  • ElementType: " + ((CreateElementRequest) req).getElementType() + "
  • "; + result += "
  • Container: " + ((CreateElementRequest) req).getContainer() + "
  • "; + result += "
  • ContainmentFeature: " + ((CreateElementRequest) req).getContainmentFeature() + "
  • "; + if (req instanceof CreateRelationshipRequest) { + result += "
  • Source: " + ((CreateRelationshipRequest) req).getSource() + "
  • "; + result += "
  • Target: " + ((CreateRelationshipRequest) req).getTarget() + "
  • "; + } + } + result += "
"; + + return result; + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/RegistredElementTypesView.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/RegistredElementTypesView.java new file mode 100644 index 00000000000..37ee95d146c --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/RegistredElementTypesView.java @@ -0,0 +1,127 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.view; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.papyrus.dev.types.providers.ElementTypesContentProvider; +import org.eclipse.papyrus.dev.types.providers.ElementTypesDetailsContentProvider; +import org.eclipse.papyrus.dev.types.providers.ElementTypesDetailsLabelProvider; +import org.eclipse.papyrus.dev.types.providers.ElementTypesLabelProvider; +import org.eclipse.swt.SWT; +import org.eclipse.swt.custom.SashForm; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.dialogs.FilteredTree; +import org.eclipse.ui.dialogs.PatternFilter; +import org.eclipse.ui.part.ViewPart; + +public class RegistredElementTypesView extends ViewPart { + + FilteredTree detailsFilteredTree = null; + SashForm sash = null; + FilteredTree elementTypesFilteredTree = null; + Combo combo = null; + + + @Override + public void createPartControl(Composite parent) { + parent.setLayout(new GridLayout(1, true)); + + combo = new Combo(parent, SWT.NONE); + final List itemsList = new ArrayList<>(); + List contexts = new ArrayList(ClientContextManager.getInstance().getClientContexts()); + + int index = -1; + int i = 0; + for (IClientContext context : contexts) { + itemsList.add(context.getId()); + if (context.getId().equals(ClientContextManager.getDefaultClientContext().getId())) { + index = i; + } + i++; + } + String[] items = new String[itemsList.size()]; + items = itemsList.toArray(items); + combo.setItems(items); + if (index != -1) { + combo.select(index); + } + combo.addSelectionListener(new SelectionListener() { + + @Override + public void widgetSelected(SelectionEvent e) { + int index = combo.getSelectionIndex(); + + String clientContexId = itemsList.get(index); + + if (clientContexId != null) { + IClientContext clientContex = ClientContextManager.getInstance().getClientContext(clientContexId); + if (clientContex != null) { + IElementType[] elementTypes = ElementTypeRegistry.getInstance().getElementTypes(clientContex); + elementTypesFilteredTree.getViewer().setInput(elementTypes); + } + } + + } + + @Override + public void widgetDefaultSelected(SelectionEvent e) { + + + } + }); + + sash = new SashForm(parent, SWT.HORIZONTAL); + sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); + + elementTypesFilteredTree = new FilteredTree(sash, SWT.BORDER, new PatternFilter(), true); + elementTypesFilteredTree.getViewer().setLabelProvider(new ElementTypesLabelProvider()); + elementTypesFilteredTree.getViewer().setContentProvider(new ElementTypesContentProvider()); + detailsFilteredTree = new FilteredTree(sash, SWT.BORDER, new PatternFilter(), true); + detailsFilteredTree.getViewer().setLabelProvider(new ElementTypesDetailsLabelProvider()); + detailsFilteredTree.getViewer().setContentProvider(new ElementTypesDetailsContentProvider()); + + if (index != -1) { + combo.select(index); + } + + elementTypesFilteredTree.getViewer().addSelectionChangedListener(new ISelectionChangedListener() { + + @Override + public void selectionChanged(SelectionChangedEvent event) { + if (event.getSelection() instanceof IStructuredSelection) { + detailsFilteredTree.getViewer().setInput(((IStructuredSelection) event.getSelection()).getFirstElement()); + } + + } + }); + } + + @Override + public void setFocus() { + + } +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/TypesConfigurationsListenerView.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/TypesConfigurationsListenerView.java new file mode 100644 index 00000000000..cbbb3ae8ce4 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/view/TypesConfigurationsListenerView.java @@ -0,0 +1,227 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.dev.types.view; + + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.NullElementType; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.papyrus.dev.types.Activator; +import org.eclipse.papyrus.dev.types.providers.TypesEventContentProvider; +import org.eclipse.papyrus.dev.types.providers.TypesEventLabelProvider; +import org.eclipse.papyrus.dev.types.utils.ElementTypeRegistryUtils; +import org.eclipse.papyrus.dev.types.utils.TypesEventPrinter; +import org.eclipse.papyrus.dev.types.utils.NotifierNullEditHelper; +import org.eclipse.papyrus.infra.types.core.notification.TypesEventsChain; +import org.eclipse.papyrus.infra.types.core.notification.TypesListenersRegistry; +import org.eclipse.papyrus.infra.types.core.notification.ITypesEventsChainListener; +import org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent; +import org.eclipse.swt.SWT; +import org.eclipse.swt.browser.Browser; +import org.eclipse.swt.custom.SashForm; +import org.eclipse.swt.events.MouseAdapter; +import org.eclipse.swt.events.MouseEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; +import org.eclipse.ui.dialogs.FilteredTree; +import org.eclipse.ui.dialogs.PatternFilter; +import org.eclipse.ui.part.ViewPart; + +public class TypesConfigurationsListenerView extends ViewPart { + + IClientContext context = null; + FilteredTree tree = null; + SashForm sash = null; + Browser browser = null; + ITypesEventsChainListener listener = null; + Text limitText = null; + + List eventsChains = new ArrayList(); + + final private int MAX_SIZE = 1000; + + + @Override + public void createPartControl(Composite parent) { + parent.setLayout(new GridLayout(3, true)); + Button startButton = new Button(parent, SWT.NONE); + startButton.setText("Start"); + startButton.addMouseListener(new MouseAdapter() { + + + + @Override + public void mouseUp(MouseEvent e) { + if (!Platform.inDebugMode()) { + MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Debug mode", "You must activate debug mode to be able to use this view. "); + } + + // Dirty work to force the NullElementType edithelper if in debug mode + if (Platform.inDebugMode()) { + + Field nullElementTypeEditHelperField = ElementTypeRegistryUtils.getNullElementTypeEditHelper(); + + if (nullElementTypeEditHelperField != null) { + // Register fake + + try { + nullElementTypeEditHelperField.set(NullElementType.getInstance(), new NotifierNullEditHelper()); + } catch (IllegalArgumentException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } catch (IllegalAccessException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } + } else { + Activator.log.warn("Failed to override NullElementType's EditHelper"); + } + + MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Debug mode", "Be careful, as the platform is in debug mode, the NullElementType's EditHelper has been overriden"); + } + + if (listener == null) { + listener = new ITypesEventsChainListener() { + + @Override + public void notifyChain(TypesEventsChain chain) { + int limit; + String text = limitText.getText(); + try { + limit = Integer.parseInt(text); + } catch (NumberFormatException e) { + limit = MAX_SIZE; + } + if (eventsChains.size() >= limit) { + eventsChains.remove(0); + } + eventsChains.add(chain); + Display.getCurrent().asyncExec(new Runnable() { + @Override + public void run() { + tree.getViewer().refresh(); + } + }); + + } + }; + TypesListenersRegistry.getInstance().addEventChainListener(listener); + } + } + + }); + startButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); + + Button stopButton = new Button(parent, SWT.NONE); + stopButton.setText("Stop"); + stopButton.addMouseListener(new MouseAdapter() { + + @Override + public void mouseUp(MouseEvent e) { + TypesListenersRegistry.getInstance().removeEventChainListener(listener); + listener = null; + } + + }); + stopButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); + + Button clearButton = new Button(parent, SWT.NONE); + clearButton.setText("Clear"); + clearButton.addMouseListener(new MouseAdapter() { + + @Override + public void mouseUp(MouseEvent e) { + eventsChains.clear(); + tree.getViewer().refresh(); + browser.setText(""); + } + + }); + clearButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); + + Label label = new Label(parent, SWT.NONE); + label.setText("Limit: "); + + limitText = new Text(parent, SWT.BORDER); + limitText.setText(MAX_SIZE + ""); + limitText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1)); + + sash = new SashForm(parent, SWT.HORIZONTAL | SWT.BORDER); + + sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1)); + + tree = new FilteredTree(sash, SWT.BORDER, new PatternFilter(), true); + tree.getViewer().setLabelProvider(new TypesEventLabelProvider()); + tree.getViewer().setContentProvider(new TypesEventContentProvider()); + tree.getViewer().addSelectionChangedListener(new ISelectionChangedListener() { + + @Override + public void selectionChanged(SelectionChangedEvent event) { + if (event.getSelection() instanceof IStructuredSelection) { + Object first = ((IStructuredSelection) event.getSelection()).getFirstElement(); + String result = ""; + if (first instanceof ITypesEvent) { + + Map details = TypesEventPrinter.getEventDetails(((ITypesEvent) first)); + result = TypesEventPrinter.printHtmlEvent(details); + } else if (first instanceof TypesEventsChain) { + IEditCommandRequest req = ((TypesEventsChain) first).getRequest(); + result = TypesEventPrinter.printHtmRequest(req); + } + browser.setText(result); + } + + } + }); + tree.getViewer().setInput(eventsChains); + + browser = new Browser(sash, SWT.NONE); + + + sash.setWeights(new int[] { 1, 3 }); + } + + + + @Override + public void setFocus() { + + } + + /** + * @see org.eclipse.ui.part.WorkbenchPart#dispose() + * + */ + @Override + public void dispose() { + TypesListenersRegistry.getInstance().removeEventChainListener(listener); + super.dispose(); + } + + +} diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/xtend-gen/.gitignore b/plugins/developer/org.eclipse.papyrus.dev.types/xtend-gen/.gitignore new file mode 100644 index 00000000000..1c31bab9945 --- /dev/null +++ b/plugins/developer/org.eclipse.papyrus.dev.types/xtend-gen/.gitignore @@ -0,0 +1 @@ +org/ \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.classpath b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.classpath deleted file mode 100644 index 7bcdff09eb7..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.project b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.project deleted file mode 100644 index 2a8e03b2e1f..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - org.eclipse.papyrus.elementtypesconfigurations.developer - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.core.resources.prefs b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 9c8f702e54e..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/org/eclipse/papyrus/elementtypesconfigurations/developer/generator/ElementTypeRegistryGenerator.xtend=ISO-8859-1 diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.core.prefs b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 9ca8e68231b..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.ui.prefs b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/META-INF/MANIFEST.MF deleted file mode 100644 index 26c0911395e..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/META-INF/MANIFEST.MF +++ /dev/null @@ -1,27 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.uml2.uml;bundle-version="5.0.0", - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", - org.eclipse.emf.codegen.ecore;bundle-version="2.10.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", - org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", - org.eclipse.papyrus.infra.core;bundle-version="1.2.0", - org.eclipse.gmf.codegen;bundle-version="2.11.0", - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - com.google.guava;bundle-version="11.0.0", - org.eclipse.xtext.xbase.lib, - org.eclipse.xtend.lib, - org.eclipse.xtend.lib.macro, - org.eclipse.ui.workbench, - org.eclipse.ui.ide;bundle-version="3.10.100", - org.eclipse.core.filesystem;bundle-version="1.6.0" -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.elementtypesconfigurations.developer.Activator -Bundle-SymbolicName: org.eclipse.papyrus.elementtypesconfigurations.developer;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/about.html b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/build.properties b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/build.properties deleted file mode 100644 index 5f460d66db9..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation -# Christian W. Damus - bug 451230 -# - -source.. = src/,\ - xtend-gen/ -output.. = bin/ -bin.includes = plugin.xml,\ - META-INF/,\ - .,\ - icons/,\ - plugin.properties,\ - about.html -src.includes = about.html diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/icons/sample.gif b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/icons/sample.gif deleted file mode 100644 index 34fb3c9d8cb..00000000000 Binary files a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/icons/sample.gif and /dev/null differ diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.properties b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.properties deleted file mode 100644 index 31d4842c2ca..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.properties +++ /dev/null @@ -1,13 +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: -# CEA LIST - initial API and implementation -############################################################################### -pluginName=Papyrus ElementTypesConfigurations framework for developers plugin -providerName=Eclipse Modeling Project - diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.xml b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.xml deleted file mode 100644 index 6acc490b601..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/plugin.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/pom.xml b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/pom.xml deleted file mode 100644 index 0b4dee262a3..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.developer - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.elementtypesconfigurations.developer - org.eclipse.papyrus - 1.2.0-SNAPSHOT - eclipse-plugin - - - - - org.apache.maven.plugins - maven-clean-plugin - - - - xtend-gen - - **/.gitignore - - - - - - - - org.eclipse.xtend - xtend-maven-plugin - - - - compile - - - xtend-gen - - - - - - - diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/Activator.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/Activator.java deleted file mode 100644 index 8e6a1609ed6..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/Activator.java +++ /dev/null @@ -1,82 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer; - -import org.eclipse.jface.resource.ImageDescriptor; -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.elementtypesconfigurations.developer"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** Logging helper */ - public static LogHelper log; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) - */ - 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) - */ - public void stop(BundleContext context) throws Exception { - log = null; - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - - /** - * Returns an image descriptor for the image file at the given - * plug-in relative path - * - * @param path - * the path - * @return the image descriptor - */ - public static ImageDescriptor getImageDescriptor(String path) { - return imageDescriptorFromPlugin(PLUGIN_ID, path); - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/generator/ElementTypeRegistryGenerator.xtend b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/generator/ElementTypeRegistryGenerator.xtend deleted file mode 100644 index 1314649fec7..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/generator/ElementTypeRegistryGenerator.xtend +++ /dev/null @@ -1,61 +0,0 @@ -package org.eclipse.papyrus.elementtypesconfigurations.developer.generator - -import org.eclipse.emf.ecore.resource.Resource -import org.eclipse.emf.common.util.TreeIterator -import org.eclipse.emf.ecore.EObject -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration - -class ElementTypeRegistryGenerator { - - static def Iterable allContentsIterable(Resource resource) { - var TreeIterator _allContents = resource.getAllContents(); - return IteratorExtensions.toIterable(_allContents); - } - - static def String camelToUnderScore(String in) { - var String regex = "([a-z])([A-Z])"; - var String replacement = "$1_$2"; - return in.replaceAll(regex, replacement); - } - - static def String safeName(String in) { - var result = camelToUnderScore(in) - result = result.replaceAll("[^A-Za-z0-9]", "_") - result = result.replaceAll("_{2,}", "_") - result = result.toUpperCase; - result = result.replaceAll("UML_",""); - return result; - } - - - - - static def generateRegistry(Resource it,String outputType) ''' - /***************************************************************************** - * 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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - import org.eclipse.gmf.runtime.emf.type.core.AbstractElementTypeEnumerator; - import org.eclipse.gmf.runtime.emf.type.core.IHintedType; - - public class «outputType» extends AbstractElementTypeEnumerator { - - /** Constant for UML nature */ - public static final String UML_NATURE = "UML_Nature"; - - «FOR elementTypeConfiguration : allContentsIterable(it).filter(typeof(ElementTypeConfiguration))» - public static final IHintedType «safeName(elementTypeConfiguration.name).toUpperCase» = (IHintedType)getElementType("«elementTypeConfiguration.identifier»"); //$NON-NLS-1$ - - «ENDFOR» - - } - ''' -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/GenerateElementTypesRegistry.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/GenerateElementTypesRegistry.java deleted file mode 100644 index 65d08fde319..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/GenerateElementTypesRegistry.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.handlers; - -import java.io.ByteArrayInputStream; -import java.io.InputStream; - -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.emf.common.util.URI; -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.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.papyrus.elementtypesconfigurations.developer.generator.ElementTypeRegistryGenerator; -import org.eclipse.swt.widgets.Display; -import org.eclipse.ui.dialogs.ContainerSelectionDialog; -import org.eclipse.ui.handlers.HandlerUtil; - -/** - * Our sample handler extends AbstractHandler, an IHandler base class. - * - * @see org.eclipse.core.commands.IHandler - * @see org.eclipse.core.commands.AbstractHandler - */ -public class GenerateElementTypesRegistry extends AbstractHandler { - - - public GenerateElementTypesRegistry() { - } - - public Object execute(ExecutionEvent event) throws ExecutionException { - ResourceSet resourceSet = new ResourceSetImpl(); - ISelection currentSelection = HandlerUtil.getCurrentSelection(event); - if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { - return null; - } - - final IStructuredSelection selection = (IStructuredSelection) currentSelection; - Object selectedElement = selection.getFirstElement(); - - if (selectedElement instanceof IFile) { - - String selectedFilePath = ((IFile) selectedElement).getFullPath().toString(); - String outputType = ((IFile) selectedElement).getFullPath().removeFileExtension().lastSegment(); - String outputFileName = outputType + ".java"; - - ContainerSelectionDialog dialog = new ContainerSelectionDialog(Display.getCurrent().getActiveShell(), null, true, "Select a folder:"); - dialog.setTitle("Select output folder"); - dialog.open(); - if (dialog.getResult() != null && dialog.getResult().length > 0 && dialog.getResult()[0] instanceof IPath) { - - IWorkspace workspace = ResourcesPlugin.getWorkspace(); - IWorkspaceRoot root = workspace.getRoot(); - IResource container = root.findMember((IPath) dialog.getResult()[0]); - - if (container instanceof IFolder) { - - Resource inputResource = resourceSet.getResource(URI.createURI(selectedFilePath), true); - CharSequence registryText = ElementTypeRegistryGenerator.generateRegistry(inputResource, outputType); - - - IFile outputFile = ((IFolder) container).getFile(outputFileName); - if (!outputFile.exists()) { - - InputStream source = new ByteArrayInputStream(registryText.toString().getBytes()); - try { - outputFile.create(source, IResource.NONE, null); - } catch (CoreException e) { - e.printStackTrace(); - } - } else { - MessageDialog.openWarning(Display.getCurrent().getActiveShell(), "Registry already exists", "No file generated: the registry file already exists."); - } - } else { - MessageDialog.openWarning(Display.getCurrent().getActiveShell(), "Container selection", "Selection must be a folder"); - } - } - - - } - return null; - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/MigrateElementTypesConfigurations.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/MigrateElementTypesConfigurations.java deleted file mode 100644 index 2bb3b935828..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/handlers/MigrateElementTypesConfigurations.java +++ /dev/null @@ -1,252 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.handlers; - -import java.io.File; -import java.io.IOException; -import java.net.URI; -import java.util.Iterator; - -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.transform.Result; -import javax.xml.transform.Source; -import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerConfigurationException; -import javax.xml.transform.TransformerException; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.TransformerFactoryConfigurationError; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.stream.StreamResult; - -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.ui.handlers.HandlerUtil; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.xml.sax.SAXException; - -public class MigrateElementTypesConfigurations extends AbstractHandler { - - - public Object execute(ExecutionEvent event) throws ExecutionException { - - final String FILE_EXTENSION = "elementtypesconfigurations"; - - final String ELEMENTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:elementtypesconfigurations"; - final String ELEMENTTYPECONFIGURATION_NAMESPACE_OLD = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.0"; - final String ELEMENTTYPECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.1"; - - final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:applystereotypeadviceconfiguration"; - final String APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/uml/applystereotypeadvice/1.1"; - - final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:invariantstereotyperuleconfiguration"; - final String INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/invariantstereotyperule/1.1"; - - final String SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:settypeadviceconfiguration"; - final String SETTYPEADVICECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/uml/settypeadvice/1.1"; - - final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:stereotypeapplicationmatcherconfiguration"; - final String STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/payrus/elementtypesconfigurations/uml/stereotypematcherconfiguration/1.1"; - - final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:invariantcontainerruleconfiguration"; - final String INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/containerruleconfiguration/1.1"; - - final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:runtimevalueseditionadviceconfiguration"; - final String RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/emf/runtimevalueseditionadviceconfiguration/1.1"; - - final String SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:setvaluesadviceconfiguration"; - final String SETVALUESADVICECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/1.1"; - - final String INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE = "xmlns:invarianttypeconfiguration"; - final String INVARIANTTYPECONFIGURATION_NAMESPACE_NEW = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/invarianttype/1.1"; - - - - final String TYPE_ATTRIBUTE = "xsi:type"; - final String EDITHELPERADVICECONFIGURATION_TAG = "editHelperAdviceConfiguration"; - final String MATCHERCONFIGURATION_TAG = "matcherConfiguration"; - final String NAME_ATTRIBUTE = "name"; - final String IDENTIFIER_ATTRIBUTE = "identifier"; - final String EDITHELPERADVICECLASSNAME_ATTRIBUTE = "editHelperAdviceClassName"; - final String ADVICEBINDINGSCONFIGURATIONS_TAG = "adviceBindingsConfigurations"; - final String MATCHER_TYPE = "elementtypesconfigurations:MatcherConfiguration"; - final String ADVICEBINDINGCONFIGURATION_TYPE = "elementtypesconfigurations:AdviceBindingConfiguration"; - final String EDITHELPERADVICECONFIGURATION_TYPE = "elementtypesconfigurations:EditHelperAdviceConfiguration"; - final String MATCHERCLASSNAME_ATTRIBUTE = "matcherClassName"; - - - ISelection currentSelection = HandlerUtil.getCurrentSelection(event); - if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { - return null; - } - - final IStructuredSelection selection = (IStructuredSelection) currentSelection; - - Iterator it = selection.iterator(); - - while (it.hasNext()) { - Object selectedElement = (Object) it.next(); - - if (selectedElement instanceof IFile) { - if (FILE_EXTENSION.equals(((IFile) selectedElement).getFileExtension())) { - IFile selectedFile = ((IFile) selectedElement); - URI uri = selectedFile.getLocationURI(); - - if (selectedFile.isLinked()) { - uri = selectedFile.getRawLocationURI(); - } - - try { - File file = EFS.getStore(uri).toLocalFile(0, new NullProgressMonitor()); - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - DocumentBuilder builder = factory.newDocumentBuilder(); - Document doc = builder.parse(file); - Element root = doc.getDocumentElement(); - - if (root.getAttribute(ELEMENTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE).equals(ELEMENTTYPECONFIGURATION_NAMESPACE_OLD)) { - - // Update namespaces - root.setAttribute(ELEMENTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE, ELEMENTTYPECONFIGURATION_NAMESPACE_NEW); - - if (!root.getAttribute(APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE, APPLYSTEREOTYPEADVICECONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_ATTRIBUTE, INVARIANTSTEREOTYPERULECONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(SETTYPEADVICECONFIGURATION_NAMESPACE_ATTRIBUTE, SETTYPEADVICECONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_ATTRIBUTE, STEREOTYPEAPPLICATIONMATCHERCONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_ATTRIBUTE, INVARIANTCONTAINERRULECONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_ATTRIBUTE, RUNTIMEVALUESEDITIONADVICECONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(SETVALUESADVICECONFIGURATION_NAMESPACE_ATTRIBUTE, SETVALUESADVICECONFIGURATION_NAMESPACE_NEW); - } - - if (!root.getAttribute(INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE).isEmpty()) { - root.setAttribute(INVARIANTTYPECONFIGURATION_NAMESPACE_ATTRIBUTE, INVARIANTTYPECONFIGURATION_NAMESPACE_NEW); - } - - NodeList editHelperAdviceConfigurations = root.getElementsByTagName(EDITHELPERADVICECONFIGURATION_TAG); - - for (int i = 0; i < editHelperAdviceConfigurations.getLength(); i++) { - Element editHelperAdvice = (Element) editHelperAdviceConfigurations.item(i); - - Node type = editHelperAdvice.getAttributes().getNamedItem(TYPE_ATTRIBUTE); - - if (type == null) { - editHelperAdvice.setAttribute(TYPE_ATTRIBUTE, EDITHELPERADVICECONFIGURATION_TYPE); - } else if (!type.getNodeValue().equals(EDITHELPERADVICECONFIGURATION_TYPE)) { - editHelperAdvice.removeAttribute(EDITHELPERADVICECLASSNAME_ATTRIBUTE); - } - - editHelperAdvice.removeAttribute(NAME_ATTRIBUTE); - editHelperAdvice.removeAttribute(IDENTIFIER_ATTRIBUTE); - } - - NodeList adviceBindingsConfigurations = root.getElementsByTagName(ADVICEBINDINGSCONFIGURATIONS_TAG); - - for (int i = 0; i < adviceBindingsConfigurations.getLength(); i++) { - Element adviceBinding = (Element) adviceBindingsConfigurations.item(i); - - Node type = adviceBinding.getAttributes().getNamedItem(TYPE_ATTRIBUTE); - - if (type == null) { - adviceBinding.setAttribute(TYPE_ATTRIBUTE, ADVICEBINDINGCONFIGURATION_TYPE); - } else if (!type.getNodeValue().equals(ADVICEBINDINGCONFIGURATION_TYPE)) { - adviceBinding.removeAttribute(EDITHELPERADVICECLASSNAME_ATTRIBUTE); - } - - adviceBinding.removeAttribute(NAME_ATTRIBUTE); - } - - NodeList matcherConfigurations = root.getElementsByTagName(MATCHERCONFIGURATION_TAG); - - for (int i = 0; i < matcherConfigurations.getLength(); i++) { - Element matcher = (Element) matcherConfigurations.item(i); - - Node type = matcher.getAttributes().getNamedItem(TYPE_ATTRIBUTE); - - if (type == null) { - matcher.setAttribute(TYPE_ATTRIBUTE, MATCHER_TYPE); - } else { - matcher.removeAttribute(MATCHERCLASSNAME_ATTRIBUTE); - } - } - - Transformer transformer = TransformerFactory.newInstance().newTransformer(); - Result output = new StreamResult(file); - Source input = new DOMSource(doc); - - transformer.transform(input, output); - } - - } catch (ParserConfigurationException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (SAXException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (CoreException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (TransformerConfigurationException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (TransformerFactoryConfigurationError e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (TransformerException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - } - } - - } - return null; - } - - - - - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventContentProvider.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventContentProvider.java deleted file mode 100644 index 54b2d0c9a4e..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventContentProvider.java +++ /dev/null @@ -1,161 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.elementtypesconfigurations.developer.providers; - -import java.util.AbstractMap; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.List; -import java.util.Map; - -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.ElementTypesConfigurationsEventsChain; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AbstractElementTypesConfigurationsEvent; - - -public class ElementTypesConfigurationsEventContentProvider implements ITreeContentProvider { - - /** - * @see org.eclipse.jface.viewers.IContentProvider#dispose() - * - */ - @Override - public void dispose() { - // TODO Auto-generated method stub - - } - - /** - * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) - * - * @param viewer - * @param oldInput - * @param newInput - */ - @Override - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - // TODO Auto-generated method stub - - } - - /** - * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) - * - * @param inputElement - * @return - */ - @Override - public Object[] getElements(Object inputElement) { - List result = new ArrayList(); - if (inputElement instanceof List) { - List inputSet = (List) inputElement; - for (Object element : inputSet) { - if (element instanceof ElementTypesConfigurationsEventsChain) { - result.add((ElementTypesConfigurationsEventsChain) element); - } - } - } - - Collections.sort(result, new Comparator() { - - @Override - public int compare(ElementTypesConfigurationsEventsChain o1, ElementTypesConfigurationsEventsChain o2) { - if (o1.getTimestamp() > o2.getTimestamp()) { - return -1; - } - return 1; - } - }); - - - return result.toArray(); - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) - * - * @param parentElement - * @return - */ - @Override - public Object[] getChildren(Object parentElement) { - - - List result = new ArrayList(); - if (parentElement instanceof ElementTypesConfigurationsEventsChain) { - ElementTypesConfigurationsEventsChain elementTypesConfigurationsEventsChain = (ElementTypesConfigurationsEventsChain) parentElement; - - List adviceRequestConfigurationEvents = elementTypesConfigurationsEventsChain.getAdviceRequestConfigurationEvents(); - if (!adviceRequestConfigurationEvents.isEmpty()) { - result.add(new AbstractMap.SimpleEntry("AdviceRequestConfigurationEvents", adviceRequestConfigurationEvents)); - } - AbstractElementTypesConfigurationsEvent editHelperRequestConfigurationEvent = elementTypesConfigurationsEventsChain.getEditHelperRequestConfigurationEvent(); - if (editHelperRequestConfigurationEvent != null) { - result.add(editHelperRequestConfigurationEvent); - } - List adviceApprovalEvents = elementTypesConfigurationsEventsChain.getAdviceApprovalEvents(); - if (!adviceApprovalEvents.isEmpty()) { - result.add(new AbstractMap.SimpleEntry("AdviceApprovalEvents", adviceApprovalEvents)); - } - AbstractElementTypesConfigurationsEvent editHelperApprovalEvent = elementTypesConfigurationsEventsChain.getEditHelperApprovalEvent(); - if (editHelperApprovalEvent != null) { - result.add(editHelperApprovalEvent); - } - List beforeAdvicesCommandsEvents = elementTypesConfigurationsEventsChain.getBeforeAdvicesCommandsEvents(); - if (!beforeAdvicesCommandsEvents.isEmpty()) { - result.add(new AbstractMap.SimpleEntry("BeforeAdvicesCommandsEvents", beforeAdvicesCommandsEvents)); - } - AbstractElementTypesConfigurationsEvent editHelperCommandEvent = elementTypesConfigurationsEventsChain.getEditHelperCommandEvent(); - if (editHelperCommandEvent != null) { - result.add(editHelperCommandEvent); - } - List afterAdvicesCommandsEvents = elementTypesConfigurationsEventsChain.getAfterAdvicesCommandsEvents(); - if (!afterAdvicesCommandsEvents.isEmpty()) { - result.add(new AbstractMap.SimpleEntry("AfterAdvicesCommandsEvents", afterAdvicesCommandsEvents)); - } - } else if (parentElement instanceof Map.Entry) { - Object value = ((Map.Entry) parentElement).getValue(); - if (value instanceof Collection) { - result.addAll((Collection) value); - } - } - return result.toArray(); - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) - * - * @param element - * @return - */ - @Override - public Object getParent(Object element) { - return null; - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) - * - * @param element - * @return - */ - @Override - public boolean hasChildren(Object element) { - return getChildren(element).length == 0 ? false : true; - } - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventLabelProvider.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventLabelProvider.java deleted file mode 100644 index ad1fe1cf275..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesConfigurationsEventLabelProvider.java +++ /dev/null @@ -1,135 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.elementtypesconfigurations.developer.providers; - -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Collection; -import java.util.Map; - -import org.eclipse.jface.viewers.IColorProvider; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.ElementTypesConfigurationsEventsChain; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ElementTypesConfigurationsEventType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.graphics.RGB; -import org.eclipse.swt.widgets.Display; - - -public class ElementTypesConfigurationsEventLabelProvider extends org.eclipse.jface.viewers.LabelProvider implements IColorProvider { - - @Override - public Image getImage(Object element) { - - return null; - } - - @Override - public String getText(Object element) { - String result = ""; - Calendar calendar = Calendar.getInstance(); - SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd - hh:mm:ss:SSS"); - if (element instanceof IElementTypesConfigurationsEvent) { - calendar.setTimeInMillis(((IElementTypesConfigurationsEvent) element).getTimestamp()); - result += "[" + formater.format(calendar.getTime()) + "] " + ((IElementTypesConfigurationsEvent) element).getEventName(); - } else if (element instanceof ElementTypesConfigurationsEventsChain) { - calendar.setTimeInMillis(((ElementTypesConfigurationsEventsChain) element).getTimestamp()); - result += "[" + formater.format(calendar.getTime()) + "] " + ((ElementTypesConfigurationsEventsChain) element).getName(); - } else if (element instanceof Map.Entry) { - result += ((Map.Entry) element).getKey().toString(); - } else { - result += element.toString(); - } - return result; - } - - Color yellow = new Color(Display.getCurrent(), new RGB(255, 200, 0)); - Color green = new Color(Display.getCurrent(), new RGB(0, 128, 0)); - Color red = new Color(Display.getCurrent(), new RGB(255, 0, 0)); - Color black = new Color(Display.getCurrent(), new RGB(0, 0, 0)); - Color blue = new Color(Display.getCurrent(), new RGB(0, 0, 255)); - - - /** - * @see org.eclipse.jface.viewers.IColorProvider#getForeground(java.lang.Object) - * - * @param element - * @return - */ - @Override - public Color getForeground(Object element) { - if (element instanceof IElementTypesConfigurationsEvent) { - if (((IElementTypesConfigurationsEvent) element).getEventType().equals(ElementTypesConfigurationsEventType.Disapproved)) { - return red; - } else if (((IElementTypesConfigurationsEvent) element).getEventType().equals(ElementTypesConfigurationsEventType.Unexecutable)) { - return red; - } else if (((IElementTypesConfigurationsEvent) element).getEventType().equals(ElementTypesConfigurationsEventType.Executable)) { - return green; - } else if (((IElementTypesConfigurationsEvent) element).getEventType().equals(ElementTypesConfigurationsEventType.Approved)) { - return green; - } else if (((IElementTypesConfigurationsEvent) element).getEventType().equals(ElementTypesConfigurationsEventType.Identity)) { - return yellow; - } else if (((IElementTypesConfigurationsEvent) element).getEventType().equals(ElementTypesConfigurationsEventType.RequestConfiguration)) { - return blue; - } - } else if (element instanceof Map.Entry) { - Object value = ((Map.Entry) element).getValue(); - if (value instanceof Collection) { - return checkWorst((Collection) value, true); - } - } else if (element instanceof ElementTypesConfigurationsEventsChain) { - return checkWorst(((ElementTypesConfigurationsEventsChain) element).getAllEvents(), false); - } - return black; - } - - /** - * @param value - */ - private Color checkWorst(Collection value, boolean considerRequestConfiguration) { - Color result = green; - for (Object object : value) { - if (((IElementTypesConfigurationsEvent) object).getEventType().equals(ElementTypesConfigurationsEventType.Disapproved)) { - return red; - } else if (((IElementTypesConfigurationsEvent) object).getEventType().equals(ElementTypesConfigurationsEventType.Unexecutable)) { - return red; - } else if (((IElementTypesConfigurationsEvent) object).getEventType().equals(ElementTypesConfigurationsEventType.Identity)) { - if (result == green) { - result = yellow; - } - } else if (((IElementTypesConfigurationsEvent) object).getEventType().equals(ElementTypesConfigurationsEventType.RequestConfiguration)) { - if (considerRequestConfiguration) { - if (result != yellow && result != red) { - result = blue; - } - } - } - } - return result; - } - - /** - * @see org.eclipse.jface.viewers.IColorProvider#getBackground(java.lang.Object) - * - * @param element - * @return - */ - @Override - public Color getBackground(Object element) { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesContentProvider.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesContentProvider.java deleted file mode 100644 index 9714f998a45..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesContentProvider.java +++ /dev/null @@ -1,85 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.providers; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.MetamodelType; -import org.eclipse.gmf.runtime.emf.type.core.SpecializationType; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.papyrus.elementtypesconfigurations.developer.utils.IElementTypeComparator; - -public class ElementTypesContentProvider implements ITreeContentProvider { - - private Map> elementTypesHierarchy = new HashMap>(); - - @Override - public void dispose() { - } - - @Override - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - if (newInput instanceof Object[]) { - elementTypesHierarchy.clear(); - for (Object elementType : ((Object[]) newInput)) { - if (elementType instanceof MetamodelType) { - if (!elementTypesHierarchy.containsKey(elementType)) { - elementTypesHierarchy.put((MetamodelType) elementType, new ArrayList()); - } - } else if (elementType instanceof SpecializationType) { - for (IElementType superType : ((SpecializationType) elementType).getSpecializedTypes()) { - if (!elementTypesHierarchy.containsKey(superType)) { - elementTypesHierarchy.put(superType, new ArrayList()); - } - elementTypesHierarchy.get(superType).add((SpecializationType) elementType); - } - } - } - } - } - - @Override - public Object[] getElements(Object inputElement) { - inputChanged(null, null, inputElement); - ArrayList result = new ArrayList(); - for (IElementType iElementType : elementTypesHierarchy.keySet()) { - if (iElementType instanceof MetamodelType) { - result.add(iElementType); - } - } - Collections.sort(result, new IElementTypeComparator()); - - return result.toArray(); - } - - @Override - public Object[] getChildren(Object parentElement) { - return elementTypesHierarchy.containsKey(parentElement) ? elementTypesHierarchy.get(parentElement).toArray() : Collections.emptyList().toArray(); - } - - @Override - public Object getParent(Object element) { - return null; - } - - @Override - public boolean hasChildren(Object element) { - return getChildren(element).length == 0 ? false : true; - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsContentProvider.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsContentProvider.java deleted file mode 100644 index 10a3a094a65..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsContentProvider.java +++ /dev/null @@ -1,153 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.providers; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.ecore.EReference; -import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; -import org.eclipse.gmf.runtime.emf.type.core.SpecializationType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.papyrus.elementtypesconfigurations.developer.utils.AdvicesComparator; - -public class ElementTypesDetailsContentProvider implements ITreeContentProvider { - - /** - * @see org.eclipse.jface.viewers.IContentProvider#dispose() - * - */ - @Override - public void dispose() { - // TODO Auto-generated method stub - - } - - /** - * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) - * - * @param viewer - * @param oldInput - * @param newInput - */ - @Override - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - // TODO Auto-generated method stub - - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#getElements(java.lang.Object) - * - * @param inputElement - * @return - */ - @Override - public Object[] getElements(Object inputElement) { - ArrayList result = new ArrayList(); - if (inputElement instanceof IElementType) { - if (inputElement instanceof IHintedType) { - result.add("Semantic Hint: " + ((IHintedType) inputElement).getSemanticHint()); - } else { - result.add("Not Hinted"); - } - if (inputElement instanceof SpecializationType) { - for (String id : ((SpecializationType) inputElement).getSpecializedTypeIds()) { - result.add("SpecializedType Id: " + id); - } - - - if (((SpecializationType) inputElement).getEditHelperAdvice() != null) { - result.add("EditHelperAdvice: " + ((SpecializationType) inputElement).getEditHelperAdvice().getClass().getName()); - } else { - result.add("EditHelperAdvice: None"); - } - - if (((SpecializationType) inputElement).getEContainerDescriptor() != null) { - String eReferences = ""; - for (EReference eReference : ((SpecializationType) inputElement).getEContainerDescriptor().getContainmentFeatures()) { - eReferences += EMFCoreUtil.getQualifiedName(eReference, true) + " "; - } - result.add("EContainerDescriptor: " + eReferences); - } else { - result.add("EContainerDescriptor: None"); - } - } - - if (((IElementType) inputElement).getEditHelper() != null) { - result.add("EditHelper: " + ((IElementType) inputElement).getEditHelper().getClass().getName()); - } else { - result.add("EditHelper: None"); - } - - if (((IElementType) inputElement).getEClass() != null) { - result.add("Eclass: " + EMFCoreUtil.getQualifiedName(((IElementType) inputElement).getEClass(), true)); - } else { - result.add("Eclass: None"); - } - - result.add("Display Name: " + ((IElementType) inputElement).getDisplayName()); - IEditHelperAdvice[] advices = ElementTypeRegistry.getInstance().getEditHelperAdvice(((IElementType) inputElement)); - result.add(Arrays.asList(advices)); - } - return result.toArray(); - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) - * - * @param parentElement - * @return - */ - @Override - public Object[] getChildren(Object parentElement) { - if (parentElement instanceof List) { - Collections.sort((List) parentElement, new AdvicesComparator()); - return ((List) parentElement).toArray(); - } - - return Collections.emptyList().toArray(); - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) - * - * @param element - * @return - */ - @Override - public Object getParent(Object element) { - // TODO Auto-generated method stub - return null; - } - - /** - * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) - * - * @param element - * @return - */ - @Override - public boolean hasChildren(Object element) { - return getChildren(element).length == 0 ? false : true; - } - - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsLabelProvider.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsLabelProvider.java deleted file mode 100644 index 2736e4dddc8..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesDetailsLabelProvider.java +++ /dev/null @@ -1,39 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.providers; - -import java.util.List; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.swt.graphics.Image; - -public class ElementTypesDetailsLabelProvider extends org.eclipse.jface.viewers.LabelProvider { - - @Override - public Image getImage(Object element) { - return null; - } - - @Override - public String getText(Object element) { - String result = ""; - if (element instanceof String) { - result += element; - } else if (element instanceof List) { - result += "Advices: "; - } else if (element instanceof IEditHelperAdvice) { - result += element; - } - return result; - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesLabelProvider.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesLabelProvider.java deleted file mode 100644 index fa89e5858e3..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/providers/ElementTypesLabelProvider.java +++ /dev/null @@ -1,45 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.providers; - -import java.io.IOException; - -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.widgets.Display; - -public class ElementTypesLabelProvider extends org.eclipse.jface.viewers.LabelProvider { - - @Override - public Image getImage(Object element) { - if (element instanceof IElementType) { - if (((IElementType) element).getIconURL() != null) { - try { - return new Image(Display.getCurrent(), ((IElementType) element).getIconURL().openStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - } - return null; - } - - @Override - public String getText(Object element) { - String result = ""; - if (element instanceof IElementType) { - result += ((IElementType) element).getId(); - } - return result; - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/AdvicesComparator.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/AdvicesComparator.java deleted file mode 100644 index 9df1c0773d7..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/AdvicesComparator.java +++ /dev/null @@ -1,35 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.util.Comparator; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; - - -public class AdvicesComparator implements Comparator { - - /** - * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) - * - * @param arg0 - * @param arg1 - * @return - */ - @Override - public int compare(IEditHelperAdvice o1, IEditHelperAdvice o2) { - return o1.toString().compareTo(o2.toString()); - } - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/EClassComparator.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/EClassComparator.java deleted file mode 100644 index 60b1249bfee..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/EClassComparator.java +++ /dev/null @@ -1,25 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.util.Comparator; - -import org.eclipse.emf.ecore.EClass; - -public class EClassComparator implements Comparator { - - @Override - public int compare(EClass o1, EClass o2) { - return o1.getName().compareTo(o2.getName()); - } -} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeConfigurationComparator.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeConfigurationComparator.java deleted file mode 100644 index 73bb842866b..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeConfigurationComparator.java +++ /dev/null @@ -1,25 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.util.Comparator; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; - -public class ElementTypeConfigurationComparator implements Comparator { - - @Override - public int compare(ElementTypeConfiguration o1, ElementTypeConfiguration o2) { - return o1.getName().compareTo(o2.getName()); - } -} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeRegistryUtils.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeRegistryUtils.java deleted file mode 100644 index 16ed6ae5147..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypeRegistryUtils.java +++ /dev/null @@ -1,45 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.lang.reflect.Field; - -import org.eclipse.gmf.runtime.emf.type.core.MetamodelType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - - -public class ElementTypeRegistryUtils { - - - static public synchronized Field getNullElementTypeEditHelper() { - - Field declaredField = null; - try { - declaredField = MetamodelType.class.getDeclaredField("editHelper"); - } catch (SecurityException e1) { - Activator.log.error(e1); - return null; - } catch (NoSuchFieldException e1) { - Activator.log.error(e1); - return null; - } - if (declaredField == null) { - Activator.log.error("impossible to find editHelper", null); - return null; - } - declaredField.setAccessible(true); - - return declaredField; - } - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypesConfigurationsEventPrinter.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypesConfigurationsEventPrinter.java deleted file mode 100644 index 334f7317b5d..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/ElementTypesConfigurationsEventPrinter.java +++ /dev/null @@ -1,138 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceApprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceDisapprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceRequestConfigurationEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperApprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperDisapprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperRequestConfigurationEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ExecutableAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ExecutableEditHelperEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IdentityAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IdentityEditHelperEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.UnexecutableAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.UnexecutableEditHelperEvent; - -public class ElementTypesConfigurationsEventPrinter { - public static Map getEventDetails(IElementTypesConfigurationsEvent event) { - Map result = new HashMap<>(); - - if (event instanceof AdviceApprovedEvent) { - result.put("Approved Advice", ((AdviceApprovedEvent) event).getAdvice().getClass().getName()); - } else if (event instanceof AdviceDisapprovedEvent) { - result.put("Disapprover Advice", ((AdviceDisapprovedEvent) event).getAdvice().getClass().getName()); - } else if (event instanceof EditHelperApprovedEvent) { - result.put("Approver edithelper", ((EditHelperApprovedEvent) event).getEditHelper().getClass().getName()); - } else if (event instanceof EditHelperDisapprovedEvent) { - result.put("Disapprover edithelper", ((EditHelperDisapprovedEvent) event).getEditHelper().getClass().getName()); - } else if (event instanceof ExecutableAdviceEvent) { - result.put("Advice", ((ExecutableAdviceEvent) event).getAdvice().getClass().getName()); - result.put("Phase ", ((ExecutableAdviceEvent) event).getAdvicePhase().name()); - result.put("Executable command", ((ExecutableAdviceEvent) event).getCommand().getClass().getName()); - } else if (event instanceof ExecutableEditHelperEvent) { - result.put("Executable command from edithelper", ((ExecutableEditHelperEvent) event).getEditHelper().getClass().getName()); - result.put("Executable command", ((ExecutableEditHelperEvent) event).getCommand().getClass().getName()); - } else if (event instanceof IdentityAdviceEvent) { - result.put("Identity Advice", ((IdentityAdviceEvent) event).getAdvice().getClass().getName()); - result.put("Phase ", ((IdentityAdviceEvent) event).getAdvicePhase().name()); - } else if (event instanceof IdentityEditHelperEvent) { - result.put("Identity EditHelper", ((IdentityEditHelperEvent) event).getEditHelper().getClass().getName()); - } else if (event instanceof UnexecutableAdviceEvent) { - result.put("Unexecutable Advice", ((UnexecutableAdviceEvent) event).getAdvice().getClass().getName()); - result.put("Phase ", ((UnexecutableAdviceEvent) event).getAdvicePhase().name()); - result.put("Unexecutable command", ((UnexecutableAdviceEvent) event).getCommand().getClass().getName()); - } else if (event instanceof UnexecutableEditHelperEvent) { - result.put("Unexecutable command from edithelper", ((UnexecutableEditHelperEvent) event).getEditHelper().getClass().getName()); - result.put("Unexecutable command", ((UnexecutableEditHelperEvent) event).getCommand().getClass().getName()); - } else if (event instanceof AdviceRequestConfigurationEvent) { - result.put("RequestConfiguration Advice", ((AdviceRequestConfigurationEvent) event).getAdvice().getClass().getName()); - } else if (event instanceof EditHelperRequestConfigurationEvent) { - result.put("RequestConfiguration EditHelper", ((EditHelperRequestConfigurationEvent) event).getEditHelper().getClass().getName()); - } - - if (event instanceof IAdviceEvent) { - String adviceNames = ""; - for (IEditHelperAdvice editHelperAdvice : ((IAdviceEvent) event).getAdvices()) { - adviceNames += " -" + editHelperAdvice.getClass().getName() + "\n"; - } - result.put("Among the following advices ", adviceNames); - } - - return result; - } - - public static String printHtmlEvent(Map details) { - - - String html = ""; - for (String key : details.keySet()) { - html += ""; - html += ""; - html += ""; - html += ""; - } - html += "
" + key + "" + details.get(key) + "
"; - - html = html.replaceAll("\\n", "
"); - - return html; - } - - /** - * @param req - * @return - */ - public static String printHtmRequest(IEditCommandRequest req) { - String result = "
    "; - result += "
  • Request: " + req + "
  • "; - result += "
  • Label: " + req.getLabel() + "
  • "; - result += "
  • Kind: " + req.getClass().getName() + "
  • "; - result += "
  • ElementsToEdit: " + req.getElementsToEdit() + "
  • "; - result += "
  • Parameters:
  • "; - - if (!req.getParameters().keySet().isEmpty()) { - result += "
      "; - - for (Object key : req.getParameters().keySet()) { - result += "
    • " + key + " <-> " + req.getParameters().get(key) + "
    • "; - } - result += "
    "; - } - result += "
  • EditHelperContext: " + req.getEditHelperContext() + "
  • "; - - if (req instanceof CreateElementRequest) { - result += "
  • ElementType: " + ((CreateElementRequest) req).getElementType() + "
  • "; - result += "
  • Container: " + ((CreateElementRequest) req).getContainer() + "
  • "; - result += "
  • ContainmentFeature: " + ((CreateElementRequest) req).getContainmentFeature() + "
  • "; - if (req instanceof CreateRelationshipRequest) { - result += "
  • Source: " + ((CreateRelationshipRequest) req).getSource() + "
  • "; - result += "
  • Target: " + ((CreateRelationshipRequest) req).getTarget() + "
  • "; - } - } - result += "
"; - - return result; - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/GenerateElementTypesConfigurationsUtils.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/GenerateElementTypesConfigurationsUtils.java deleted file mode 100644 index 09519bf8b28..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/GenerateElementTypesConfigurationsUtils.java +++ /dev/null @@ -1,112 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.uml2.uml.UMLPackage; - -public class GenerateElementTypesConfigurationsUtils { - - - - static public Collection findAmbiguousContainments(EReference eReference, Collection possibleContainmentsEReference) { - HashSet result = new HashSet(); - - for (EReference ownerContainment : eReference.getEContainingClass().getEAllContainments()) { - for (EReference possibleContainement : possibleContainmentsEReference) { - if (eReference != possibleContainement) { - if (ownerContainment.equals(possibleContainement)) { - result.add(possibleContainement); - } - } - } - } - - return result; - } - - static public Collection findPossibleContainmentsEReference(EClass ownedEClass, Collection ownerTypes) { - HashSet result = new HashSet(); - for (EClass candidateOwner : ownerTypes) { - for (EReference eReference : candidateOwner.getEAllContainments()) { - if (isKindOf(ownedEClass, eReference.getEReferenceType())) { - result.add(eReference); - } - } - } - return result; - } - - static public boolean isKindOf(EClass a, EClassifier b) { - if (a.getEAllSuperTypes().contains(b)) { - return true; - } else { - return a.equals(b); - } - } - - static public Collection getAllEClass(EPackage ePackage) { - List eClasses = new ArrayList(); - for (EClassifier eClassifier : ePackage.getEClassifiers()) { - if (eClassifier instanceof EClass) { - eClasses.add((EClass) eClassifier); - } - } - - Collections.sort(eClasses, new EClassComparator()); - - return eClasses; - } - - static public String getIdentifier(EClass eClass) { - return "org.eclipse.papyrus.uml." + eClass.getName(); - } - - static public String getAsName(EReference containmentEReference, EClass container) { - return "_As_" + ((ENamedElement) container.eContainer()).getName().toUpperCase() + "::" + container.getName() + "::" + containmentEReference.getName(); - } - - static public boolean isSpecializedASpecialization(EClass eClass, EReference containmentEReference) { - Collection possibleContainmentsEReference = findPossibleContainmentsEReference(eClass, getAllEClass(UMLPackage.eINSTANCE)); - if (!findAmbiguousContainments(containmentEReference, possibleContainmentsEReference).isEmpty()) { - // The SpecialiazedType is SpecializationType - return true; - } else { - // The SpecialiazedType is MetamodelType - return false; - - } - } - - static public String findSpecializedTypesIDs(EClass eClass, EReference containmentEReference) { - if (isSpecializedASpecialization(eClass, containmentEReference)) { - // The SpecialiazedType is SpecializationType - return GenerateElementTypesConfigurationsUtils.getIdentifier(eClass) + GenerateElementTypesConfigurationsUtils.getAsName(containmentEReference, eClass); - } else { - // The SpecialiazedType is MetamodelType - return getIdentifier(eClass); - } - - - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/IElementTypeComparator.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/IElementTypeComparator.java deleted file mode 100644 index f015527581a..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/IElementTypeComparator.java +++ /dev/null @@ -1,25 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import java.util.Comparator; - -import org.eclipse.gmf.runtime.emf.type.core.IElementType; - -public class IElementTypeComparator implements Comparator { - - @Override - public int compare(IElementType o1, IElementType o2) { - return o1.getId().compareTo(o2.getId()); - } -} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/NotifierNullEditHelper.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/NotifierNullEditHelper.java deleted file mode 100644 index 9c1ed6085ec..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/utils/NotifierNullEditHelper.java +++ /dev/null @@ -1,30 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.elementtypesconfigurations.developer.utils; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.AbstractNotifierEditHelper; - -/** - * Edit helper for the NullElementType that considers before and after - * advice, only. - */ -public class NotifierNullEditHelper - extends AbstractNotifierEditHelper { - - protected ICommand getInsteadCommand(IEditCommandRequest req) { - return null; - } -} \ No newline at end of file diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/ElementTypesConfigurationsListenerView.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/ElementTypesConfigurationsListenerView.java deleted file mode 100644 index 0953772c4b6..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/ElementTypesConfigurationsListenerView.java +++ /dev/null @@ -1,227 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.view; - - -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.NullElementType; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.papyrus.elementtypesconfigurations.developer.Activator; -import org.eclipse.papyrus.elementtypesconfigurations.developer.providers.ElementTypesConfigurationsEventContentProvider; -import org.eclipse.papyrus.elementtypesconfigurations.developer.providers.ElementTypesConfigurationsEventLabelProvider; -import org.eclipse.papyrus.elementtypesconfigurations.developer.utils.ElementTypeRegistryUtils; -import org.eclipse.papyrus.elementtypesconfigurations.developer.utils.ElementTypesConfigurationsEventPrinter; -import org.eclipse.papyrus.elementtypesconfigurations.developer.utils.NotifierNullEditHelper; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.ElementTypesConfigurationsEventsChain; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.ElementTypesConfigurationsListenersRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.IElementTypesConfigurationsEventsChainListener; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent; -import org.eclipse.swt.SWT; -import org.eclipse.swt.browser.Browser; -import org.eclipse.swt.custom.SashForm; -import org.eclipse.swt.events.MouseAdapter; -import org.eclipse.swt.events.MouseEvent; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.dialogs.FilteredTree; -import org.eclipse.ui.dialogs.PatternFilter; -import org.eclipse.ui.part.ViewPart; - -public class ElementTypesConfigurationsListenerView extends ViewPart { - - IClientContext context = null; - FilteredTree tree = null; - SashForm sash = null; - Browser browser = null; - IElementTypesConfigurationsEventsChainListener listener = null; - Text limitText = null; - - List eventsChains = new ArrayList(); - - final private int MAX_SIZE = 1000; - - - @Override - public void createPartControl(Composite parent) { - parent.setLayout(new GridLayout(3, true)); - Button startButton = new Button(parent, SWT.NONE); - startButton.setText("Start"); - startButton.addMouseListener(new MouseAdapter() { - - - - @Override - public void mouseUp(MouseEvent e) { - if (!Platform.inDebugMode()) { - MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Debug mode", "You must activate debug mode to be able to use this view. "); - } - - // Dirty work to force the NullElementType edithelper if in debug mode - if (Platform.inDebugMode()) { - - Field nullElementTypeEditHelperField = ElementTypeRegistryUtils.getNullElementTypeEditHelper(); - - if (nullElementTypeEditHelperField != null) { - // Register fake - - try { - nullElementTypeEditHelperField.set(NullElementType.getInstance(), new NotifierNullEditHelper()); - } catch (IllegalArgumentException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (IllegalAccessException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - } else { - Activator.log.warn("Failed to override NullElementType's EditHelper"); - } - - MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Debug mode", "Be careful, as the platform is in debug mode, the NullElementType's EditHelper has been overriden"); - } - - if (listener == null) { - listener = new IElementTypesConfigurationsEventsChainListener() { - - @Override - public void notifyChain(ElementTypesConfigurationsEventsChain chain) { - int limit; - String text = limitText.getText(); - try { - limit = Integer.parseInt(text); - } catch (NumberFormatException e) { - limit = MAX_SIZE; - } - if (eventsChains.size() >= limit) { - eventsChains.remove(0); - } - eventsChains.add(chain); - Display.getCurrent().asyncExec(new Runnable() { - @Override - public void run() { - tree.getViewer().refresh(); - } - }); - - } - }; - ElementTypesConfigurationsListenersRegistry.getInstance().addEventChainListener(listener); - } - } - - }); - startButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - - Button stopButton = new Button(parent, SWT.NONE); - stopButton.setText("Stop"); - stopButton.addMouseListener(new MouseAdapter() { - - @Override - public void mouseUp(MouseEvent e) { - ElementTypesConfigurationsListenersRegistry.getInstance().removeEventChainListener(listener); - listener = null; - } - - }); - stopButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - - Button clearButton = new Button(parent, SWT.NONE); - clearButton.setText("Clear"); - clearButton.addMouseListener(new MouseAdapter() { - - @Override - public void mouseUp(MouseEvent e) { - eventsChains.clear(); - tree.getViewer().refresh(); - browser.setText(""); - } - - }); - clearButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - - Label label = new Label(parent, SWT.NONE); - label.setText("Limit: "); - - limitText = new Text(parent, SWT.BORDER); - limitText.setText(MAX_SIZE + ""); - limitText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1)); - - sash = new SashForm(parent, SWT.HORIZONTAL | SWT.BORDER); - - sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1)); - - tree = new FilteredTree(sash, SWT.BORDER, new PatternFilter(), true); - tree.getViewer().setLabelProvider(new ElementTypesConfigurationsEventLabelProvider()); - tree.getViewer().setContentProvider(new ElementTypesConfigurationsEventContentProvider()); - tree.getViewer().addSelectionChangedListener(new ISelectionChangedListener() { - - @Override - public void selectionChanged(SelectionChangedEvent event) { - if (event.getSelection() instanceof IStructuredSelection) { - Object first = ((IStructuredSelection) event.getSelection()).getFirstElement(); - String result = ""; - if (first instanceof IElementTypesConfigurationsEvent) { - - Map details = ElementTypesConfigurationsEventPrinter.getEventDetails(((IElementTypesConfigurationsEvent) first)); - result = ElementTypesConfigurationsEventPrinter.printHtmlEvent(details); - } else if (first instanceof ElementTypesConfigurationsEventsChain) { - IEditCommandRequest req = ((ElementTypesConfigurationsEventsChain) first).getRequest(); - result = ElementTypesConfigurationsEventPrinter.printHtmRequest(req); - } - browser.setText(result); - } - - } - }); - tree.getViewer().setInput(eventsChains); - - browser = new Browser(sash, SWT.NONE); - - - sash.setWeights(new int[] { 1, 3 }); - } - - - - @Override - public void setFocus() { - - } - - /** - * @see org.eclipse.ui.part.WorkbenchPart#dispose() - * - */ - @Override - public void dispose() { - ElementTypesConfigurationsListenersRegistry.getInstance().removeEventChainListener(listener); - super.dispose(); - } - - -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/RegistredElementTypesView.java b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/RegistredElementTypesView.java deleted file mode 100644 index b41803577ec..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/src/org/eclipse/papyrus/elementtypesconfigurations/developer/view/RegistredElementTypesView.java +++ /dev/null @@ -1,127 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.elementtypesconfigurations.developer.view; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.papyrus.elementtypesconfigurations.developer.providers.ElementTypesContentProvider; -import org.eclipse.papyrus.elementtypesconfigurations.developer.providers.ElementTypesDetailsContentProvider; -import org.eclipse.papyrus.elementtypesconfigurations.developer.providers.ElementTypesDetailsLabelProvider; -import org.eclipse.papyrus.elementtypesconfigurations.developer.providers.ElementTypesLabelProvider; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.SashForm; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.events.SelectionListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.dialogs.FilteredTree; -import org.eclipse.ui.dialogs.PatternFilter; -import org.eclipse.ui.part.ViewPart; - -public class RegistredElementTypesView extends ViewPart { - - FilteredTree detailsFilteredTree = null; - SashForm sash = null; - FilteredTree elementTypesFilteredTree = null; - Combo combo = null; - - - @Override - public void createPartControl(Composite parent) { - parent.setLayout(new GridLayout(1, true)); - - combo = new Combo(parent, SWT.NONE); - final List itemsList = new ArrayList<>(); - List contexts = new ArrayList(ClientContextManager.getInstance().getClientContexts()); - - int index = -1; - int i = 0; - for (IClientContext context : contexts) { - itemsList.add(context.getId()); - if (context.getId().equals(ClientContextManager.getDefaultClientContext().getId())) { - index = i; - } - i++; - } - String[] items = new String[itemsList.size()]; - items = itemsList.toArray(items); - combo.setItems(items); - if (index != -1) { - combo.select(index); - } - combo.addSelectionListener(new SelectionListener() { - - @Override - public void widgetSelected(SelectionEvent e) { - int index = combo.getSelectionIndex(); - - String clientContexId = itemsList.get(index); - - if (clientContexId != null) { - IClientContext clientContex = ClientContextManager.getInstance().getClientContext(clientContexId); - if (clientContex != null) { - IElementType[] elementTypes = ElementTypeRegistry.getInstance().getElementTypes(clientContex); - elementTypesFilteredTree.getViewer().setInput(elementTypes); - } - } - - } - - @Override - public void widgetDefaultSelected(SelectionEvent e) { - - - } - }); - - sash = new SashForm(parent, SWT.HORIZONTAL); - sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - - elementTypesFilteredTree = new FilteredTree(sash, SWT.BORDER, new PatternFilter(), true); - elementTypesFilteredTree.getViewer().setLabelProvider(new ElementTypesLabelProvider()); - elementTypesFilteredTree.getViewer().setContentProvider(new ElementTypesContentProvider()); - detailsFilteredTree = new FilteredTree(sash, SWT.BORDER, new PatternFilter(), true); - detailsFilteredTree.getViewer().setLabelProvider(new ElementTypesDetailsLabelProvider()); - detailsFilteredTree.getViewer().setContentProvider(new ElementTypesDetailsContentProvider()); - - if (index != -1) { - combo.select(index); - } - - elementTypesFilteredTree.getViewer().addSelectionChangedListener(new ISelectionChangedListener() { - - @Override - public void selectionChanged(SelectionChangedEvent event) { - if (event.getSelection() instanceof IStructuredSelection) { - detailsFilteredTree.getViewer().setInput(((IStructuredSelection) event.getSelection()).getFirstElement()); - } - - } - }); - } - - @Override - public void setFocus() { - - } -} diff --git a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/xtend-gen/.gitignore b/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/xtend-gen/.gitignore deleted file mode 100644 index 1c31bab9945..00000000000 --- a/plugins/developer/org.eclipse.papyrus.elementtypesconfigurations.developer/xtend-gen/.gitignore +++ /dev/null @@ -1 +0,0 @@ -org/ \ No newline at end of file diff --git a/plugins/developer/pom.xml b/plugins/developer/pom.xml index 73a40b33457..fbaed18eebc 100644 --- a/plugins/developer/pom.xml +++ b/plugins/developer/pom.xml @@ -23,13 +23,13 @@ org.eclipse.papyrus.dev.project.management org.eclipse.papyrus.dev.tests.framework org.eclipse.papyrus.dev.tests.framework.ui + org.eclipse.papyrus.dev.types org.eclipse.papyrus.dev.view.services.edit.request org.eclipse.papyrus.developer.profile org.eclipse.papyrus.domaincodegen.ui org.eclipse.papyrus.domaincontextcodegen org.eclipse.papyrus.domaincontextcodegen.edit org.eclipse.papyrus.domaincontextcodegen.editor - org.eclipse.papyrus.elementtypesconfigurations.developer org.eclipse.papyrus.gmf.editpartview org.eclipse.papyrus.gmf.editpoliciesstates org.eclipse.papyrus.gmf.figureview diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.classpath new file mode 100644 index 00000000000..e7a4ca0c29c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.project new file mode 100644 index 00000000000..739a883bc87 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.emf.types.ui + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..0c68a61dca8 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..f1b58b7d9dd --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/META-INF/MANIFEST.MF @@ -0,0 +1,33 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.types.ui;singleton:=true +Bundle-Version: 1.2.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.eclipse.papyrus.infra.emf.types.ui.advices.values.provider.RuntimeValuesAdviceEditPlugin$Implementation +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.papyrus.infra.constraints;visibility:=reexport, + org.eclipse.papyrus.infra.types;visibility:=reexport, + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.papyrus.infra.properties;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport, + org.eclipse.papyrus.infra.constraints.edit;visibility:=reexport, + org.eclipse.emf.ecore.edit;visibility:=reexport, + org.eclipse.papyrus.infra.types.edit;visibility:=reexport, + org.eclipse.papyrus.infra.properties.edit;visibility:=reexport, + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.9.0", + org.eclipse.papyrus.views.properties;bundle-version="1.2.0", + org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-ActivationPolicy: lazy +Bundle-Localization: plugin +Bundle-Vendor: %providerName +Export-Package: org.eclipse.papyrus.infra.emf.types.internal.ui, + org.eclipse.papyrus.infra.emf.types.internal.ui.advice, + org.eclipse.papyrus.infra.emf.types.ui.advices.values, + org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl, + org.eclipse.papyrus.infra.emf.types.ui.advices.values.provider, + org.eclipse.papyrus.infra.emf.types.ui.advices.values.util diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/build.properties new file mode 100644 index 00000000000..1411453014c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/build.properties @@ -0,0 +1,24 @@ +# 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: +# CEA LIST - Initial API and implementation + +output..=bin/ +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + icons/,\ + about.html +jars.compile.order=. +source.. = src-gen/,\ + src/ +bin..=bin/ +src.includes = about.html \ No newline at end of file diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesAdviceConfiguration.gif new file mode 100644 index 00000000000..64eb22ea49a Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif new file mode 100644 index 00000000000..a149010ace4 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif new file mode 100644 index 00000000000..ed8ee387a3c Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif new file mode 100644 index 00000000000..1d24f793204 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesAdviceConfiguration.gif new file mode 100644 index 00000000000..7c2aaac84ee Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif new file mode 100644 index 00000000000..48e3cf22687 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/ViewToDisplay.gif new file mode 100644 index 00000000000..83afb9b3c9a Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/icons/full/obj16/ViewToDisplay.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.ecore new file mode 100644 index 00000000000..7073ae33223 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.ecore @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.genmodel new file mode 100644 index 00000000000..7c48ba89669 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/model/RuntimeValuesAdvice.genmodel @@ -0,0 +1,20 @@ + + + RuntimeValuesAdvice.ecore + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.properties new file mode 100644 index 00000000000..99226082a20 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.properties @@ -0,0 +1,23 @@ + +# +# +# +# $Id$ + +pluginName = UI for EMF TypesConfigurations Model +providerName = Eclipse Modeling Project +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. + _UI_PropertyDescriptor_description = The {0} of the {1} + _UI_RuntimeValuesAdviceConfiguration_type = Runtime Values Advice Configuration +_UI_ViewToDisplay_type = View To Display +_UI_Unknown_type = Object + _UI_Unknown_datatype= Value + _UI_RuntimeValuesAdviceConfiguration_viewsToDisplay_feature = Views To Display +_UI_ViewToDisplay_view_feature = View +_UI_Unknown_feature = Unspecified + \ No newline at end of file diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.xml new file mode 100644 index 00000000000..869987f1c49 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/plugin.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/pom.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/pom.xml new file mode 100644 index 00000000000..d7e09280b23 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-emf + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.emf.types.ui + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceConfiguration.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceConfiguration.java new file mode 100644 index 00000000000..ac4983da6a7 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceConfiguration.java @@ -0,0 +1,42 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration#getViewsToDisplay Views To Display}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage#getRuntimeValuesAdviceConfiguration() + * @model + * @generated + */ +public interface RuntimeValuesAdviceConfiguration extends AbstractAdviceBindingConfiguration { + /** + * Returns the value of the 'Views To Display' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay}. + * + *

+ * If the meaning of the 'Views To Display' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Views To Display' containment reference list. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage#getRuntimeValuesAdviceConfiguration_ViewsToDisplay() + * @model containment="true" + * @generated + */ + EList getViewsToDisplay(); + +} // RuntimeValuesAdviceConfiguration diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceFactory.java new file mode 100644 index 00000000000..ff63a18c7ed --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdviceFactory.java @@ -0,0 +1,51 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage + * @generated + */ +public interface RuntimeValuesAdviceFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + RuntimeValuesAdviceFactory eINSTANCE = org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdviceFactoryImpl.init(); + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + RuntimeValuesAdviceConfiguration createRuntimeValuesAdviceConfiguration(); + + /** + * Returns a new object of class 'View To Display'. + * + * + * @return a new object of class 'View To Display'. + * @generated + */ + ViewToDisplay createViewToDisplay(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + RuntimeValuesAdvicePackage getRuntimeValuesAdvicePackage(); + +} //RuntimeValuesAdviceFactory diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdvicePackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdvicePackage.java new file mode 100644 index 00000000000..11ee1754367 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/RuntimeValuesAdvicePackage.java @@ -0,0 +1,310 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceFactory + * @model kind="package" + * @generated + */ +public interface RuntimeValuesAdvicePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "values"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/types/runtimevaluesadvice/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "runtimevaluesadvice"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + RuntimeValuesAdvicePackage eINSTANCE = org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdvicePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdviceConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdvicePackageImpl#getRuntimeValuesAdviceConfiguration() + * @generated + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__DESCRIPTION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__BEFORE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__AFTER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__IDENTIFIER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Target' reference. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__TARGET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; + + /** + * The feature id for the 'Inheritance' attribute. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__INHERITANCE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; + + /** + * The feature id for the 'Views To Display' containment reference list. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int RUNTIME_VALUES_ADVICE_CONFIGURATION_OPERATION_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.ViewToDisplayImpl View To Display}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.ViewToDisplayImpl + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdvicePackageImpl#getViewToDisplay() + * @generated + */ + int VIEW_TO_DISPLAY = 1; + + /** + * The feature id for the 'View' reference. + * + * + * @generated + * @ordered + */ + int VIEW_TO_DISPLAY__VIEW = 0; + + /** + * The number of structural features of the 'View To Display' class. + * + * + * @generated + * @ordered + */ + int VIEW_TO_DISPLAY_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'View To Display' class. + * + * + * @generated + * @ordered + */ + int VIEW_TO_DISPLAY_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration + * @generated + */ + EClass getRuntimeValuesAdviceConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration#getViewsToDisplay Views To Display}'. + * + * + * @return the meta object for the containment reference list 'Views To Display'. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration#getViewsToDisplay() + * @see #getRuntimeValuesAdviceConfiguration() + * @generated + */ + EReference getRuntimeValuesAdviceConfiguration_ViewsToDisplay(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay View To Display}'. + * + * + * @return the meta object for class 'View To Display'. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay + * @generated + */ + EClass getViewToDisplay(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay#getView View}'. + * + * + * @return the meta object for the reference 'View'. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay#getView() + * @see #getViewToDisplay() + * @generated + */ + EReference getViewToDisplay_View(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + RuntimeValuesAdviceFactory getRuntimeValuesAdviceFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdviceConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdvicePackageImpl#getRuntimeValuesAdviceConfiguration() + * @generated + */ + EClass RUNTIME_VALUES_ADVICE_CONFIGURATION = eINSTANCE.getRuntimeValuesAdviceConfiguration(); + + /** + * The meta object literal for the 'Views To Display' containment reference list feature. + * + * + * @generated + */ + EReference RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY = eINSTANCE.getRuntimeValuesAdviceConfiguration_ViewsToDisplay(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.ViewToDisplayImpl View To Display}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.ViewToDisplayImpl + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdvicePackageImpl#getViewToDisplay() + * @generated + */ + EClass VIEW_TO_DISPLAY = eINSTANCE.getViewToDisplay(); + + /** + * The meta object literal for the 'View' reference feature. + * + * + * @generated + */ + EReference VIEW_TO_DISPLAY__VIEW = eINSTANCE.getViewToDisplay_View(); + + } + +} //RuntimeValuesAdvicePackage diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/ViewToDisplay.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/ViewToDisplay.java new file mode 100644 index 00000000000..30c6ac8599c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/ViewToDisplay.java @@ -0,0 +1,52 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * + * A representation of the model object 'View To Display'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay#getView View}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage#getViewToDisplay() + * @model + * @generated + */ +public interface ViewToDisplay extends EObject { + /** + * Returns the value of the 'View' reference. + * + *

+ * If the meaning of the 'View' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'View' reference. + * @see #setView(View) + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage#getViewToDisplay_View() + * @model required="true" + * @generated + */ + View getView(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay#getView View}' reference. + * + * + * @param value the new value of the 'View' reference. + * @see #getView() + * @generated + */ + void setView(View value); + +} // ViewToDisplay diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceConfigurationImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceConfigurationImpl.java new file mode 100644 index 00000000000..0dec941a96d --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceConfigurationImpl.java @@ -0,0 +1,152 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.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.types.ui.advices.values.RuntimeValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay; + +import org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.RuntimeValuesAdviceConfigurationImpl#getViewsToDisplay Views To Display}
  • + *
+ * + * @generated + */ +public class RuntimeValuesAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements RuntimeValuesAdviceConfiguration { + /** + * The cached value of the '{@link #getViewsToDisplay() Views To Display}' containment reference list. + * + * + * @see #getViewsToDisplay() + * @generated + * @ordered + */ + protected EList viewsToDisplay; + + /** + * + * + * @generated + */ + protected RuntimeValuesAdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimeValuesAdvicePackage.Literals.RUNTIME_VALUES_ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getViewsToDisplay() { + if (viewsToDisplay == null) { + viewsToDisplay = new EObjectContainmentEList(ViewToDisplay.class, this, RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY); + } + return viewsToDisplay; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: + return ((InternalEList)getViewsToDisplay()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: + return getViewsToDisplay(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: + getViewsToDisplay().clear(); + getViewsToDisplay().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: + getViewsToDisplay().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: + return viewsToDisplay != null && !viewsToDisplay.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //RuntimeValuesAdviceConfigurationImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceFactoryImpl.java new file mode 100644 index 00000000000..fb8ae968eda --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdviceFactoryImpl.java @@ -0,0 +1,106 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.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.types.ui.advices.values.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class RuntimeValuesAdviceFactoryImpl extends EFactoryImpl implements RuntimeValuesAdviceFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static RuntimeValuesAdviceFactory init() { + try { + RuntimeValuesAdviceFactory theRuntimeValuesAdviceFactory = (RuntimeValuesAdviceFactory)EPackage.Registry.INSTANCE.getEFactory(RuntimeValuesAdvicePackage.eNS_URI); + if (theRuntimeValuesAdviceFactory != null) { + return theRuntimeValuesAdviceFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RuntimeValuesAdviceFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public RuntimeValuesAdviceFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION: return createRuntimeValuesAdviceConfiguration(); + case RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY: return createViewToDisplay(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public RuntimeValuesAdviceConfiguration createRuntimeValuesAdviceConfiguration() { + RuntimeValuesAdviceConfigurationImpl runtimeValuesAdviceConfiguration = new RuntimeValuesAdviceConfigurationImpl(); + return runtimeValuesAdviceConfiguration; + } + + /** + * + * + * @generated + */ + public ViewToDisplay createViewToDisplay() { + ViewToDisplayImpl viewToDisplay = new ViewToDisplayImpl(); + return viewToDisplay; + } + + /** + * + * + * @generated + */ + public RuntimeValuesAdvicePackage getRuntimeValuesAdvicePackage() { + return (RuntimeValuesAdvicePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static RuntimeValuesAdvicePackage getPackage() { + return RuntimeValuesAdvicePackage.eINSTANCE; + } + +} //RuntimeValuesAdviceFactoryImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdvicePackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdvicePackageImpl.java new file mode 100644 index 00000000000..79bf7028053 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/RuntimeValuesAdvicePackageImpl.java @@ -0,0 +1,228 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceFactory; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay; + +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; + +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; + +import org.eclipse.papyrus.infra.properties.ui.UiPackage; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class RuntimeValuesAdvicePackageImpl extends EPackageImpl implements RuntimeValuesAdvicePackage { + /** + * + * + * @generated + */ + private EClass runtimeValuesAdviceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass viewToDisplayEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage#eNS_URI + * @see #init() + * @generated + */ + private RuntimeValuesAdvicePackageImpl() { + super(eNS_URI, RuntimeValuesAdviceFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link RuntimeValuesAdvicePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static RuntimeValuesAdvicePackage init() { + if (isInited) return (RuntimeValuesAdvicePackage)EPackage.Registry.INSTANCE.getEPackage(RuntimeValuesAdvicePackage.eNS_URI); + + // Obtain or create and register package + RuntimeValuesAdvicePackageImpl theRuntimeValuesAdvicePackage = (RuntimeValuesAdvicePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RuntimeValuesAdvicePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RuntimeValuesAdvicePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ElementTypesConfigurationsPackage.eINSTANCE.eClass(); + EnvironmentPackage.eINSTANCE.eClass(); + ContextsPackage.eINSTANCE.eClass(); + UiPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theRuntimeValuesAdvicePackage.createPackageContents(); + + // Initialize created meta-data + theRuntimeValuesAdvicePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theRuntimeValuesAdvicePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(RuntimeValuesAdvicePackage.eNS_URI, theRuntimeValuesAdvicePackage); + return theRuntimeValuesAdvicePackage; + } + + /** + * + * + * @generated + */ + public EClass getRuntimeValuesAdviceConfiguration() { + return runtimeValuesAdviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getRuntimeValuesAdviceConfiguration_ViewsToDisplay() { + return (EReference)runtimeValuesAdviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getViewToDisplay() { + return viewToDisplayEClass; + } + + /** + * + * + * @generated + */ + public EReference getViewToDisplay_View() { + return (EReference)viewToDisplayEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public RuntimeValuesAdviceFactory getRuntimeValuesAdviceFactory() { + return (RuntimeValuesAdviceFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + runtimeValuesAdviceConfigurationEClass = createEClass(RUNTIME_VALUES_ADVICE_CONFIGURATION); + createEReference(runtimeValuesAdviceConfigurationEClass, RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY); + + viewToDisplayEClass = createEClass(VIEW_TO_DISPLAY); + createEReference(viewToDisplayEClass, VIEW_TO_DISPLAY__VIEW); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + ContextsPackage theContextsPackage = (ContextsPackage)EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + runtimeValuesAdviceConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getAbstractAdviceBindingConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(runtimeValuesAdviceConfigurationEClass, RuntimeValuesAdviceConfiguration.class, "RuntimeValuesAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRuntimeValuesAdviceConfiguration_ViewsToDisplay(), this.getViewToDisplay(), null, "viewsToDisplay", null, 0, -1, RuntimeValuesAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(viewToDisplayEClass, ViewToDisplay.class, "ViewToDisplay", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getViewToDisplay_View(), theContextsPackage.getView(), null, "view", null, 1, 1, ViewToDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //RuntimeValuesAdvicePackageImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/ViewToDisplayImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/ViewToDisplayImpl.java new file mode 100644 index 00000000000..76f088638c7 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/impl/ViewToDisplayImpl.java @@ -0,0 +1,158 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay; + +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * + * An implementation of the model object 'View To Display'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.impl.ViewToDisplayImpl#getView View}
  • + *
+ * + * @generated + */ +public class ViewToDisplayImpl extends MinimalEObjectImpl.Container implements ViewToDisplay { + /** + * The cached value of the '{@link #getView() View}' reference. + * + * + * @see #getView() + * @generated + * @ordered + */ + protected View view; + + /** + * + * + * @generated + */ + protected ViewToDisplayImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimeValuesAdvicePackage.Literals.VIEW_TO_DISPLAY; + } + + /** + * + * + * @generated + */ + public View getView() { + if (view != null && view.eIsProxy()) { + InternalEObject oldView = (InternalEObject)view; + view = (View)eResolveProxy(oldView); + if (view != oldView) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY__VIEW, oldView, view)); + } + } + return view; + } + + /** + * + * + * @generated + */ + public View basicGetView() { + return view; + } + + /** + * + * + * @generated + */ + public void setView(View newView) { + View oldView = view; + view = newView; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY__VIEW, oldView, view)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY__VIEW: + if (resolve) return getView(); + return basicGetView(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY__VIEW: + setView((View)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY__VIEW: + setView((View)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY__VIEW: + return view != null; + } + return super.eIsSet(featureID); + } + +} //ViewToDisplayImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceConfigurationItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..df2864491ac --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceConfigurationItemProvider.java @@ -0,0 +1,160 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceFactory; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage; + +import org.eclipse.papyrus.infra.types.provider.AbstractAdviceBindingConfigurationItemProvider; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration} object. + * + * + * @generated + */ +public class RuntimeValuesAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public RuntimeValuesAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(RuntimeValuesAdvicePackage.Literals.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns RuntimeValuesAdviceConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/RuntimeValuesAdviceConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((RuntimeValuesAdviceConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_RuntimeValuesAdviceConfiguration_type") : + getString("_UI_RuntimeValuesAdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(RuntimeValuesAdviceConfiguration.class)) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (RuntimeValuesAdvicePackage.Literals.RUNTIME_VALUES_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY, + RuntimeValuesAdviceFactory.eINSTANCE.createViewToDisplay())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return RuntimeValuesAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceEditPlugin.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceEditPlugin.java new file mode 100644 index 00000000000..9fd03a36366 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceEditPlugin.java @@ -0,0 +1,101 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.constraints.provider.ConstraintsEditPlugin; + +import org.eclipse.papyrus.infra.properties.environment.provider.PropertiesEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +/** + * This is the central singleton for the RuntimeValuesAdvice edit plugin. + * + * + * @generated + */ +public final class RuntimeValuesAdviceEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final RuntimeValuesAdviceEditPlugin INSTANCE = new RuntimeValuesAdviceEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public RuntimeValuesAdviceEditPlugin() { + super + (new ResourceLocator [] { + ConstraintsEditPlugin.INSTANCE, + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + PropertiesEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceItemProviderAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceItemProviderAdapterFactory.java new file mode 100644 index 00000000000..c634a67360b --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/RuntimeValuesAdviceItemProviderAdapterFactory.java @@ -0,0 +1,327 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceFactory; + +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.util.RuntimeValuesAdviceAdapterFactory; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class RuntimeValuesAdviceItemProviderAdapterFactory extends RuntimeValuesAdviceAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public RuntimeValuesAdviceItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration} instances. + * + * + * @generated + */ + protected RuntimeValuesAdviceConfigurationItemProvider runtimeValuesAdviceConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createRuntimeValuesAdviceConfigurationAdapter() { + if (runtimeValuesAdviceConfigurationItemProvider == null) { + runtimeValuesAdviceConfigurationItemProvider = new RuntimeValuesAdviceConfigurationItemProvider(this); + } + + return runtimeValuesAdviceConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay} instances. + * + * + * @generated + */ + protected ViewToDisplayItemProvider viewToDisplayItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay}. + * + * + * @generated + */ + @Override + public Adapter createViewToDisplayAdapter() { + if (viewToDisplayItemProvider == null) { + viewToDisplayItemProvider = new ViewToDisplayItemProvider(this); + } + + return viewToDisplayItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (runtimeValuesAdviceConfigurationItemProvider != null) runtimeValuesAdviceConfigurationItemProvider.dispose(); + if (viewToDisplayItemProvider != null) viewToDisplayItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link ElementTypesConfigurationsPackage}. + * + * + * @generated + */ + public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends ElementTypesConfigurationsSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, + RuntimeValuesAdviceFactory.eINSTANCE.createRuntimeValuesAdviceConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return RuntimeValuesAdviceEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/ViewToDisplayItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/ViewToDisplayItemProvider.java new file mode 100644 index 00000000000..39a8f4ddb74 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/provider/ViewToDisplayItemProvider.java @@ -0,0 +1,146 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay} object. + * + * + * @generated + */ +public class ViewToDisplayItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ViewToDisplayItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addViewPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the View feature. + * + * + * @generated + */ + protected void addViewPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ViewToDisplay_view_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ViewToDisplay_view_feature", "_UI_ViewToDisplay_type"), + RuntimeValuesAdvicePackage.Literals.VIEW_TO_DISPLAY__VIEW, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns ViewToDisplay.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ViewToDisplay")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_ViewToDisplay_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return RuntimeValuesAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceAdapterFactory.java new file mode 100644 index 00000000000..050060ff121 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceAdapterFactory.java @@ -0,0 +1,215 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.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.types.ui.advices.values.*; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage + * @generated + */ +public class RuntimeValuesAdviceAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static RuntimeValuesAdvicePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public RuntimeValuesAdviceAdapterFactory() { + if (modelPackage == null) { + modelPackage = RuntimeValuesAdvicePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected RuntimeValuesAdviceSwitch modelSwitch = + new RuntimeValuesAdviceSwitch() { + @Override + public Adapter caseRuntimeValuesAdviceConfiguration(RuntimeValuesAdviceConfiguration object) { + return createRuntimeValuesAdviceConfigurationAdapter(); + } + @Override + public Adapter caseViewToDisplay(ViewToDisplay object) { + return createViewToDisplayAdapter(); + } + @Override + public Adapter caseConfigurationElement(ConfigurationElement object) { + return createConfigurationElementAdapter(); + } + @Override + public Adapter caseAdviceConfiguration(AdviceConfiguration object) { + return createAdviceConfigurationAdapter(); + } + @Override + public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return createIdentifiedConfigurationAdapter(); + } + @Override + public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return createAbstractAdviceBindingConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.types.ui.advices.values.RuntimeValuesAdviceConfiguration Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration + * @generated + */ + public Adapter createRuntimeValuesAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay View To Display}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay + * @generated + */ + public Adapter createViewToDisplayAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + public Adapter createConfigurationElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration + * @generated + */ + public Adapter createAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + public Adapter createIdentifiedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration + * @generated + */ + public Adapter createAbstractAdviceBindingConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //RuntimeValuesAdviceAdapterFactory diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceFactoryImpl.java new file mode 100644 index 00000000000..a490eb19580 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceFactoryImpl.java @@ -0,0 +1,41 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.util.RuntimeValuesAdviceResourceImpl + * @generated + */ +public class RuntimeValuesAdviceResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public RuntimeValuesAdviceResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new RuntimeValuesAdviceResourceImpl(uri); + return result; + } + +} //RuntimeValuesAdviceResourceFactoryImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceImpl.java new file mode 100644 index 00000000000..1caa7861994 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceResourceImpl.java @@ -0,0 +1,28 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.util.RuntimeValuesAdviceResourceFactoryImpl + * @generated + */ +public class RuntimeValuesAdviceResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public RuntimeValuesAdviceResourceImpl(URI uri) { + super(uri); + } + +} //RuntimeValuesAdviceResourceImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceSwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceSwitch.java new file mode 100644 index 00000000000..7ef4386df5c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src-gen/org/eclipse/papyrus/infra/emf/types/ui/advices/values/util/RuntimeValuesAdviceSwitch.java @@ -0,0 +1,200 @@ +/** + */ +package org.eclipse.papyrus.infra.emf.types.ui.advices.values.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.types.ui.advices.values.*; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdvicePackage + * @generated + */ +public class RuntimeValuesAdviceSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static RuntimeValuesAdvicePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public RuntimeValuesAdviceSwitch() { + if (modelPackage == null) { + modelPackage = RuntimeValuesAdvicePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case RuntimeValuesAdvicePackage.RUNTIME_VALUES_ADVICE_CONFIGURATION: { + RuntimeValuesAdviceConfiguration runtimeValuesAdviceConfiguration = (RuntimeValuesAdviceConfiguration)theEObject; + T result = caseRuntimeValuesAdviceConfiguration(runtimeValuesAdviceConfiguration); + if (result == null) result = caseAbstractAdviceBindingConfiguration(runtimeValuesAdviceConfiguration); + if (result == null) result = caseAdviceConfiguration(runtimeValuesAdviceConfiguration); + if (result == null) result = caseIdentifiedConfiguration(runtimeValuesAdviceConfiguration); + if (result == null) result = caseConfigurationElement(runtimeValuesAdviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RuntimeValuesAdvicePackage.VIEW_TO_DISPLAY: { + ViewToDisplay viewToDisplay = (ViewToDisplay)theEObject; + T result = caseViewToDisplay(viewToDisplay); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRuntimeValuesAdviceConfiguration(RuntimeValuesAdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'View To Display'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'View To Display'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseViewToDisplay(ViewToDisplay object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfigurationElement(ConfigurationElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAdviceConfiguration(AdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Identified Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Identified Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //RuntimeValuesAdviceSwitch diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/Activator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/Activator.java new file mode 100644 index 00000000000..0d0ff50c279 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/Activator.java @@ -0,0 +1,52 @@ +package org.eclipse.papyrus.infra.emf.types.internal.ui; + +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.types.ui"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) + */ + 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.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdvice.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdvice.java new file mode 100644 index 00000000000..c03d4dbb34e --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdvice.java @@ -0,0 +1,137 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.internal.ui.advice; + +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.workspace.util.WorkspaceSynchronizer; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.ViewToDisplay; +import org.eclipse.papyrus.infra.properties.contexts.View; +import org.eclipse.papyrus.infra.properties.ui.creation.EditionDialog; +import org.eclipse.papyrus.infra.services.edit.utils.ElementTypeUtils; +import org.eclipse.swt.widgets.Display; + +/** + * advice for the {@link SetValuesAdviceConfiguration} + */ +public class RuntimeValuesAdviceEditHelperAdvice extends AbstractEditHelperAdvice { + + /** list of views to display */ + protected Set viewsToDisplay; + + + /** + * Default Constructor + */ + public RuntimeValuesAdviceEditHelperAdvice(RuntimeValuesAdviceConfiguration configuration) { + viewsToDisplay = new HashSet(); + for (ViewToDisplay display : configuration.getViewsToDisplay()) { + View view = display.getView(); + if (view != null) { + viewsToDisplay.add(view); + } + } + } + + /** + * {@inheritDoc} + */ + @Override + public boolean approveRequest(IEditCommandRequest request) { + return super.approveRequest(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getBeforeCreateCommand(CreateElementRequest request) { + return super.getBeforeCreateCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getAfterCreateCommand(CreateElementRequest request) { + return super.getAfterCreateCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { + return super.getBeforeConfigureCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getAfterConfigureCommand(final ConfigureRequest request) { + final EObject elementToConfigure = request.getElementToConfigure(); + if (elementToConfigure == null) { + return null; + } + + final boolean dialogCancellable = ElementTypeUtils.dialogCancellable(request); + + return new AbstractTransactionalCommand(request.getEditingDomain(), "Editing " + EMFCoreUtil.getName(elementToConfigure), Collections.singletonList(WorkspaceSynchronizer.getFile((elementToConfigure.eResource())))) { + /** + * {@inheritDoc} + */ + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + Set viewsToDisplay = getViewsToDisplay(); + if (!viewsToDisplay.isEmpty()) { + EditionDialog dialog = new EditionDialog(Display.getCurrent().getActiveShell(), dialogCancellable) { + + }; + dialog.setTitle("Edit " + EMFCoreUtil.getName(elementToConfigure)); + dialog.setViews(viewsToDisplay); + dialog.setInput(elementToConfigure); + + dialog.open(); + } + + return CommandResult.newOKCommandResult(elementToConfigure); + } + }; + + } + + + /** + * @return the viewsToDisplay + */ + public Set getViewsToDisplay() { + return viewsToDisplay; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdviceFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdviceFactory.java new file mode 100644 index 00000000000..33b652f727a --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types.ui/src/org/eclipse/papyrus/infra/emf/types/internal/ui/advice/RuntimeValuesAdviceEditHelperAdviceFactory.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.internal.ui.advice; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.emf.types.ui.advices.values.RuntimeValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceBindingFactory; +import org.eclipse.papyrus.infra.types.core.impl.NullEditHelperAdvice; + +public class RuntimeValuesAdviceEditHelperAdviceFactory extends AbstractAdviceBindingFactory { + + @Override + protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { + if (adviceConfiguration instanceof RuntimeValuesAdviceConfiguration) { + IEditHelperAdvice editHelperAdvice = new RuntimeValuesAdviceEditHelperAdvice((RuntimeValuesAdviceConfiguration) adviceConfiguration); + return editHelperAdvice; + } + return NullEditHelperAdvice.getInstance(); + } +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath new file mode 100644 index 00000000000..6a42377b56a --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project new file mode 100644 index 00000000000..6c62ecfe762 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.emf.types + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f08be2b06c4 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..d56fcb5df95 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF @@ -0,0 +1,43 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.papyrus.infra.types;visibility:=reexport, + org.eclipse.papyrus.infra.types.rulebased;visibility:=reexport, + org.eclipse.papyrus.infra.constraints;visibility:=reexport, + org.eclipse.papyrus.infra.types;visibility:=reexport, + org.eclipse.uml2.uml;visibility:=reexport, + org.eclipse.uml2.types;visibility:=reexport, + org.eclipse.papyrus.infra.properties;visibility:=reexport, + org.eclipse.papyrus.infra.types.rulebased;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport, + org.eclipse.papyrus.infra.constraints.edit;visibility:=reexport, + org.eclipse.emf.ecore.edit;visibility:=reexport, + org.eclipse.papyrus.infra.types.edit;visibility:=reexport, + org.eclipse.papyrus.infra.properties.edit;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.uml2.uml.edit;visibility:=reexport, + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", + org.eclipse.core.databinding;bundle-version="1.4.1", + org.eclipse.papyrus.infra.core;bundle-version="1.2.0" +Export-Package: org.eclipse.papyrus.infra.emf.types, + org.eclipse.papyrus.infra.emf.types.advices.values, + org.eclipse.papyrus.infra.emf.types.advices.values.impl, + org.eclipse.papyrus.infra.emf.types.advices.values.provider, + org.eclipse.papyrus.infra.emf.types.advices.values.util, + org.eclipse.papyrus.infra.emf.types.converter, + org.eclipse.papyrus.infra.emf.types.rules.container, + org.eclipse.papyrus.infra.emf.types.rules.container.impl, + org.eclipse.papyrus.infra.emf.types.rules.container.provider, + org.eclipse.papyrus.infra.emf.types.rules.container.util +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.infra.emf.types.rules.container.provider.InvariantContainerRuleEditPlugin$Implementation +Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.types;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties new file mode 100644 index 00000000000..130a42b93dc --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties @@ -0,0 +1,20 @@ +# 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: +# CEA LIST - Initial API and implementation + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src-gen/,\ + src/ +output.. = bin/ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif new file mode 100644 index 00000000000..f1f019535ea Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..889f3af917f Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..fdd9def4faa Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif new file mode 100644 index 00000000000..dac4138ca01 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif new file mode 100644 index 00000000000..755e4ca7a46 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif new file mode 100644 index 00000000000..8ce82e3f6c7 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif new file mode 100644 index 00000000000..fe708946d58 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif new file mode 100644 index 00000000000..4aaad5a4cd7 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif new file mode 100644 index 00000000000..44afafd55da Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif new file mode 100644 index 00000000000..f93c92d061a Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif new file mode 100644 index 00000000000..5ef9a94e8da Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif new file mode 100644 index 00000000000..bbf242da6a9 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif new file mode 100644 index 00000000000..f08356ef9bb Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif new file mode 100644 index 00000000000..37dad615792 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif new file mode 100644 index 00000000000..8ce82e3f6c7 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif new file mode 100644 index 00000000000..4aaad5a4cd7 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif new file mode 100644 index 00000000000..33e07420851 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif new file mode 100644 index 00000000000..e180c4cf7ca Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif new file mode 100644 index 00000000000..a149010ace4 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif new file mode 100644 index 00000000000..1cbba050ada Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif new file mode 100644 index 00000000000..a3f9e7cf231 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif new file mode 100644 index 00000000000..03366e35d0f Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif new file mode 100644 index 00000000000..8997497557c Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif new file mode 100644 index 00000000000..c048169804a Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif new file mode 100644 index 00000000000..7ca3215e5f4 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..ca9cabaa91c Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif new file mode 100644 index 00000000000..fdf618977f6 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif new file mode 100644 index 00000000000..7cb2132b359 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif new file mode 100644 index 00000000000..05dc6202681 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..5389eace04f Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..64a27cb9075 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..06ebb8d9145 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif new file mode 100644 index 00000000000..320d1178250 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif new file mode 100644 index 00000000000..1d24f793204 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif new file mode 100644 index 00000000000..bf19516c7a4 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif new file mode 100644 index 00000000000..6878b7d54b1 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif new file mode 100644 index 00000000000..e4bc22dd17e Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif new file mode 100644 index 00000000000..ed874747401 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif new file mode 100644 index 00000000000..5a9bc7514fa Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif new file mode 100644 index 00000000000..c4a8af41844 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..89ad5da38ab Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif new file mode 100644 index 00000000000..c3370c7ddd5 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif new file mode 100644 index 00000000000..ed874747401 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif new file mode 100644 index 00000000000..9250fecbffd Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif new file mode 100644 index 00000000000..48e3cf22687 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif new file mode 100644 index 00000000000..7b7c428c715 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif new file mode 100644 index 00000000000..33a997a1606 Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif new file mode 100644 index 00000000000..83afb9b3c9a Binary files /dev/null and b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif differ diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore new file mode 100644 index 00000000000..d35d1f3e65b --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore @@ -0,0 +1,18 @@ + + + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel new file mode 100644 index 00000000000..fc18bd2dde7 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel @@ -0,0 +1,24 @@ + + + InvariantContainerRule.ecore + + + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore new file mode 100644 index 00000000000..8e8734b8987 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel new file mode 100644 index 00000000000..a937a1c4195 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel @@ -0,0 +1,30 @@ + + + SetValuesAdvice.ecore + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties new file mode 100644 index 00000000000..79340c1e4ad --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties @@ -0,0 +1,44 @@ + +# +# +# +# $Id$ + +pluginName = EMF TypesConfigurations Model and Core +providerName = Eclipse Modeling Project +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. + _UI_PropertyDescriptor_description = The {0} of the {1} + _UI_RuntimeValuesEditionAdviceConfiguration_type = Runtime Values Edition Advice Configuration +_UI_ViewToDisplay_type = View To Display +_UI_Unknown_type = Object + _UI_Unknown_datatype= Value + _UI_RuntimeValuesEditionAdviceConfiguration_viewsToDisplay_feature = Views To Display +_UI_ViewToDisplay_view_feature = View +_UI_Unknown_feature = Unspecified + +_UI_SetValuesAdviceConfiguration_type = Set Values Advice Configuration +_UI_FeatureToSet_type = Feature To Set +_UI_FeatureValue_type = Feature Value +_UI_DynamicValue_type = Dynamic Value +_UI_ConstantValue_type = Constant Value +_UI_ListValue_type = List Value +_UI_QueryExecutionValue_type = Query Execution Value +_UI_SetValuesAdviceConfiguration_featuresToSet_feature = Features To Set +_UI_FeatureToSet_featureName_feature = Feature Name +_UI_FeatureToSet_value_feature = Value +_UI_ConstantValue_valueInstance_feature = Value Instance +_UI_ListValue_values_feature = Values +_UI_InvariantContainerRuleConfiguration_type = Invariant Container Rule Configuration +_UI_HierarchyPermission_type = Hierarchy Permission +_UI_InvariantContainerRuleConfiguration_permissions_feature = Permissions +_UI_HierarchyPermission_childType_feature = Child Type +_UI_HierarchyPermission_isPermitted_feature = Is Permitted +_UI_HierarchyPermission_isStrict_feature = Is Strict +_UI_HierarchyPermission_strict_feature = Strict +_UI_HierarchyPermission_containerType_feature = Container Type +_UI_HierarchyPermission_permitted_feature = Permitted diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml new file mode 100644 index 00000000000..4e53bafcb4e --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml new file mode 100644 index 00000000000..a3299c0e10a --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-emf + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.emf.types + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java new file mode 100644 index 00000000000..7c8ee5f06fa --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * A representation of the model object 'Constant Value'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance Value Instance}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getConstantValue() + * @model + * @generated + */ +public interface ConstantValue extends FeatureValue { + /** + * Returns the value of the 'Value Instance' containment reference. + * + *

+ * If the meaning of the 'Value Instance' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value Instance' containment reference. + * @see #setValueInstance(ValueSpecification) + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getConstantValue_ValueInstance() + * @model containment="true" + * @generated + */ + ValueSpecification getValueInstance(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance Value Instance}' containment reference. + * + * + * @param value the new value of the 'Value Instance' containment reference. + * @see #getValueInstance() + * @generated + */ + void setValueInstance(ValueSpecification value); + +} // ConstantValue diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java new file mode 100644 index 00000000000..1511d0edb7f --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + + +/** + * + * A representation of the model object 'Dynamic Value'. + * + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getDynamicValue() + * @model abstract="true" + * @generated + */ +public interface DynamicValue extends FeatureValue { +} // DynamicValue diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java new file mode 100644 index 00000000000..fbd31dc6fcf --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java @@ -0,0 +1,87 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Feature To Set'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName Feature Name}
  • + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureToSet() + * @model + * @generated + */ +public interface FeatureToSet extends EObject { + /** + * Returns the value of the 'Feature Name' attribute. + * + *

+ * If the meaning of the 'Feature Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Feature Name' attribute. + * @see #setFeatureName(String) + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureToSet_FeatureName() + * @model required="true" + * @generated + */ + String getFeatureName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName Feature Name}' attribute. + * + * + * @param value the new value of the 'Feature Name' attribute. + * @see #getFeatureName() + * @generated + */ + void setFeatureName(String value); + + /** + * Returns the value of the 'Value' containment reference. + * + *

+ * If the meaning of the 'Value' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' containment reference. + * @see #setValue(FeatureValue) + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureToSet_Value() + * @model containment="true" required="true" + * @generated + */ + FeatureValue getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue Value}' containment reference. + * + * + * @param value the new value of the 'Value' containment reference. + * @see #getValue() + * @generated + */ + void setValue(FeatureValue value); + +} // FeatureToSet diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java new file mode 100644 index 00000000000..3968704c8d6 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java @@ -0,0 +1,28 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Feature Value'. + * + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureValue() + * @model abstract="true" + * @generated + */ +public interface FeatureValue extends EObject { +} // FeatureValue diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java new file mode 100644 index 00000000000..3af22c17bf0 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java @@ -0,0 +1,50 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'List Value'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue#getValues Values}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getListValue() + * @model + * @generated + */ +public interface ListValue extends FeatureValue { + /** + * Returns the value of the 'Values' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue}. + * + *

+ * If the meaning of the 'Values' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Values' containment reference list. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getListValue_Values() + * @model containment="true" + * @generated + */ + EList getValues(); + +} // ListValue diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java new file mode 100644 index 00000000000..e5883f48ca5 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + + +/** + * + * A representation of the model object 'Query Execution Value'. + * + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getQueryExecutionValue() + * @model + * @generated + */ +public interface QueryExecutionValue extends DynamicValue { +} // QueryExecutionValue diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java new file mode 100644 index 00000000000..8603abc35ee --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java @@ -0,0 +1,52 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration#getFeaturesToSet Features To Set}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getSetValuesAdviceConfiguration() + * @model + * @generated + */ +public interface SetValuesAdviceConfiguration extends AbstractAdviceBindingConfiguration { + /** + * Returns the value of the 'Features To Set' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet}. + * + *

+ * If the meaning of the 'Features To Set' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Features To Set' containment reference list. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getSetValuesAdviceConfiguration_FeaturesToSet() + * @model containment="true" + * @generated + */ + EList getFeaturesToSet(); + +} // SetValuesAdviceConfiguration diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java new file mode 100644 index 00000000000..0b1ee7391c9 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java @@ -0,0 +1,88 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage + * @generated + */ +public interface SetValuesAdviceFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SetValuesAdviceFactory eINSTANCE = org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceFactoryImpl.init(); + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + SetValuesAdviceConfiguration createSetValuesAdviceConfiguration(); + + /** + * Returns a new object of class 'Feature To Set'. + * + * + * @return a new object of class 'Feature To Set'. + * @generated + */ + FeatureToSet createFeatureToSet(); + + /** + * Returns a new object of class 'Constant Value'. + * + * + * @return a new object of class 'Constant Value'. + * @generated + */ + ConstantValue createConstantValue(); + + /** + * Returns a new object of class 'List Value'. + * + * + * @return a new object of class 'List Value'. + * @generated + */ + ListValue createListValue(); + + /** + * Returns a new object of class 'Query Execution Value'. + * + * + * @return a new object of class 'Query Execution Value'. + * @generated + */ + QueryExecutionValue createQueryExecutionValue(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SetValuesAdvicePackage getSetValuesAdvicePackage(); + +} //SetValuesAdviceFactory diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java new file mode 100644 index 00000000000..60ef970d7e9 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java @@ -0,0 +1,580 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +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.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory + * @model kind="package" + * @generated + */ +public interface SetValuesAdvicePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "values"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/types/setvaluesadvice/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "setvaluesadvice"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SetValuesAdvicePackage eINSTANCE = org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getSetValuesAdviceConfiguration() + * @generated + */ + int SET_VALUES_ADVICE_CONFIGURATION = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__DESCRIPTION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__BEFORE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__AFTER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__IDENTIFIER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Target' reference. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__TARGET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; + + /** + * The feature id for the 'Inheritance' attribute. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__INHERITANCE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; + + /** + * The feature id for the 'Features To Set' containment reference list. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int SET_VALUES_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl Feature To Set}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureToSet() + * @generated + */ + int FEATURE_TO_SET = 1; + + /** + * The feature id for the 'Feature Name' attribute. + * + * + * @generated + * @ordered + */ + int FEATURE_TO_SET__FEATURE_NAME = 0; + + /** + * The feature id for the 'Value' containment reference. + * + * + * @generated + * @ordered + */ + int FEATURE_TO_SET__VALUE = 1; + + /** + * The number of structural features of the 'Feature To Set' class. + * + * + * @generated + * @ordered + */ + int FEATURE_TO_SET_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl Feature Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureValue() + * @generated + */ + int FEATURE_VALUE = 2; + + /** + * The number of structural features of the 'Feature Value' class. + * + * + * @generated + * @ordered + */ + int FEATURE_VALUE_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl Dynamic Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getDynamicValue() + * @generated + */ + int DYNAMIC_VALUE = 3; + + /** + * The number of structural features of the 'Dynamic Value' class. + * + * + * @generated + * @ordered + */ + int DYNAMIC_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl Constant Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getConstantValue() + * @generated + */ + int CONSTANT_VALUE = 4; + + /** + * The feature id for the 'Value Instance' containment reference. + * + * + * @generated + * @ordered + */ + int CONSTANT_VALUE__VALUE_INSTANCE = FEATURE_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Constant Value' class. + * + * + * @generated + * @ordered + */ + int CONSTANT_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl List Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getListValue() + * @generated + */ + int LIST_VALUE = 5; + + /** + * The feature id for the 'Values' containment reference list. + * + * + * @generated + * @ordered + */ + int LIST_VALUE__VALUES = FEATURE_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'List Value' class. + * + * + * @generated + * @ordered + */ + int LIST_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl Query Execution Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getQueryExecutionValue() + * @generated + */ + int QUERY_EXECUTION_VALUE = 6; + + /** + * The number of structural features of the 'Query Execution Value' class. + * + * + * @generated + * @ordered + */ + int QUERY_EXECUTION_VALUE_FEATURE_COUNT = DYNAMIC_VALUE_FEATURE_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration + * @generated + */ + EClass getSetValuesAdviceConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration#getFeaturesToSet Features To Set}'. + * + * + * @return the meta object for the containment reference list 'Features To Set'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration#getFeaturesToSet() + * @see #getSetValuesAdviceConfiguration() + * @generated + */ + EReference getSetValuesAdviceConfiguration_FeaturesToSet(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet Feature To Set}'. + * + * + * @return the meta object for class 'Feature To Set'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet + * @generated + */ + EClass getFeatureToSet(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName Feature Name}'. + * + * + * @return the meta object for the attribute 'Feature Name'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName() + * @see #getFeatureToSet() + * @generated + */ + EAttribute getFeatureToSet_FeatureName(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue Value}'. + * + * + * @return the meta object for the containment reference 'Value'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue() + * @see #getFeatureToSet() + * @generated + */ + EReference getFeatureToSet_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue Feature Value}'. + * + * + * @return the meta object for class 'Feature Value'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue + * @generated + */ + EClass getFeatureValue(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue Dynamic Value}'. + * + * + * @return the meta object for class 'Dynamic Value'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue + * @generated + */ + EClass getDynamicValue(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue Constant Value}'. + * + * + * @return the meta object for class 'Constant Value'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue + * @generated + */ + EClass getConstantValue(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance Value Instance}'. + * + * + * @return the meta object for the containment reference 'Value Instance'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance() + * @see #getConstantValue() + * @generated + */ + EReference getConstantValue_ValueInstance(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue List Value}'. + * + * + * @return the meta object for class 'List Value'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.ListValue + * @generated + */ + EClass getListValue(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue#getValues Values}'. + * + * + * @return the meta object for the containment reference list 'Values'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.ListValue#getValues() + * @see #getListValue() + * @generated + */ + EReference getListValue_Values(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue Query Execution Value}'. + * + * + * @return the meta object for class 'Query Execution Value'. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue + * @generated + */ + EClass getQueryExecutionValue(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SetValuesAdviceFactory getSetValuesAdviceFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getSetValuesAdviceConfiguration() + * @generated + */ + EClass SET_VALUES_ADVICE_CONFIGURATION = eINSTANCE.getSetValuesAdviceConfiguration(); + + /** + * The meta object literal for the 'Features To Set' containment reference list feature. + * + * + * @generated + */ + EReference SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET = eINSTANCE.getSetValuesAdviceConfiguration_FeaturesToSet(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl Feature To Set}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureToSet() + * @generated + */ + EClass FEATURE_TO_SET = eINSTANCE.getFeatureToSet(); + + /** + * The meta object literal for the 'Feature Name' attribute feature. + * + * + * @generated + */ + EAttribute FEATURE_TO_SET__FEATURE_NAME = eINSTANCE.getFeatureToSet_FeatureName(); + + /** + * The meta object literal for the 'Value' containment reference feature. + * + * + * @generated + */ + EReference FEATURE_TO_SET__VALUE = eINSTANCE.getFeatureToSet_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl Feature Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureValue() + * @generated + */ + EClass FEATURE_VALUE = eINSTANCE.getFeatureValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl Dynamic Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getDynamicValue() + * @generated + */ + EClass DYNAMIC_VALUE = eINSTANCE.getDynamicValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl Constant Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getConstantValue() + * @generated + */ + EClass CONSTANT_VALUE = eINSTANCE.getConstantValue(); + + /** + * The meta object literal for the 'Value Instance' containment reference feature. + * + * + * @generated + */ + EReference CONSTANT_VALUE__VALUE_INSTANCE = eINSTANCE.getConstantValue_ValueInstance(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl List Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getListValue() + * @generated + */ + EClass LIST_VALUE = eINSTANCE.getListValue(); + + /** + * The meta object literal for the 'Values' containment reference list feature. + * + * + * @generated + */ + EReference LIST_VALUE__VALUES = eINSTANCE.getListValue_Values(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl Query Execution Value}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl + * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getQueryExecutionValue() + * @generated + */ + EClass QUERY_EXECUTION_VALUE = eINSTANCE.getQueryExecutionValue(); + + } + +} //SetValuesAdvicePackage diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java new file mode 100644 index 00000000000..2e87bf3d248 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java @@ -0,0 +1,186 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * An implementation of the model object 'Constant Value'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl#getValueInstance Value Instance}
  • + *
+ * + * @generated + */ +public class ConstantValueImpl extends FeatureValueImpl implements ConstantValue { + /** + * The cached value of the '{@link #getValueInstance() Value Instance}' containment reference. + * + * + * @see #getValueInstance() + * @generated + * @ordered + */ + protected ValueSpecification valueInstance; + + /** + * + * + * @generated + */ + protected ConstantValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.CONSTANT_VALUE; + } + + /** + * + * + * @generated + */ + public ValueSpecification getValueInstance() { + return valueInstance; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValueInstance(ValueSpecification newValueInstance, NotificationChain msgs) { + ValueSpecification oldValueInstance = valueInstance; + valueInstance = newValueInstance; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, oldValueInstance, newValueInstance); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValueInstance(ValueSpecification newValueInstance) { + if (newValueInstance != valueInstance) { + NotificationChain msgs = null; + if (valueInstance != null) + msgs = ((InternalEObject)valueInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); + if (newValueInstance != null) + msgs = ((InternalEObject)newValueInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); + msgs = basicSetValueInstance(newValueInstance, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, newValueInstance, newValueInstance)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + return basicSetValueInstance(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + return getValueInstance(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + setValueInstance((ValueSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + setValueInstance((ValueSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + return valueInstance != null; + } + return super.eIsSet(featureID); + } + +} //ConstantValueImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java new file mode 100644 index 00000000000..e204d86c803 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java @@ -0,0 +1,47 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * + * An implementation of the model object 'Dynamic Value'. + * + * + * @generated + */ +public abstract class DynamicValueImpl extends FeatureValueImpl implements DynamicValue { + /** + * + * + * @generated + */ + protected DynamicValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.DYNAMIC_VALUE; + } + +} //DynamicValueImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java new file mode 100644 index 00000000000..45fbd7e49ea --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java @@ -0,0 +1,254 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet; +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * + * An implementation of the model object 'Feature To Set'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl#getFeatureName Feature Name}
  • + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class FeatureToSetImpl extends EObjectImpl implements FeatureToSet { + /** + * The default value of the '{@link #getFeatureName() Feature Name}' attribute. + * + * + * @see #getFeatureName() + * @generated + * @ordered + */ + protected static final String FEATURE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFeatureName() Feature Name}' attribute. + * + * + * @see #getFeatureName() + * @generated + * @ordered + */ + protected String featureName = FEATURE_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getValue() Value}' containment reference. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected FeatureValue value; + + /** + * + * + * @generated + */ + protected FeatureToSetImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.FEATURE_TO_SET; + } + + /** + * + * + * @generated + */ + public String getFeatureName() { + return featureName; + } + + /** + * + * + * @generated + */ + public void setFeatureName(String newFeatureName) { + String oldFeatureName = featureName; + featureName = newFeatureName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME, oldFeatureName, featureName)); + } + + /** + * + * + * @generated + */ + public FeatureValue getValue() { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValue(FeatureValue newValue, NotificationChain msgs) { + FeatureValue oldValue = value; + value = newValue; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, oldValue, newValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValue(FeatureValue newValue) { + if (newValue != value) { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, null, msgs); + msgs = basicSetValue(newValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, newValue, newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + return getFeatureName(); + case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + setFeatureName((String)newValue); + return; + case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE: + setValue((FeatureValue)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + setFeatureName(FEATURE_NAME_EDEFAULT); + return; + case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE: + setValue((FeatureValue)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + return FEATURE_NAME_EDEFAULT == null ? featureName != null : !FEATURE_NAME_EDEFAULT.equals(featureName); + case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (featureName: "); + result.append(featureName); + result.append(')'); + return result.toString(); + } + +} //FeatureToSetImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java new file mode 100644 index 00000000000..5458fb8b2dd --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java @@ -0,0 +1,49 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * + * An implementation of the model object 'Feature Value'. + * + * + * @generated + */ +public abstract class FeatureValueImpl extends EObjectImpl implements FeatureValue { + /** + * + * + * @generated + */ + protected FeatureValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.FEATURE_VALUE; + } + +} //FeatureValueImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java new file mode 100644 index 00000000000..fdac4a7810c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java @@ -0,0 +1,160 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.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.types.advices.values.FeatureValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.ListValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * + * An implementation of the model object 'List Value'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl#getValues Values}
  • + *
+ * + * @generated + */ +public class ListValueImpl extends FeatureValueImpl implements ListValue { + /** + * The cached value of the '{@link #getValues() Values}' containment reference list. + * + * + * @see #getValues() + * @generated + * @ordered + */ + protected EList values; + + /** + * + * + * @generated + */ + protected ListValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.LIST_VALUE; + } + + /** + * + * + * @generated + */ + public EList getValues() { + if (values == null) { + values = new EObjectContainmentEList(FeatureValue.class, this, SetValuesAdvicePackage.LIST_VALUE__VALUES); + } + return values; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SetValuesAdvicePackage.LIST_VALUE__VALUES: + return ((InternalEList)getValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SetValuesAdvicePackage.LIST_VALUE__VALUES: + return getValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SetValuesAdvicePackage.LIST_VALUE__VALUES: + getValues().clear(); + getValues().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.LIST_VALUE__VALUES: + getValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.LIST_VALUE__VALUES: + return values != null && !values.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ListValueImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java new file mode 100644 index 00000000000..974e83b77f9 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java @@ -0,0 +1,47 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * + * An implementation of the model object 'Query Execution Value'. + * + * + * @generated + */ +public class QueryExecutionValueImpl extends DynamicValueImpl implements QueryExecutionValue { + /** + * + * + * @generated + */ + protected QueryExecutionValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.QUERY_EXECUTION_VALUE; + } + +} //QueryExecutionValueImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java new file mode 100644 index 00000000000..1345c934375 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java @@ -0,0 +1,162 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.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.types.advices.values.FeatureToSet; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +import org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl#getFeaturesToSet Features To Set}
  • + *
+ * + * @generated + */ +public class SetValuesAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements SetValuesAdviceConfiguration { + /** + * The cached value of the '{@link #getFeaturesToSet() Features To Set}' containment reference list. + * + * + * @see #getFeaturesToSet() + * @generated + * @ordered + */ + protected EList featuresToSet; + + /** + * + * + * @generated + */ + protected SetValuesAdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetValuesAdvicePackage.Literals.SET_VALUES_ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getFeaturesToSet() { + if (featuresToSet == null) { + featuresToSet = new EObjectContainmentEList(FeatureToSet.class, this, SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET); + } + return featuresToSet; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: + return ((InternalEList)getFeaturesToSet()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: + return getFeaturesToSet(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: + getFeaturesToSet().clear(); + getFeaturesToSet().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: + getFeaturesToSet().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: + return featuresToSet != null && !featuresToSet.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SetValuesAdviceConfigurationImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java new file mode 100644 index 00000000000..884a0f1dab3 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java @@ -0,0 +1,149 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.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.types.advices.values.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SetValuesAdviceFactoryImpl extends EFactoryImpl implements SetValuesAdviceFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SetValuesAdviceFactory init() { + try { + SetValuesAdviceFactory theSetValuesAdviceFactory = (SetValuesAdviceFactory)EPackage.Registry.INSTANCE.getEFactory(SetValuesAdvicePackage.eNS_URI); + if (theSetValuesAdviceFactory != null) { + return theSetValuesAdviceFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SetValuesAdviceFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SetValuesAdviceFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION: return createSetValuesAdviceConfiguration(); + case SetValuesAdvicePackage.FEATURE_TO_SET: return createFeatureToSet(); + case SetValuesAdvicePackage.CONSTANT_VALUE: return createConstantValue(); + case SetValuesAdvicePackage.LIST_VALUE: return createListValue(); + case SetValuesAdvicePackage.QUERY_EXECUTION_VALUE: return createQueryExecutionValue(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SetValuesAdviceConfiguration createSetValuesAdviceConfiguration() { + SetValuesAdviceConfigurationImpl setValuesAdviceConfiguration = new SetValuesAdviceConfigurationImpl(); + return setValuesAdviceConfiguration; + } + + /** + * + * + * @generated + */ + public FeatureToSet createFeatureToSet() { + FeatureToSetImpl featureToSet = new FeatureToSetImpl(); + return featureToSet; + } + + /** + * + * + * @generated + */ + public ConstantValue createConstantValue() { + ConstantValueImpl constantValue = new ConstantValueImpl(); + return constantValue; + } + + /** + * + * + * @generated + */ + public ListValue createListValue() { + ListValueImpl listValue = new ListValueImpl(); + return listValue; + } + + /** + * + * + * @generated + */ + public QueryExecutionValue createQueryExecutionValue() { + QueryExecutionValueImpl queryExecutionValue = new QueryExecutionValueImpl(); + return queryExecutionValue; + } + + /** + * + * + * @generated + */ + public SetValuesAdvicePackage getSetValuesAdvicePackage() { + return (SetValuesAdvicePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SetValuesAdvicePackage getPackage() { + return SetValuesAdvicePackage.eINSTANCE; + } + +} //SetValuesAdviceFactoryImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java new file mode 100644 index 00000000000..8f6c95804c1 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java @@ -0,0 +1,377 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.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.types.advices.values.ConstantValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet; +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.ListValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.uml2.uml.UMLPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class SetValuesAdvicePackageImpl extends EPackageImpl implements SetValuesAdvicePackage { + /** + * + * + * @generated + */ + private EClass setValuesAdviceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass featureToSetEClass = null; + + /** + * + * + * @generated + */ + private EClass featureValueEClass = null; + + /** + * + * + * @generated + */ + private EClass dynamicValueEClass = null; + + /** + * + * + * @generated + */ + private EClass constantValueEClass = null; + + /** + * + * + * @generated + */ + private EClass listValueEClass = null; + + /** + * + * + * @generated + */ + private EClass queryExecutionValueEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#eNS_URI + * @see #init() + * @generated + */ + private SetValuesAdvicePackageImpl() { + super(eNS_URI, SetValuesAdviceFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link SetValuesAdvicePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static SetValuesAdvicePackage init() { + if (isInited) return (SetValuesAdvicePackage)EPackage.Registry.INSTANCE.getEPackage(SetValuesAdvicePackage.eNS_URI); + + // Obtain or create and register package + SetValuesAdvicePackageImpl theSetValuesAdvicePackage = (SetValuesAdvicePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SetValuesAdvicePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SetValuesAdvicePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ElementTypesConfigurationsPackage.eINSTANCE.eClass(); + UMLPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theSetValuesAdvicePackage.createPackageContents(); + + // Initialize created meta-data + theSetValuesAdvicePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSetValuesAdvicePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SetValuesAdvicePackage.eNS_URI, theSetValuesAdvicePackage); + return theSetValuesAdvicePackage; + } + + /** + * + * + * @generated + */ + public EClass getSetValuesAdviceConfiguration() { + return setValuesAdviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getSetValuesAdviceConfiguration_FeaturesToSet() { + return (EReference)setValuesAdviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFeatureToSet() { + return featureToSetEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFeatureToSet_FeatureName() { + return (EAttribute)featureToSetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getFeatureToSet_Value() { + return (EReference)featureToSetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFeatureValue() { + return featureValueEClass; + } + + /** + * + * + * @generated + */ + public EClass getDynamicValue() { + return dynamicValueEClass; + } + + /** + * + * + * @generated + */ + public EClass getConstantValue() { + return constantValueEClass; + } + + /** + * + * + * @generated + */ + public EReference getConstantValue_ValueInstance() { + return (EReference)constantValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getListValue() { + return listValueEClass; + } + + /** + * + * + * @generated + */ + public EReference getListValue_Values() { + return (EReference)listValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getQueryExecutionValue() { + return queryExecutionValueEClass; + } + + /** + * + * + * @generated + */ + public SetValuesAdviceFactory getSetValuesAdviceFactory() { + return (SetValuesAdviceFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + setValuesAdviceConfigurationEClass = createEClass(SET_VALUES_ADVICE_CONFIGURATION); + createEReference(setValuesAdviceConfigurationEClass, SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET); + + featureToSetEClass = createEClass(FEATURE_TO_SET); + createEAttribute(featureToSetEClass, FEATURE_TO_SET__FEATURE_NAME); + createEReference(featureToSetEClass, FEATURE_TO_SET__VALUE); + + featureValueEClass = createEClass(FEATURE_VALUE); + + dynamicValueEClass = createEClass(DYNAMIC_VALUE); + + constantValueEClass = createEClass(CONSTANT_VALUE); + createEReference(constantValueEClass, CONSTANT_VALUE__VALUE_INSTANCE); + + listValueEClass = createEClass(LIST_VALUE); + createEReference(listValueEClass, LIST_VALUE__VALUES); + + queryExecutionValueEClass = createEClass(QUERY_EXECUTION_VALUE); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + setValuesAdviceConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getAbstractAdviceBindingConfiguration()); + dynamicValueEClass.getESuperTypes().add(this.getFeatureValue()); + constantValueEClass.getESuperTypes().add(this.getFeatureValue()); + listValueEClass.getESuperTypes().add(this.getFeatureValue()); + queryExecutionValueEClass.getESuperTypes().add(this.getDynamicValue()); + + // Initialize classes and features; add operations and parameters + initEClass(setValuesAdviceConfigurationEClass, SetValuesAdviceConfiguration.class, "SetValuesAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSetValuesAdviceConfiguration_FeaturesToSet(), this.getFeatureToSet(), null, "featuresToSet", null, 0, -1, SetValuesAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(featureToSetEClass, FeatureToSet.class, "FeatureToSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFeatureToSet_FeatureName(), theEcorePackage.getEString(), "featureName", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFeatureToSet_Value(), this.getFeatureValue(), null, "value", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(featureValueEClass, FeatureValue.class, "FeatureValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(dynamicValueEClass, DynamicValue.class, "DynamicValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(constantValueEClass, ConstantValue.class, "ConstantValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConstantValue_ValueInstance(), theUMLPackage.getValueSpecification(), null, "valueInstance", null, 0, 1, ConstantValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(listValueEClass, ListValue.class, "ListValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getListValue_Values(), this.getFeatureValue(), null, "values", null, 0, -1, ListValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(queryExecutionValueEClass, QueryExecutionValue.class, "QueryExecutionValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //SetValuesAdvicePackageImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java new file mode 100644 index 00000000000..1c17bc4e4d6 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java @@ -0,0 +1,223 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +import org.eclipse.uml2.uml.UMLFactory; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue} object. + * + * + * @generated + */ +public class ConstantValueItemProvider extends FeatureValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ConstantValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ConstantValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ConstantValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_ConstantValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ConstantValue.class)) { + case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createOpaqueExpression())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createExpression())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createStringExpression())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createInstanceValue())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createTimeExpression())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createDuration())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createInterval())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createDurationInterval())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralBoolean())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralInteger())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralNull())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralReal())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralString())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralUnlimitedNatural())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createTimeInterval())); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java new file mode 100644 index 00000000000..e688855181a --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java @@ -0,0 +1,104 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue} object. + * + * + * @generated + */ +public class DynamicValueItemProvider extends FeatureValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public DynamicValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns DynamicValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/DynamicValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_DynamicValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java new file mode 100644 index 00000000000..68ce38da760 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java @@ -0,0 +1,219 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet} object. + * + * + * @generated + */ +public class FeatureToSetItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureToSetItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addFeatureNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Feature Name feature. + * + * + * @generated + */ + protected void addFeatureNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_FeatureToSet_featureName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_FeatureToSet_featureName_feature", "_UI_FeatureToSet_type"), + SetValuesAdvicePackage.Literals.FEATURE_TO_SET__FEATURE_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns FeatureToSet.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureToSet")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((FeatureToSet)object).getFeatureName(); + return label == null || label.length() == 0 ? + getString("_UI_FeatureToSet_type") : + getString("_UI_FeatureToSet_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(FeatureToSet.class)) { + case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE, + SetValuesAdviceFactory.eINSTANCE.createConstantValue())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE, + SetValuesAdviceFactory.eINSTANCE.createListValue())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE, + SetValuesAdviceFactory.eINSTANCE.createQueryExecutionValue())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return SetValuesAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java new file mode 100644 index 00000000000..2dd4cc5df76 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java @@ -0,0 +1,119 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue} object. + * + * + * @generated + */ +public class FeatureValueItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_FeatureValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return SetValuesAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java new file mode 100644 index 00000000000..0371e0da16d --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java @@ -0,0 +1,162 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.advices.values.ListValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue} object. + * + * + * @generated + */ +public class ListValueItemProvider extends FeatureValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ListValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ListValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ListValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_ListValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ListValue.class)) { + case SetValuesAdvicePackage.LIST_VALUE__VALUES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES, + SetValuesAdviceFactory.eINSTANCE.createConstantValue())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES, + SetValuesAdviceFactory.eINSTANCE.createListValue())); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES, + SetValuesAdviceFactory.eINSTANCE.createQueryExecutionValue())); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java new file mode 100644 index 00000000000..132b086cb40 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java @@ -0,0 +1,104 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue} object. + * + * + * @generated + */ +public class QueryExecutionValueItemProvider extends DynamicValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public QueryExecutionValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns QueryExecutionValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/QueryExecutionValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_QueryExecutionValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..63f204c6ae5 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java @@ -0,0 +1,170 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage; + +import org.eclipse.papyrus.infra.types.provider.AbstractAdviceBindingConfigurationItemProvider; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration} object. + * + * + * @generated + */ +public class SetValuesAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public SetValuesAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(SetValuesAdvicePackage.Literals.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns SetValuesAdviceConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/SetValuesAdviceConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((SetValuesAdviceConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_SetValuesAdviceConfiguration_type") : + getString("_UI_SetValuesAdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(SetValuesAdviceConfiguration.class)) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (SetValuesAdvicePackage.Literals.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET, + SetValuesAdviceFactory.eINSTANCE.createFeatureToSet())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return SetValuesAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java new file mode 100644 index 00000000000..4d2ce3f144c --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java @@ -0,0 +1,108 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +import org.eclipse.uml2.uml.edit.UMLEditPlugin; + +/** + * This is the central singleton for the SetValuesAdvice edit plugin. + * + * + * @generated + */ +public final class SetValuesAdviceEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final SetValuesAdviceEditPlugin INSTANCE = new SetValuesAdviceEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public SetValuesAdviceEditPlugin() { + super + (new ResourceLocator [] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + UMLEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java new file mode 100644 index 00000000000..36424e29805 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java @@ -0,0 +1,409 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory; + +import org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceAdapterFactory; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class SetValuesAdviceItemProviderAdapterFactory extends SetValuesAdviceAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public SetValuesAdviceItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration} instances. + * + * + * @generated + */ + protected SetValuesAdviceConfigurationItemProvider setValuesAdviceConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createSetValuesAdviceConfigurationAdapter() { + if (setValuesAdviceConfigurationItemProvider == null) { + setValuesAdviceConfigurationItemProvider = new SetValuesAdviceConfigurationItemProvider(this); + } + + return setValuesAdviceConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet} instances. + * + * + * @generated + */ + protected FeatureToSetItemProvider featureToSetItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet}. + * + * + * @generated + */ + @Override + public Adapter createFeatureToSetAdapter() { + if (featureToSetItemProvider == null) { + featureToSetItemProvider = new FeatureToSetItemProvider(this); + } + + return featureToSetItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue} instances. + * + * + * @generated + */ + protected ConstantValueItemProvider constantValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue}. + * + * + * @generated + */ + @Override + public Adapter createConstantValueAdapter() { + if (constantValueItemProvider == null) { + constantValueItemProvider = new ConstantValueItemProvider(this); + } + + return constantValueItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue} instances. + * + * + * @generated + */ + protected ListValueItemProvider listValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue}. + * + * + * @generated + */ + @Override + public Adapter createListValueAdapter() { + if (listValueItemProvider == null) { + listValueItemProvider = new ListValueItemProvider(this); + } + + return listValueItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue} instances. + * + * + * @generated + */ + protected QueryExecutionValueItemProvider queryExecutionValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue}. + * + * + * @generated + */ + @Override + public Adapter createQueryExecutionValueAdapter() { + if (queryExecutionValueItemProvider == null) { + queryExecutionValueItemProvider = new QueryExecutionValueItemProvider(this); + } + + return queryExecutionValueItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (setValuesAdviceConfigurationItemProvider != null) setValuesAdviceConfigurationItemProvider.dispose(); + if (featureToSetItemProvider != null) featureToSetItemProvider.dispose(); + if (constantValueItemProvider != null) constantValueItemProvider.dispose(); + if (listValueItemProvider != null) listValueItemProvider.dispose(); + if (queryExecutionValueItemProvider != null) queryExecutionValueItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link ElementTypesConfigurationsPackage}. + * + * + * @generated + */ + public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends ElementTypesConfigurationsSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, + SetValuesAdviceFactory.eINSTANCE.createSetValuesAdviceConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return SetValuesAdviceEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java new file mode 100644 index 00000000000..eef8a34eb33 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java @@ -0,0 +1,315 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.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.types.advices.values.*; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage + * @generated + */ +public class SetValuesAdviceAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SetValuesAdvicePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SetValuesAdviceAdapterFactory() { + if (modelPackage == null) { + modelPackage = SetValuesAdvicePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected SetValuesAdviceSwitch modelSwitch = + new SetValuesAdviceSwitch() { + @Override + public Adapter caseSetValuesAdviceConfiguration(SetValuesAdviceConfiguration object) { + return createSetValuesAdviceConfigurationAdapter(); + } + @Override + public Adapter caseFeatureToSet(FeatureToSet object) { + return createFeatureToSetAdapter(); + } + @Override + public Adapter caseFeatureValue(FeatureValue object) { + return createFeatureValueAdapter(); + } + @Override + public Adapter caseDynamicValue(DynamicValue object) { + return createDynamicValueAdapter(); + } + @Override + public Adapter caseConstantValue(ConstantValue object) { + return createConstantValueAdapter(); + } + @Override + public Adapter caseListValue(ListValue object) { + return createListValueAdapter(); + } + @Override + public Adapter caseQueryExecutionValue(QueryExecutionValue object) { + return createQueryExecutionValueAdapter(); + } + @Override + public Adapter caseConfigurationElement(ConfigurationElement object) { + return createConfigurationElementAdapter(); + } + @Override + public Adapter caseAdviceConfiguration(AdviceConfiguration object) { + return createAdviceConfigurationAdapter(); + } + @Override + public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return createIdentifiedConfigurationAdapter(); + } + @Override + public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return createAbstractAdviceBindingConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.types.advices.values.SetValuesAdviceConfiguration Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration + * @generated + */ + public Adapter createSetValuesAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet Feature To Set}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet + * @generated + */ + public Adapter createFeatureToSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue Feature Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue + * @generated + */ + public Adapter createFeatureValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue Dynamic Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue + * @generated + */ + public Adapter createDynamicValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue Constant Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue + * @generated + */ + public Adapter createConstantValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue List Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.ListValue + * @generated + */ + public Adapter createListValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue Query Execution Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue + * @generated + */ + public Adapter createQueryExecutionValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + public Adapter createConfigurationElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration + * @generated + */ + public Adapter createAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + public Adapter createIdentifiedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration + * @generated + */ + public Adapter createAbstractAdviceBindingConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //SetValuesAdviceAdapterFactory diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java new file mode 100644 index 00000000000..2878ed651fa --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceResourceImpl + * @generated + */ +public class SetValuesAdviceResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SetValuesAdviceResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new SetValuesAdviceResourceImpl(uri); + return result; + } + +} //SetValuesAdviceResourceFactoryImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java new file mode 100644 index 00000000000..4aba894f779 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceResourceFactoryImpl + * @generated + */ +public class SetValuesAdviceResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SetValuesAdviceResourceImpl(URI uri) { + super(uri); + } + +} //SetValuesAdviceResourceImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java new file mode 100644 index 00000000000..8f0981ee0b0 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java @@ -0,0 +1,320 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.advices.values.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.types.advices.values.*; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage + * @generated + */ +public class SetValuesAdviceSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static SetValuesAdvicePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SetValuesAdviceSwitch() { + if (modelPackage == null) { + modelPackage = SetValuesAdvicePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION: { + SetValuesAdviceConfiguration setValuesAdviceConfiguration = (SetValuesAdviceConfiguration)theEObject; + T result = caseSetValuesAdviceConfiguration(setValuesAdviceConfiguration); + if (result == null) result = caseAbstractAdviceBindingConfiguration(setValuesAdviceConfiguration); + if (result == null) result = caseAdviceConfiguration(setValuesAdviceConfiguration); + if (result == null) result = caseIdentifiedConfiguration(setValuesAdviceConfiguration); + if (result == null) result = caseConfigurationElement(setValuesAdviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SetValuesAdvicePackage.FEATURE_TO_SET: { + FeatureToSet featureToSet = (FeatureToSet)theEObject; + T result = caseFeatureToSet(featureToSet); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SetValuesAdvicePackage.FEATURE_VALUE: { + FeatureValue featureValue = (FeatureValue)theEObject; + T result = caseFeatureValue(featureValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SetValuesAdvicePackage.DYNAMIC_VALUE: { + DynamicValue dynamicValue = (DynamicValue)theEObject; + T result = caseDynamicValue(dynamicValue); + if (result == null) result = caseFeatureValue(dynamicValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SetValuesAdvicePackage.CONSTANT_VALUE: { + ConstantValue constantValue = (ConstantValue)theEObject; + T result = caseConstantValue(constantValue); + if (result == null) result = caseFeatureValue(constantValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SetValuesAdvicePackage.LIST_VALUE: { + ListValue listValue = (ListValue)theEObject; + T result = caseListValue(listValue); + if (result == null) result = caseFeatureValue(listValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SetValuesAdvicePackage.QUERY_EXECUTION_VALUE: { + QueryExecutionValue queryExecutionValue = (QueryExecutionValue)theEObject; + T result = caseQueryExecutionValue(queryExecutionValue); + if (result == null) result = caseDynamicValue(queryExecutionValue); + if (result == null) result = caseFeatureValue(queryExecutionValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSetValuesAdviceConfiguration(SetValuesAdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Feature To Set'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Feature To Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFeatureToSet(FeatureToSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Feature Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Feature Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFeatureValue(FeatureValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dynamic Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dynamic Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDynamicValue(DynamicValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Constant Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Constant Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConstantValue(ConstantValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'List Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'List Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseListValue(ListValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Query Execution Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Query Execution Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseQueryExecutionValue(QueryExecutionValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfigurationElement(ConfigurationElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAdviceConfiguration(AdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Identified Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Identified Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //SetValuesAdviceSwitch diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java new file mode 100644 index 00000000000..c958a836856 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java @@ -0,0 +1,114 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hierarchy Permission'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType Container Type}
  • + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted Permitted}
  • + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict Strict}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission() + * @model + * @generated + */ +public interface HierarchyPermission extends EObject { + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission_ContainerType() + * @model required="true" + * @generated + */ + String getContainerType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + void setContainerType(String value); + + /** + * Returns the value of the 'Permitted' attribute. + * + *

+ * If the meaning of the 'Permitted' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Permitted' attribute. + * @see #setPermitted(boolean) + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission_Permitted() + * @model required="true" + * @generated + */ + boolean isPermitted(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted Permitted}' attribute. + * + * + * @param value the new value of the 'Permitted' attribute. + * @see #isPermitted() + * @generated + */ + void setPermitted(boolean value); + + /** + * Returns the value of the 'Strict' attribute. + * + *

+ * If the meaning of the 'Strict' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Strict' attribute. + * @see #setStrict(boolean) + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission_Strict() + * @model required="true" + * @generated + */ + boolean isStrict(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict Strict}' attribute. + * + * + * @param value the new value of the 'Strict' attribute. + * @see #isStrict() + * @generated + */ + void setStrict(boolean value); + +} // HierarchyPermission diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java new file mode 100644 index 00000000000..f9a65ff0996 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java @@ -0,0 +1,52 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration#getPermissions Permissions}
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getInvariantContainerRuleConfiguration() + * @model + * @generated + */ +public interface InvariantContainerRuleConfiguration extends RuleConfiguration { + /** + * Returns the value of the 'Permissions' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission}. + * + *

+ * If the meaning of the 'Permissions' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Permissions' containment reference list. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getInvariantContainerRuleConfiguration_Permissions() + * @model containment="true" + * @generated + */ + EList getPermissions(); + +} // InvariantContainerRuleConfiguration diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java new file mode 100644 index 00000000000..fb68ee93054 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java @@ -0,0 +1,61 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage + * @generated + */ +public interface InvariantContainerRuleFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + InvariantContainerRuleFactory eINSTANCE = org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleFactoryImpl.init(); + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + InvariantContainerRuleConfiguration createInvariantContainerRuleConfiguration(); + + /** + * Returns a new object of class 'Hierarchy Permission'. + * + * + * @return a new object of class 'Hierarchy Permission'. + * @generated + */ + HierarchyPermission createHierarchyPermission(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + InvariantContainerRulePackage getInvariantContainerRulePackage(); + +} //InvariantContainerRuleFactory diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java new file mode 100644 index 00000000000..aea208459f3 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java @@ -0,0 +1,305 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container; + +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.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory + * @model kind="package" + * @generated + */ +public interface InvariantContainerRulePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "container"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/types/invariantcontainerrule/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "invariantcontainerrule"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + InvariantContainerRulePackage eINSTANCE = org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getInvariantContainerRuleConfiguration() + * @generated + */ + int INVARIANT_CONTAINER_RULE_CONFIGURATION = 0; + + /** + * The feature id for the 'Permissions' containment reference list. + * + * + * @generated + * @ordered + */ + int INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int INVARIANT_CONTAINER_RULE_CONFIGURATION_FEATURE_COUNT = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int INVARIANT_CONTAINER_RULE_CONFIGURATION_OPERATION_COUNT = RuleBasedPackage.RULE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl Hierarchy Permission}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getHierarchyPermission() + * @generated + */ + int HIERARCHY_PERMISSION = 1; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + int HIERARCHY_PERMISSION__CONTAINER_TYPE = 0; + + /** + * The feature id for the 'Permitted' attribute. + * + * + * @generated + * @ordered + */ + int HIERARCHY_PERMISSION__PERMITTED = 1; + + /** + * The feature id for the 'Strict' attribute. + * + * + * @generated + * @ordered + */ + int HIERARCHY_PERMISSION__STRICT = 2; + + /** + * The number of structural features of the 'Hierarchy Permission' class. + * + * + * @generated + * @ordered + */ + int HIERARCHY_PERMISSION_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Hierarchy Permission' class. + * + * + * @generated + * @ordered + */ + int HIERARCHY_PERMISSION_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration + * @generated + */ + EClass getInvariantContainerRuleConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration#getPermissions Permissions}'. + * + * + * @return the meta object for the containment reference list 'Permissions'. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration#getPermissions() + * @see #getInvariantContainerRuleConfiguration() + * @generated + */ + EReference getInvariantContainerRuleConfiguration_Permissions(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission Hierarchy Permission}'. + * + * + * @return the meta object for class 'Hierarchy Permission'. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission + * @generated + */ + EClass getHierarchyPermission(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType Container Type}'. + * + * + * @return the meta object for the attribute 'Container Type'. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType() + * @see #getHierarchyPermission() + * @generated + */ + EAttribute getHierarchyPermission_ContainerType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted Permitted}'. + * + * + * @return the meta object for the attribute 'Permitted'. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted() + * @see #getHierarchyPermission() + * @generated + */ + EAttribute getHierarchyPermission_Permitted(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict Strict}'. + * + * + * @return the meta object for the attribute 'Strict'. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict() + * @see #getHierarchyPermission() + * @generated + */ + EAttribute getHierarchyPermission_Strict(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + InvariantContainerRuleFactory getInvariantContainerRuleFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getInvariantContainerRuleConfiguration() + * @generated + */ + EClass INVARIANT_CONTAINER_RULE_CONFIGURATION = eINSTANCE.getInvariantContainerRuleConfiguration(); + + /** + * The meta object literal for the 'Permissions' containment reference list feature. + * + * + * @generated + */ + EReference INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS = eINSTANCE.getInvariantContainerRuleConfiguration_Permissions(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl Hierarchy Permission}' class. + * + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl + * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getHierarchyPermission() + * @generated + */ + EClass HIERARCHY_PERMISSION = eINSTANCE.getHierarchyPermission(); + + /** + * The meta object literal for the 'Container Type' attribute feature. + * + * + * @generated + */ + EAttribute HIERARCHY_PERMISSION__CONTAINER_TYPE = eINSTANCE.getHierarchyPermission_ContainerType(); + + /** + * The meta object literal for the 'Permitted' attribute feature. + * + * + * @generated + */ + EAttribute HIERARCHY_PERMISSION__PERMITTED = eINSTANCE.getHierarchyPermission_Permitted(); + + /** + * The meta object literal for the 'Strict' attribute feature. + * + * + * @generated + */ + EAttribute HIERARCHY_PERMISSION__STRICT = eINSTANCE.getHierarchyPermission_Strict(); + + } + +} //InvariantContainerRulePackage diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java new file mode 100644 index 00000000000..b8e2055e715 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java @@ -0,0 +1,281 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.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.MinimalEObjectImpl; + +import org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage; + +/** + * + * An implementation of the model object 'Hierarchy Permission'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl#getContainerType Container Type}
  • + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl#isPermitted Permitted}
  • + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl#isStrict Strict}
  • + *
+ * + * @generated + */ +public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implements HierarchyPermission { + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #isPermitted() Permitted}' attribute. + * + * + * @see #isPermitted() + * @generated + * @ordered + */ + protected static final boolean PERMITTED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isPermitted() Permitted}' attribute. + * + * + * @see #isPermitted() + * @generated + * @ordered + */ + protected boolean permitted = PERMITTED_EDEFAULT; + + /** + * The default value of the '{@link #isStrict() Strict}' attribute. + * + * + * @see #isStrict() + * @generated + * @ordered + */ + protected static final boolean STRICT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isStrict() Strict}' attribute. + * + * + * @see #isStrict() + * @generated + * @ordered + */ + protected boolean strict = STRICT_EDEFAULT; + + /** + * + * + * @generated + */ + protected HierarchyPermissionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION; + } + + /** + * + * + * @generated + */ + public String getContainerType() { + return containerType; + } + + /** + * + * + * @generated + */ + public void setContainerType(String newContainerType) { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * + * + * @generated + */ + public boolean isPermitted() { + return permitted; + } + + /** + * + * + * @generated + */ + public void setPermitted(boolean newPermitted) { + boolean oldPermitted = permitted; + permitted = newPermitted; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED, oldPermitted, permitted)); + } + + /** + * + * + * @generated + */ + public boolean isStrict() { + return strict; + } + + /** + * + * + * @generated + */ + public void setStrict(boolean newStrict) { + boolean oldStrict = strict; + strict = newStrict; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT, oldStrict, strict)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: + return getContainerType(); + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED: + return isPermitted(); + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT: + return isStrict(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED: + setPermitted((Boolean)newValue); + return; + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT: + setStrict((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED: + setPermitted(PERMITTED_EDEFAULT); + return; + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT: + setStrict(STRICT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED: + return permitted != PERMITTED_EDEFAULT; + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT: + return strict != STRICT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", permitted: "); + result.append(permitted); + result.append(", strict: "); + result.append(strict); + result.append(')'); + return result.toString(); + } + +} //HierarchyPermissionImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java new file mode 100644 index 00000000000..51524ab7d72 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java @@ -0,0 +1,162 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.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.types.rules.container.HierarchyPermission; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage; + +import org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl#getPermissions Permissions}
  • + *
+ * + * @generated + */ +public class InvariantContainerRuleConfigurationImpl extends RuleConfigurationImpl implements InvariantContainerRuleConfiguration { + /** + * The cached value of the '{@link #getPermissions() Permissions}' containment reference list. + * + * + * @see #getPermissions() + * @generated + * @ordered + */ + protected EList permissions; + + /** + * + * + * @generated + */ + protected InvariantContainerRuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InvariantContainerRulePackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getPermissions() { + if (permissions == null) { + permissions = new EObjectContainmentEList(HierarchyPermission.class, this, InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS); + } + return permissions; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: + return ((InternalEList)getPermissions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: + return getPermissions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: + getPermissions().clear(); + getPermissions().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: + getPermissions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: + return permissions != null && !permissions.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //InvariantContainerRuleConfigurationImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java new file mode 100644 index 00000000000..e806ed8cf5a --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java @@ -0,0 +1,116 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.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.types.rules.container.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class InvariantContainerRuleFactoryImpl extends EFactoryImpl implements InvariantContainerRuleFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static InvariantContainerRuleFactory init() { + try { + InvariantContainerRuleFactory theInvariantContainerRuleFactory = (InvariantContainerRuleFactory)EPackage.Registry.INSTANCE.getEFactory(InvariantContainerRulePackage.eNS_URI); + if (theInvariantContainerRuleFactory != null) { + return theInvariantContainerRuleFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new InvariantContainerRuleFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public InvariantContainerRuleFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION: return createInvariantContainerRuleConfiguration(); + case InvariantContainerRulePackage.HIERARCHY_PERMISSION: return createHierarchyPermission(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public InvariantContainerRuleConfiguration createInvariantContainerRuleConfiguration() { + InvariantContainerRuleConfigurationImpl invariantContainerRuleConfiguration = new InvariantContainerRuleConfigurationImpl(); + return invariantContainerRuleConfiguration; + } + + /** + * + * + * @generated + */ + public HierarchyPermission createHierarchyPermission() { + HierarchyPermissionImpl hierarchyPermission = new HierarchyPermissionImpl(); + return hierarchyPermission; + } + + /** + * + * + * @generated + */ + public InvariantContainerRulePackage getInvariantContainerRulePackage() { + return (InvariantContainerRulePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static InvariantContainerRulePackage getPackage() { + return InvariantContainerRulePackage.eINSTANCE; + } + +} //InvariantContainerRuleFactoryImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java new file mode 100644 index 00000000000..7ba5cdde554 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java @@ -0,0 +1,253 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.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.types.rules.container.HierarchyPermission; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class InvariantContainerRulePackageImpl extends EPackageImpl implements InvariantContainerRulePackage { + /** + * + * + * @generated + */ + private EClass invariantContainerRuleConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass hierarchyPermissionEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#eNS_URI + * @see #init() + * @generated + */ + private InvariantContainerRulePackageImpl() { + super(eNS_URI, InvariantContainerRuleFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link InvariantContainerRulePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static InvariantContainerRulePackage init() { + if (isInited) return (InvariantContainerRulePackage)EPackage.Registry.INSTANCE.getEPackage(InvariantContainerRulePackage.eNS_URI); + + // Obtain or create and register package + InvariantContainerRulePackageImpl theInvariantContainerRulePackage = (InvariantContainerRulePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantContainerRulePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantContainerRulePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + RuleBasedPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theInvariantContainerRulePackage.createPackageContents(); + + // Initialize created meta-data + theInvariantContainerRulePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theInvariantContainerRulePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(InvariantContainerRulePackage.eNS_URI, theInvariantContainerRulePackage); + return theInvariantContainerRulePackage; + } + + /** + * + * + * @generated + */ + public EClass getInvariantContainerRuleConfiguration() { + return invariantContainerRuleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getInvariantContainerRuleConfiguration_Permissions() { + return (EReference)invariantContainerRuleConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHierarchyPermission() { + return hierarchyPermissionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHierarchyPermission_ContainerType() { + return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHierarchyPermission_Permitted() { + return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHierarchyPermission_Strict() { + return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public InvariantContainerRuleFactory getInvariantContainerRuleFactory() { + return (InvariantContainerRuleFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + invariantContainerRuleConfigurationEClass = createEClass(INVARIANT_CONTAINER_RULE_CONFIGURATION); + createEReference(invariantContainerRuleConfigurationEClass, INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS); + + hierarchyPermissionEClass = createEClass(HIERARCHY_PERMISSION); + createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__CONTAINER_TYPE); + createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__PERMITTED); + createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__STRICT); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + RuleBasedPackage theRuleBasedPackage = (RuleBasedPackage)EPackage.Registry.INSTANCE.getEPackage(RuleBasedPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + invariantContainerRuleConfigurationEClass.getESuperTypes().add(theRuleBasedPackage.getRuleConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(invariantContainerRuleConfigurationEClass, InvariantContainerRuleConfiguration.class, "InvariantContainerRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getInvariantContainerRuleConfiguration_Permissions(), this.getHierarchyPermission(), null, "permissions", null, 0, -1, InvariantContainerRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hierarchyPermissionEClass, HierarchyPermission.class, "HierarchyPermission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHierarchyPermission_ContainerType(), theEcorePackage.getEString(), "containerType", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHierarchyPermission_Permitted(), theEcorePackage.getEBoolean(), "permitted", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHierarchyPermission_Strict(), theEcorePackage.getEBoolean(), "strict", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //InvariantContainerRulePackageImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java new file mode 100644 index 00000000000..3782ac2db78 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java @@ -0,0 +1,216 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission} object. + * + * + * @generated + */ +public class HierarchyPermissionItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public HierarchyPermissionItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addContainerTypePropertyDescriptor(object); + addPermittedPropertyDescriptor(object); + addStrictPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Container Type feature. + * + * + * @generated + */ + protected void addContainerTypePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_HierarchyPermission_containerType_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_containerType_feature", "_UI_HierarchyPermission_type"), + InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION__CONTAINER_TYPE, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Permitted feature. + * + * + * @generated + */ + protected void addPermittedPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_HierarchyPermission_permitted_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_permitted_feature", "_UI_HierarchyPermission_type"), + InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION__PERMITTED, + true, + false, + false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Strict feature. + * + * + * @generated + */ + protected void addStrictPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_HierarchyPermission_strict_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_strict_feature", "_UI_HierarchyPermission_type"), + InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION__STRICT, + true, + false, + false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns HierarchyPermission.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/HierarchyPermission")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((HierarchyPermission)object).getContainerType(); + return label == null || label.length() == 0 ? + getString("_UI_HierarchyPermission_type") : + getString("_UI_HierarchyPermission_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(HierarchyPermission.class)) { + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED: + case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return InvariantContainerRuleEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java new file mode 100644 index 00000000000..a6209fc9d28 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java @@ -0,0 +1,167 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory; +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage; + +import org.eclipse.papyrus.infra.types.rulebased.provider.RuleConfigurationItemProvider; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration} object. + * + * + * @generated + */ +public class InvariantContainerRuleConfigurationItemProvider extends RuleConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public InvariantContainerRuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(InvariantContainerRulePackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns InvariantContainerRuleConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/InvariantContainerRuleConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_InvariantContainerRuleConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(InvariantContainerRuleConfiguration.class)) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (InvariantContainerRulePackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS, + InvariantContainerRuleFactory.eINSTANCE.createHierarchyPermission())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return InvariantContainerRuleEditPlugin.INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java new file mode 100644 index 00000000000..88479e4bda8 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java @@ -0,0 +1,108 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +import org.eclipse.papyrus.infra.types.rulebased.provider.RuleBasedEditPlugin; + +/** + * This is the central singleton for the InvariantContainerRule edit plugin. + * + * + * @generated + */ +public final class InvariantContainerRuleEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final InvariantContainerRuleEditPlugin INSTANCE = new InvariantContainerRuleEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public InvariantContainerRuleEditPlugin() { + super + (new ResourceLocator [] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + RuleBasedEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java new file mode 100644 index 00000000000..d41f5134c93 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java @@ -0,0 +1,353 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory; + +import org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleAdapterFactory; + +import org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; + +import org.eclipse.papyrus.infra.types.rulebased.util.RuleBasedSwitch; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class InvariantContainerRuleItemProviderAdapterFactory extends InvariantContainerRuleAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public InvariantContainerRuleItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration} instances. + * + * + * @generated + */ + protected InvariantContainerRuleConfigurationItemProvider invariantContainerRuleConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createInvariantContainerRuleConfigurationAdapter() { + if (invariantContainerRuleConfigurationItemProvider == null) { + invariantContainerRuleConfigurationItemProvider = new InvariantContainerRuleConfigurationItemProvider(this); + } + + return invariantContainerRuleConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission} instances. + * + * + * @generated + */ + protected HierarchyPermissionItemProvider hierarchyPermissionItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission}. + * + * + * @generated + */ + @Override + public Adapter createHierarchyPermissionAdapter() { + if (hierarchyPermissionItemProvider == null) { + hierarchyPermissionItemProvider = new HierarchyPermissionItemProvider(this); + } + + return hierarchyPermissionItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (invariantContainerRuleConfigurationItemProvider != null) invariantContainerRuleConfigurationItemProvider.dispose(); + if (hierarchyPermissionItemProvider != null) hierarchyPermissionItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link RuleBasedPackage}. + * + * + * @generated + */ + public static class RuleBasedChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends RuleBasedSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseRuleBasedTypeConfiguration(RuleBasedTypeConfiguration object) { + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, + InvariantContainerRuleFactory.eINSTANCE.createInvariantContainerRuleConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + @Override + public Object caseCompositeRuleConfiguration(CompositeRuleConfiguration object) { + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES, + InvariantContainerRuleFactory.eINSTANCE.createInvariantContainerRuleConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return InvariantContainerRuleEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java new file mode 100644 index 00000000000..42d74d71e86 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java @@ -0,0 +1,168 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.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.types.rules.container.*; + +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage + * @generated + */ +public class InvariantContainerRuleAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static InvariantContainerRulePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public InvariantContainerRuleAdapterFactory() { + if (modelPackage == null) { + modelPackage = InvariantContainerRulePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected InvariantContainerRuleSwitch modelSwitch = + new InvariantContainerRuleSwitch() { + @Override + public Adapter caseInvariantContainerRuleConfiguration(InvariantContainerRuleConfiguration object) { + return createInvariantContainerRuleConfigurationAdapter(); + } + @Override + public Adapter caseHierarchyPermission(HierarchyPermission object) { + return createHierarchyPermissionAdapter(); + } + @Override + public Adapter caseRuleConfiguration(RuleConfiguration object) { + return createRuleConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.types.rules.container.InvariantContainerRuleConfiguration Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration + * @generated + */ + public Adapter createInvariantContainerRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission Hierarchy Permission}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission + * @generated + */ + public Adapter createHierarchyPermissionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration + * @generated + */ + public Adapter createRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //InvariantContainerRuleAdapterFactory diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java new file mode 100644 index 00000000000..e0fa0a8c6ea --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleResourceImpl + * @generated + */ +public class InvariantContainerRuleResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public InvariantContainerRuleResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new InvariantContainerRuleResourceImpl(uri); + return result; + } + +} //InvariantContainerRuleResourceFactoryImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java new file mode 100644 index 00000000000..5e1deb77e11 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleResourceFactoryImpl + * @generated + */ +public class InvariantContainerRuleResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public InvariantContainerRuleResourceImpl(URI uri) { + super(uri); + } + +} //InvariantContainerRuleResourceImpl diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java new file mode 100644 index 00000000000..23df2e584ba --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java @@ -0,0 +1,159 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.emf.types.rules.container.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.types.rules.container.*; + +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage + * @generated + */ +public class InvariantContainerRuleSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static InvariantContainerRulePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public InvariantContainerRuleSwitch() { + if (modelPackage == null) { + modelPackage = InvariantContainerRulePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION: { + InvariantContainerRuleConfiguration invariantContainerRuleConfiguration = (InvariantContainerRuleConfiguration)theEObject; + T result = caseInvariantContainerRuleConfiguration(invariantContainerRuleConfiguration); + if (result == null) result = caseRuleConfiguration(invariantContainerRuleConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InvariantContainerRulePackage.HIERARCHY_PERMISSION: { + HierarchyPermission hierarchyPermission = (HierarchyPermission)theEObject; + T result = caseHierarchyPermission(hierarchyPermission); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInvariantContainerRuleConfiguration(InvariantContainerRuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hierarchy Permission'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Hierarchy Permission'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHierarchyPermission(HierarchyPermission object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRuleConfiguration(RuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //InvariantContainerRuleSwitch diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java new file mode 100644 index 00000000000..62dff127aeb --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 485220 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types; + +import org.eclipse.core.runtime.Plugin; +import org.eclipse.papyrus.infra.core.log.LogHelper; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.emf.types"; //$NON-NLS-1$ + + // The shared instance + private static Activator INSTANCE; + + /** Logging helper */ + public static LogHelper log; + + /** + * The constructor + */ + public Activator() { + } + + @Override + public void start(BundleContext context) throws Exception { + super.start(context); + INSTANCE = this; + log = new LogHelper(this); + } + + @Override + public void stop(BundleContext context) throws Exception { + log = null; + INSTANCE = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return INSTANCE; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java new file mode 100644 index 00000000000..987121783e5 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java @@ -0,0 +1,133 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.papyrus.infra.emf.types.Activator; +import org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceSwitch; +import org.eclipse.papyrus.infra.emf.types.converter.ConverterNotfoundException; +import org.eclipse.papyrus.infra.emf.types.converter.ConverterRegistry; +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.InstanceValue; +import org.eclipse.uml2.uml.ValueSpecification; + + +/** + * Utility class to get values from a {@link FeatureValue} + */ +public class FeatureValueUtils { + + protected FeatureValueUtils() { + // no instanciation, helper class + } + + /** + * Returns the value to set for a given feature of a given element + * + * @param elementToConfigure + * eobject for which feature is set. This must not be null + * @param feature + * {@link EStructuralFeature} to set. This must not be null + * @param valueModel + * configuration of the value, stored in the model + * @return the real value that will be set to the object or null if none could be computed + */ + public static Object getValue(final EObject elementToConfigure, final EStructuralFeature feature, final FeatureValue featureValue) { + + Object result = new SetValuesAdviceSwitch() { + /** + * {@inheritDoc} + */ + @Override + public Object caseConstantValue(ConstantValue object) { + ValueSpecification valueSpecification = object.getValueInstance(); + + if (valueSpecification == null) { + return null; + } + + try { + EClassifier type = feature.getEType(); + if (type instanceof EEnum) { + String value = ((InstanceValue) valueSpecification).getInstance().getName(); + return ((EEnum) type).getEEnumLiteral(value).getInstance(); + // return ConverterRegistry.getSingleton().convert(EEnum.class, valueSpecification); + } else if (type instanceof EDataType) { + final EDataType pType = (EDataType) type; + final String name = pType.getName(); + if ("Boolean".equals(name)) { + return ConverterRegistry.getSingleton().convert(boolean.class, valueSpecification); + } else if ("Integer".equals(name)) { + return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); + } else if ("Real".equals(name)) { + return ConverterRegistry.getSingleton().convert(double.class, valueSpecification); + } else if ("String".equals(name)) { + return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); + } else if ("UnlimitedNatural".equals(name)) { + return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); + } else { // custom PrimitiveType + return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); + } + } else if (type instanceof DataType) {// FIXME manage the data type + return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); + } + return ConverterRegistry.getSingleton().convert(feature.getEType().getInstanceClass(), valueSpecification); + } catch (ConverterNotfoundException e) { + Activator.log.error("Impossible to convert " + valueSpecification + " to fit feature type :" + feature, e); + } + return super.caseConstantValue(object); + } + + /** + * {@inheritDoc} + */ + @Override + public Object caseQueryExecutionValue(QueryExecutionValue object) { + throw new UnsupportedOperationException("Query execution values resolution has not been implemented yet"); + }; + + /** + * {@inheritDoc} + */ + @Override + public Object caseDynamicValue(DynamicValue object) { + throw new UnsupportedOperationException("Dynamic values resolution has not been implemented yet"); + }; + + /** + * {@inheritDoc} + */ + @Override + public Object caseListValue(ListValue object) { + // resolve one by one all features in the values list of this listvalue + List results = new ArrayList(); + for (FeatureValue value : object.getValues()) { + Object singleResult = getValue(elementToConfigure, feature, value); + results.add(singleResult); + } + return results; + }; + + }.doSwitch(featureValue); + return result; + } + + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java new file mode 100644 index 00000000000..e092aaeb03e --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java @@ -0,0 +1,175 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.papyrus.infra.emf.types.Activator; +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet; +import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue; +import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; + +/** + * advice for the {@link SetValuesAdviceConfiguration} + */ +public class SetValuesAdviceEditHelperAdvice extends AbstractEditHelperAdvice { + + /** list of the features to set */ + // protected Map featuresToValues = null; + /** list of runtime defined features */ + // protected Map featuresToRuntimeDefinitions = null; + + /** list of static defined features */ + protected Map featuresToStaticDefinitions = null; + + + /** + * Default Constructor + */ + public SetValuesAdviceEditHelperAdvice(SetValuesAdviceConfiguration configuration) { + // featuresToRuntimeDefinitions = new HashMap(); + featuresToStaticDefinitions = new HashMap(); + if (configuration == null) { + return; + } + for (FeatureToSet featureToSet : configuration.getFeaturesToSet()) { + featuresToStaticDefinitions.put(featureToSet.getFeatureName(), featureToSet.getValue()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public boolean approveRequest(IEditCommandRequest request) { + return super.approveRequest(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getBeforeCreateCommand(CreateElementRequest request) { + return super.getBeforeCreateCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getAfterCreateCommand(CreateElementRequest request) { + return super.getAfterCreateCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { + return super.getBeforeConfigureCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getAfterConfigureCommand(ConfigureRequest request) { + ICommand resultCommand = null; + + // retrieve eobject + EObject elementToConfigure = request.getElementToConfigure(); + if (elementToConfigure == null) { + return null; + } + // retrieve edit service to get features from configure command + IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure); + if (service == null) { + Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null); + return null; + } + + for (Entry featureEntry : featuresToStaticDefinitions.entrySet()) { + // retrieve feature value + ICommand command = getSetFeatureValueCommand(elementToConfigure, featureEntry.getKey(), featureEntry.getValue(), service, request); + if (command != null) { + if (resultCommand == null) { + resultCommand = command; + } else { + resultCommand = resultCommand.compose(command); + } + } + } + + // if(!featuresToRuntimeDefinitions.isEmpty()) { + // ICommand command = getDynamicSetFeatureValueCommand(elementToConfigure, featuresToRuntimeDefinitions, service, request); + // if(command !=null) { + // if(resultCommand == null) { + // resultCommand = command; + // } else { + // resultCommand = resultCommand.compose(command); + // } + // } + // } + + + if (resultCommand != null) { + return resultCommand.reduce(); + } + + + return super.getAfterConfigureCommand(request); + } + + + /** + * @param elementToConfigure + * the eobject to configure + * @param name + * the name of the feature to set + * @param value + * the new value of the feature + */ + protected ICommand getSetFeatureValueCommand(EObject elementToConfigure, String name, FeatureValue featureValue, IElementEditService service, ConfigureRequest configureRequest) { + if (name == null) { + Activator.log.debug("No feature name has been set."); + return null; + } + if (elementToConfigure.eClass() == null) { + Activator.log.error("Impossible to find EClass from EObject: " + elementToConfigure, null); + return null; + } + // retrieve structural feature for the element to configure + EStructuralFeature feature = elementToConfigure.eClass().getEStructuralFeature(name); + if (feature == null) { + Activator.log.error("Impossible to find feature " + name + " for eobject " + elementToConfigure, null); + return null; + } + Object value = FeatureValueUtils.getValue(elementToConfigure, feature, featureValue); + SetRequest request = new SetRequest(elementToConfigure, feature, value); + // duplicate parameters from configure request? + request.addParameters(configureRequest.getParameters()); + return service.getEditCommand(request); + } +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java new file mode 100644 index 00000000000..7b3b8f70fce --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.advices.values; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceBindingFactory; +import org.eclipse.papyrus.infra.types.core.impl.NullEditHelperAdvice; + +public class SetValuesAdviceEditHelperAdviceFactory extends AbstractAdviceBindingFactory { + + @Override + protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { + if (adviceConfiguration instanceof SetValuesAdviceConfiguration) { + IEditHelperAdvice editHelperAdvice = new SetValuesAdviceEditHelperAdvice((SetValuesAdviceConfiguration) adviceConfiguration); + return editHelperAdvice; + } + return NullEditHelperAdvice.getInstance(); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java new file mode 100644 index 00000000000..38ab545e7c2 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java @@ -0,0 +1,71 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.uml2.uml.ValueSpecification; + + +/** + * Exception thrown when no converter was found + */ +public class ConverterNotfoundException extends Exception { + + /** serialization id */ + private static final long serialVersionUID = -8863603362830475612L; + + /** target parameter type */ + private final Class parameterType; + + /** source value instance */ + private final ValueSpecification valueInstance; + + /** + * Creates a new {@link ConverterNotfoundException}. + * + * @param parameterType + * the target type of the value + * @param valueInstance + * the value specification defining the entering value and type + */ + public ConverterNotfoundException(Class parameterType, ValueSpecification valueInstance) { + this.parameterType = parameterType; + this.valueInstance = valueInstance; + } + + /** + * Returns the target parameter type + * + * @return the target parameter type + */ + public Class getParameterType() { + return parameterType; + } + + /** + * Returns the value specification defining the entering value and type + * + * @return the value specification defining the entering value and type + */ + public ValueSpecification getValueInstance() { + return valueInstance; + } + + /** + * {@inheritDoc} + */ + @Override + public String getMessage() { + return "Converter not found for target type: " + getParameterType() + " and for initial value: " + getValueInstance(); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java new file mode 100644 index 00000000000..774f98cf2e9 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java @@ -0,0 +1,154 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.databinding.conversion.IConverter; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.uml2.uml.Enumeration; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * Registry to store onverters. + */ +public class ConverterRegistry { + + /** singleton instance */ + private static ConverterRegistry instance; + + /** map to store converters, identified by their class */ + private Map, IConverter> converterMaps = new HashMap, IConverter>(); + + /** + * Constructor (not visible: singleton pattern) + */ + private ConverterRegistry() { + } + + /** + * Returns the single instance of this registry + * + * @return the single instance of this registry + */ + public static synchronized ConverterRegistry getSingleton() { + if(instance == null) { + instance = new ConverterRegistry(); + instance.initializeRegistry(); + } + return instance; + } + + /** + * Initialize the registry + */ + protected void initializeRegistry() { + converterMaps.put(String.class, new ValueSpecificationToStringConverter()); + converterMaps.put(int.class, new ValueSpecificationToIntegerConverter()); + converterMaps.put(boolean.class, new ValueSpecificationToBooleanConverter()); + converterMaps.put(Enumeration.class, new ValueSpecificationToEnumerationConverter()); + converterMaps.put(EEnum.class, new ValueSpecificationToEENumConverter()); + } + + /** + * Returns the converter for the convenient type, from an {@link Object} + * + * @param toType + * the class into which the element should be transformed + * + * @return the converter for the convenient type + */ + public IConverter getConverter(Class toType) { + return converterMaps.get(toType); + } + + public Object convert(Class parameterType, ValueSpecification valueInstance) throws ConverterNotfoundException { + // retrieve the converter + IConverter converter = getConverter(parameterType); + + if(converter != null) { + return converter.convert(valueInstance); + } else { + throw new ConverterNotfoundException(parameterType, valueInstance); + } + } + +// /** +// * Converts a parameter value into a list of values +// * +// * @param context +// * the context of the evaluation of the query +// * @param parameterType +// * the type of the list +// * @param parameterValue +// * the parameter value to transform into a list +// * @return the list of values contained by the parameter value +// */ +// public List convertToList(final EObject context, final Class parameterType, final ParameterValue parameterValue) { +// return new ConfigurationSwitch>() { +// +// /** +// * {@inheritDoc} +// */ +// @Override +// public java.util.List caseConstantParameterValue(ConstantParameterValue constantParameterValue) { +// IConverter converter = getConverter(parameterType); +// +// if(converter != null) { +// return Arrays.asList(converter.convert(constantParameterValue.getValueInstance())); +// } else { +// Activator.log.error("Impossible to find a converter for type: " + parameterType, null); +// return Collections.emptyList(); +// } +// }; +// +// /** +// * {@inheritDoc} +// */ +// @Override +// public java.util.List caseQueryExecutionValue(QueryExecutionValue queryExecutionValue) { +// // if query returns a list, returns it, else creates an array of one element +// QueryConfiguration queryConfiguration = queryExecutionValue.getConfiguration(); +// if(!(queryConfiguration instanceof ModiscoQueryConfiguration)) { +// throw new RuntimeException("List conversion not implemented for this type of configuration. " + queryConfiguration.eClass().getName()); +// } +// Object executionResult = null; +// try { +// executionResult = QueryUtil.evaluateBooleanQuery(context, queryConfiguration); +// } catch (Exception e) { +// Activator.log.error(e); +// } +// int upperBound = ((ModiscoQueryConfiguration)queryConfiguration).getQuery().getUpperBound(); +// if(upperBound == 1) { +// return Arrays.asList(executionResult); +// } else { +// return (List)executionResult; +// } +// }; +// +// /** +// * {@inheritDoc} +// */ +// @Override +// public java.util.List caseListParameterValue(ListParameterValue listParameterValue) { +// List values = new ArrayList(); +// for(ParameterValue parameterValue : listParameterValue.getValues()) { +// values.addAll(convertToList(context, parameterType, parameterValue)); +// } +// return values; +// }; +// +// }.doSwitch(parameterValue); +// } +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java new file mode 100644 index 00000000000..774a9014785 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java @@ -0,0 +1,51 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; + + +/** + * Converter for Objects to Boolean value + */ +public class ObjectToBooleanConverter extends Converter implements IConverter { + + /** + * Creates a new ObjectToBooleanConverter + */ + public ObjectToBooleanConverter() { + super(Object.class, Boolean.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Boolean convert(Object fromObject) { + if(fromObject == null) { + return null; + } + + if(fromObject instanceof Boolean) { + return ((Boolean)fromObject); + } + + if(fromObject instanceof String) { + return Boolean.valueOf((String)fromObject); + } + + return null; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java new file mode 100644 index 00000000000..2f0c6261b16 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; + +/** + * Converter from an object to an integer + */ +public class ObjectToIntegerConverter extends Converter implements IConverter { + + /** + * Default constructor. + */ + public ObjectToIntegerConverter() { + super(Object.class, Integer.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer convert(Object fromObject) { + if(fromObject == null) { + return null; + } + + if(fromObject instanceof Integer) { + return (Integer)fromObject; + } + + if(fromObject instanceof String) { + return Integer.parseInt((String)fromObject); + } + + return null; + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java new file mode 100644 index 00000000000..2ef9413ddcf --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * Converter from a {@link ValueSpecification} to a {@link Boolean} value + */ +public class ValueSpecificationToBooleanConverter extends Converter implements IConverter { + + /** + * Creates a new ValueSpecificationToBooleanConverter. + */ + public ValueSpecificationToBooleanConverter() { + super(ValueSpecification.class, boolean.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Object convert(Object fromObject) { + return ((ValueSpecification)fromObject).booleanValue(); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java new file mode 100644 index 00000000000..99fc4eabdca --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.uml2.uml.EnumerationLiteral; +import org.eclipse.uml2.uml.InstanceSpecification; +import org.eclipse.uml2.uml.InstanceValue; +import org.eclipse.uml2.uml.ValueSpecification; + + + +public class ValueSpecificationToEENumConverter extends Converter implements IConverter { + + /** + * @param fromType + * @param toType + */ + public ValueSpecificationToEENumConverter() { + super(ValueSpecification.class, EEnum.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Object convert(Object fromObject) { + if (fromObject instanceof InstanceValue) { + InstanceSpecification instanceSpecification = ((InstanceValue) fromObject).getInstance(); + if (instanceSpecification instanceof EnumerationLiteral) { + + +// Class eclass = ((EnumerationLiteral) instanceSpecification).getEnumeration().eClass().getInstanceClass(); + + + // final EEnumLiteral literal = eenum.getEEnumLiteral(umlLiteral.getName()); + // if(literal != null) { + // return literal.getInstance(); + // } + // return null; + // + + // return ((EnumerationLiteral)instanceSpecification).; + } + } + + return fromObject; + } +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java new file mode 100644 index 00000000000..c3b05bce503 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java @@ -0,0 +1,51 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; +import org.eclipse.uml2.uml.Enumeration; +import org.eclipse.uml2.uml.EnumerationLiteral; +import org.eclipse.uml2.uml.InstanceSpecification; +import org.eclipse.uml2.uml.InstanceValue; +import org.eclipse.uml2.uml.ValueSpecification; + + +/** + * Converter for enumeration values + */ +public class ValueSpecificationToEnumerationConverter extends Converter implements IConverter { + + /** + * @param fromType + * @param toType + */ + public ValueSpecificationToEnumerationConverter() { + super(ValueSpecification.class, Enumeration.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Object convert(Object fromObject) { + if(fromObject instanceof InstanceValue) { + InstanceSpecification instanceSpecification = ((InstanceValue)fromObject).getInstance(); + if(instanceSpecification instanceof EnumerationLiteral) { + return (instanceSpecification); + } + } + + return fromObject; + } +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java new file mode 100644 index 00000000000..1c312b72a4d --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java @@ -0,0 +1,38 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * Converter from a {@link ValueSpecification} to an {@link Integer}. + */ +public class ValueSpecificationToIntegerConverter extends Converter implements IConverter { + + /** + * Creates a new {@link ValueSpecificationToIntegerConverter}. + */ + public ValueSpecificationToIntegerConverter() { + super(ValueSpecification.class, int.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Object convert(Object fromObject) { + return ((ValueSpecification)fromObject).integerValue(); + } +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java new file mode 100644 index 00000000000..651508a1f45 --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.converter; + +import org.eclipse.core.databinding.conversion.Converter; +import org.eclipse.core.databinding.conversion.IConverter; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * Converter from a {@link ValueSpecification} to an {@link String}. + */ +public class ValueSpecificationToStringConverter extends Converter implements IConverter { + + /** + * Creates a new {@link ValueSpecificationToStringConverter}. + */ + public ValueSpecificationToStringConverter() { + super(ValueSpecification.class, String.class); + } + + /** + * {@inheritDoc} + */ + @Override + public Object convert(Object fromObject) { + return ((ValueSpecification)fromObject).stringValue(); + } + +} diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java new file mode 100644 index 00000000000..337222bbc6a --- /dev/null +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java @@ -0,0 +1,124 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.types.rules.container; + +import java.util.Arrays; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType; +import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.emf.types.Activator; +import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType; +import org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule; + +@SuppressWarnings("restriction") +public class InvariantContainerRule extends AbstractRule { + + protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType typeToCreate, CreateElementRequest request) { + EObject newContainer = request.getContainer(); + return canContain(newContainer); + } + + protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType typeToMove, SetRequest request) { + EObject newContainer = request.getElementToEdit(); + return canContain(newContainer); + } + + protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType typeToMove, MoveRequest request) { + EObject newContainer = request.getTargetContainer(); + return canContain(newContainer); + } + + protected boolean canContain(EObject container) { + if (container == null) { + return false; + } + boolean isValid = false; + try { + IElementType newContainerElementType = ElementTypeRegistry.getInstance().getElementType(container, TypeContext.getContext()); + + for (HierarchyPermission permission : invariantRuleConfiguration.getPermissions()) { // for each permission, get the matcher and matches directly + boolean isPermitted = permission.isPermitted(); + String permissionContainerTypeID = permission.getContainerType(); + boolean isStrict = permission.isStrict(); + IElementType permissionContainerType = ElementTypeRegistry.getInstance().getType(permissionContainerTypeID); + + // check is the permission type is a specialization type or a metamodel type, to enhance performances + // if this is a metamodel type and strict, a simple equals can match or not if it is permitted or not + // if this is a metamodel type and not strict, we only compare the list of supertypes of the eObject type with the permission Type + if (permissionContainerType instanceof IMetamodelType) { + if (isStrict) { + isValid = permissionContainerType.equals(newContainerElementType) ? isPermitted : !isPermitted; + } else { + // this is not strict + // so any super metamodeltype of permission type that matches newContainerElementType is OK + // the type itself can also match... + if (newContainerElementType.equals(permissionContainerType)) { + isValid = isPermitted; + } else { + isValid = Arrays.asList(newContainerElementType.getAllSuperTypes()).contains(permissionContainerType) ? isPermitted : !isPermitted; + } + + } + } else if (permissionContainerType instanceof ISpecializationType) { + IElementMatcher matcher = ((ISpecializationType) permissionContainerType).getMatcher(); + if (matcher != null) { + boolean matchesSpecialization = matcher.matches(container) && newContainerElementType.equals(((ISpecializationType) permissionContainerType).getMetamodelType()); // the eObject matches the specializations type that is permitted. + if (matchesSpecialization) { + // test the isStrict now... It will be false if it matches one of the sub-specialization type + if (isStrict) { + ISpecializationType[] subtypes = ElementTypeRegistry.getInstance().getSpecializationsOf(permissionContainerTypeID); + if (subtypes != null && subtypes.length > 0) { + for (ISpecializationType subType : subtypes) { + isValid = subType.getMatcher().matches(container) ? isPermitted : !isPermitted; // the isStrict is not verified (one of the subtypes is matched whereas it should not) + } + } else { // there are no further sub specialization types. + isValid = isPermitted; + } + } else { + // not strict + isValid = isPermitted; + } + } else { // eObject type does not match the permission type + isValid = !isPermitted; + + } + } + } + } + + } catch (ServiceException e) { + Activator.log.error(e); + } + + return isValid; + } + + + @Override + public boolean matches(EObject eObject) { + EObject container = eObject.eContainer(); + + return canContain(container); + } + + +} diff --git a/plugins/infra/emf/pom.xml b/plugins/infra/emf/pom.xml index b64c1d01e8b..c6e3563ec31 100644 --- a/plugins/infra/emf/pom.xml +++ b/plugins/infra/emf/pom.xml @@ -18,5 +18,7 @@ org.eclipse.papyrus.infra.emf.gmf org.eclipse.papyrus.infra.emf.readonly org.eclipse.papyrus.infra.ui.emf + org.eclipse.papyrus.infra.emf.types + org.eclipse.papyrus.infra.emf.types.ui diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF index e20390c551d..893df0dbd6e 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF @@ -84,7 +84,7 @@ Require-Bundle: org.eclipse.emf.edit.ui;bundle-version="2.5.0", org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.2.0", org.eclipse.gmf.runtime.diagram.ui.providers;bundle-version="1.7.0", org.eclipse.papyrus.infra.emf.readonly;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", org.eclipse.gmf.runtime.draw2d.ui.render.awt, org.apache.xerces;bundle-version="2.9.0", org.eclipse.core.runtime, diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/notation.elementtypesconfigurations b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/notation.elementtypesconfigurations index 6db8bf14e5f..0d813f220da 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/notation.elementtypesconfigurations +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/notation.elementtypesconfigurations @@ -1,5 +1,5 @@ - - - - + + + + \ No newline at end of file diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml index 7161ddd10cd..bb6e319922c 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml @@ -451,7 +451,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelValidationUtil.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelValidationUtil.java index 71d105f4c95..443988ac5f0 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelValidationUtil.java +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansionmodel/ExpansionModelValidationUtil.java @@ -22,9 +22,9 @@ import org.eclipse.emf.common.util.Diagnostic; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeConfigurationTypeRegistry; import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.util.ExpansionmodelValidator; import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeConfigurationTypeRegistry; /** * This utility class has been added in order to ensure that model is well built. diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/DefaultEditHelper.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/DefaultEditHelper.java index cf6ad196938..fbb22f08228 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/DefaultEditHelper.java +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/DefaultEditHelper.java @@ -36,13 +36,13 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyDependentsRequest; import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; import org.eclipse.papyrus.commands.DestroyElementPapyrusCommand; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.AbstractNotifierEditHelper; -import org.eclipse.papyrus.infra.elementtypesconfigurations.utils.AdviceComparator; import org.eclipse.papyrus.infra.emf.commands.UnsetValueCommand; import org.eclipse.papyrus.infra.emf.requests.UnsetRequest; import org.eclipse.papyrus.infra.gmfdiag.common.commands.CreateEditBasedElementCommand; import org.eclipse.papyrus.infra.services.edit.utils.CacheRegistry; import org.eclipse.papyrus.infra.services.edit.utils.IRequestCacheEntries; +import org.eclipse.papyrus.infra.types.core.notification.AbstractNotifierEditHelper; +import org.eclipse.papyrus.infra.types.core.utils.AdviceComparator; /** *
diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.classpath
deleted file mode 100644
index 75556083f6e..00000000000
--- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-	
-	
-	
-	
-
diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.project
deleted file mode 100644
index 60a1ae9234d..00000000000
--- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-	org.eclipse.papyrus.infra.elementtypesconfigurations.edit
-	
-	
-	
-	
-		
-			org.eclipse.jdt.core.javabuilder
-			
-			
-		
-		
-			org.eclipse.pde.ManifestBuilder
-			
-			
-		
-		
-			org.eclipse.pde.SchemaBuilder
-			
-			
-		
-	
-	
-		org.eclipse.jdt.core.javanature
-		org.eclipse.pde.PluginNature
-	
-
diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 4d72ad12656..00000000000
--- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,288 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=260
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=tab
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 954281dbc31..00000000000
--- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,68 +0,0 @@
-cleanup.add_default_serial_version_id=true
-cleanup.add_generated_serial_version_id=false
-cleanup.add_missing_annotations=true
-cleanup.add_missing_deprecated_annotations=true
-cleanup.add_missing_methods=false
-cleanup.add_missing_nls_tags=false
-cleanup.add_missing_override_annotations=true
-cleanup.add_missing_override_annotations_interface_methods=true
-cleanup.add_serial_version_id=false
-cleanup.always_use_blocks=true
-cleanup.always_use_parentheses_in_expressions=false
-cleanup.always_use_this_for_non_static_field_access=false
-cleanup.always_use_this_for_non_static_method_access=false
-cleanup.convert_functional_interfaces=false
-cleanup.convert_to_enhanced_for_loop=false
-cleanup.correct_indentation=false
-cleanup.format_source_code=false
-cleanup.format_source_code_changes_only=false
-cleanup.insert_inferred_type_arguments=false
-cleanup.make_local_variable_final=true
-cleanup.make_parameters_final=false
-cleanup.make_private_fields_final=true
-cleanup.make_type_abstract_if_missing_method=false
-cleanup.make_variable_declarations_final=false
-cleanup.never_use_blocks=false
-cleanup.never_use_parentheses_in_expressions=true
-cleanup.organize_imports=false
-cleanup.qualify_static_field_accesses_with_declaring_class=false
-cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-cleanup.qualify_static_member_accesses_with_declaring_class=true
-cleanup.qualify_static_method_accesses_with_declaring_class=false
-cleanup.remove_private_constructors=true
-cleanup.remove_redundant_type_arguments=true
-cleanup.remove_trailing_whitespaces=true
-cleanup.remove_trailing_whitespaces_all=true
-cleanup.remove_trailing_whitespaces_ignore_empty=false
-cleanup.remove_unnecessary_casts=true
-cleanup.remove_unnecessary_nls_tags=true
-cleanup.remove_unused_imports=true
-cleanup.remove_unused_local_variables=false
-cleanup.remove_unused_private_fields=true
-cleanup.remove_unused_private_members=false
-cleanup.remove_unused_private_methods=true
-cleanup.remove_unused_private_types=true
-cleanup.sort_members=false
-cleanup.sort_members_all=false
-cleanup.use_anonymous_class_creation=false
-cleanup.use_blocks=true
-cleanup.use_blocks_only_for_return_and_throw=false
-cleanup.use_lambda=true
-cleanup.use_parentheses_in_expressions=false
-cleanup.use_this_for_non_static_field_access=false
-cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-cleanup.use_this_for_non_static_method_access=false
-cleanup.use_this_for_non_static_method_access_only_if_necessary=true
-cleanup.use_type_arguments=false
-cleanup_profile=_Papyrus
-cleanup_settings_version=2
-eclipse.preferences.version=1
-formatter_profile=_Papyrus
-formatter_settings_version=12
-org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=java;javax;org;com;
-org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.ondemandthreshold=99
-org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=
diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/META-INF/MANIFEST.MF
deleted file mode 100644
index 63b6471dde3..00000000000
--- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.provider
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.edit;visibility:=reexport,
- org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0";visibility:=reexport
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: %pluginName
-Bundle-Localization: plugin
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin$Implementation
-Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.edit;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/build.properties deleted file mode 100644 index f6981c49151..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/build.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. -# -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation -# Christian W. Damus - bug 451230 -# - -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html -jars.compile.order = . -source.. = src-gen/ -output.. = bin/ -src.includes = about.html diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif deleted file mode 100644 index 6135e64b5fc..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif deleted file mode 100644 index d84cb0a088c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif deleted file mode 100644 index 6135e64b5fc..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif deleted file mode 100644 index d84cb0a088c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif deleted file mode 100644 index d84cb0a088c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif deleted file mode 100644 index 6f73fe27ba1..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif deleted file mode 100644 index 06f97473e10..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif deleted file mode 100644 index d1e84691c85..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif deleted file mode 100644 index f6149c3081a..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif deleted file mode 100644 index 6135e64b5fc..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif deleted file mode 100644 index 75f44fbcbc9..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif deleted file mode 100644 index d84cb0a088c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/AdviceBindingConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/AdviceBindingConfiguration.gif deleted file mode 100644 index 06f97473e10..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/AdviceBindingConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ContainerConfiguration.gif deleted file mode 100644 index 6135e64b5fc..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif deleted file mode 100644 index 75f44fbcbc9..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ElementTypeSetConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ElementTypeSetConfiguration.gif deleted file mode 100644 index 68acdf43c80..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/ElementTypeSetConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/IconEntry.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/IconEntry.gif deleted file mode 100644 index 6f73fe27ba1..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/IconEntry.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MatcherConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MatcherConfiguration.gif deleted file mode 100644 index d84cb0a088c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MatcherConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MetamodelTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MetamodelTypeConfiguration.gif deleted file mode 100644 index d1e84691c85..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/MetamodelTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/SpecializationTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/SpecializationTypeConfiguration.gif deleted file mode 100644 index f6149c3081a..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/icons/full/obj16/SpecializationTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.properties deleted file mode 100644 index 6165b1eca59..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.properties +++ /dev/null @@ -1,82 +0,0 @@ -# -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation - -pluginName = Papyrus ElementTypesConfigurations Edit Support -providerName = Eclipse Modeling Project - - -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. -_UI_PropertyDescriptor_description = The {0} of the {1} -_UI_ElementTypeSetConfiguration_type = Element Type Set Configuration -_UI_ElementTypeConfiguration_type = Element Type Configuration -_UI_IconEntry_type = Icon Entry -_UI_ConfigurationElement_type = Configuration Element -_UI_AbstractMatcherConfiguration_type = Abstract Matcher Configuration -_UI_AdviceConfiguration_type = Advice Configuration -_UI_AbstractAdviceBindingConfiguration_type = Abstract Advice Binding Configuration -_UI_SpecializationTypeConfiguration_type = Specialization Type Configuration -_UI_ContainerConfiguration_type = Container Configuration -_UI_MetamodelTypeConfiguration_type = Metamodel Type Configuration -_UI_AbstractEditHelperAdviceConfiguration_type = Abstract Edit Helper Advice Configuration -_UI_DefaultEditHelperAdviceConfiguration_type = Default Edit Helper Advice Configuration -_UI_DefaultAdviceBindingConfiguration_type = Default Advice Binding Configuration -_UI_DefaultMatcherConfiguration_type = Default Matcher Configuration -_UI_Unknown_type = Object -_UI_Unknown_datatype= Value -_UI_ElementTypeSetConfiguration_elementTypeConfigurations_feature = Element Type Configurations -_UI_ElementTypeSetConfiguration_adviceBindingsConfigurations_feature = Advice Bindings Configurations -_UI_ElementTypeSetConfiguration_metamodelNsURI_feature = Metamodel Ns URI -_UI_ElementTypeConfiguration_hint_feature = Hint -_UI_ElementTypeConfiguration_kind_feature = Kind -_UI_ElementTypeConfiguration_iconEntry_feature = Icon Entry -_UI_IconEntry_iconPath_feature = Icon Path -_UI_IconEntry_bundleId_feature = Bundle Id -_UI_ConfigurationElement_name_feature = Name -_UI_ConfigurationElement_description_feature = Description -_UI_ConfigurationElement_identifier_feature = Identifier -_UI_AdviceConfiguration_before_feature = Before -_UI_AdviceConfiguration_after_feature = After -_UI_AdviceConfiguration_inheritance_feature = Inheritance -_UI_AbstractAdviceBindingConfiguration_target_feature = Target -_UI_AbstractAdviceBindingConfiguration_containerConfiguration_feature = Container Configuration -_UI_AbstractAdviceBindingConfiguration_matcherConfiguration_feature = Matcher Configuration -_UI_SpecializationTypeConfiguration_specializedTypesID_feature = Specialized Types ID -_UI_SpecializationTypeConfiguration_editHelperAdviceConfiguration_feature = Edit Helper Advice Configuration -_UI_SpecializationTypeConfiguration_containerConfiguration_feature = Container Configuration -_UI_SpecializationTypeConfiguration_matcherConfiguration_feature = Matcher Configuration -_UI_ContainerConfiguration_containerMatcherConfiguration_feature = Container Matcher Configuration -_UI_ContainerConfiguration_eContainmentFeatures_feature = EContainment Features -_UI_MetamodelTypeConfiguration_eClass_feature = EClass -_UI_MetamodelTypeConfiguration_editHelperClassName_feature = Edit Helper Class Name -_UI_AbstractEditHelperAdviceConfiguration_target_feature = Target -_UI_DefaultEditHelperAdviceConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name -_UI_DefaultAdviceBindingConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name -_UI_DefaultMatcherConfiguration_matcherClassName_feature = Matcher Class Name -_UI_Unknown_feature = Unspecified -_UI_InheritanceKind_none_literal = none -_UI_InheritanceKind_all_literal = all -_UI_EditHelperAdviceConfiguration_type = Edit Helper Advice Configuration -_UI_AdviceBindingConfiguration_type = Advice Binding Configuration -_UI_MatcherConfiguration_type = Matcher Configuration -_UI_EditHelperAdviceConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name -_UI_AdviceBindingConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name -_UI_MatcherConfiguration_matcherClassName_feature = Matcher Class Name -_UI_AbstractAdviceBindingConfiguration_inheritance_feature = Inheritance -_UI_IdentifiedConfiguration_type = Identified Configuration -_UI_IdentifiedConfiguration_identifier_feature = Identifier -_UI_IdentifiedConfiguration_name_feature = Name -_UI_ElementTypeConfiguration_name_feature = Name -_UI_NamedConfiguration_type = Named Configuration -_UI_NamedConfiguration_name_feature = Name diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.xml deleted file mode 100644 index e53a18745aa..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/plugin.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/pom.xml deleted file mode 100644 index d877e3e155b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations.edit - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractAdviceBindingConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractAdviceBindingConfigurationItemProvider.java deleted file mode 100644 index 4233fb3bddd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractAdviceBindingConfigurationItemProvider.java +++ /dev/null @@ -1,226 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration} object. - * - * - * @generated - */ -public class AbstractAdviceBindingConfigurationItemProvider extends AdviceConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AbstractAdviceBindingConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addTargetPropertyDescriptor(object); - addInheritancePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IdentifiedConfiguration_identifier_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IdentifiedConfiguration_identifier_feature", "_UI_IdentifiedConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.IDENTIFIED_CONFIGURATION__IDENTIFIER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Target feature. - * - * - * @generated - */ - protected void addTargetPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractAdviceBindingConfiguration_target_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractAdviceBindingConfiguration_target_feature", "_UI_AbstractAdviceBindingConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Inheritance feature. - * - * - * @generated - */ - protected void addInheritancePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractAdviceBindingConfiguration_inheritance_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractAdviceBindingConfiguration_inheritance_feature", "_UI_AbstractAdviceBindingConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((AbstractAdviceBindingConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_AbstractAdviceBindingConfiguration_type") : - getString("_UI_AbstractAdviceBindingConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(AbstractAdviceBindingConfiguration.class)) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, - ElementtypesconfigurationsFactory.eINSTANCE.createContainerConfiguration())); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, - ElementtypesconfigurationsFactory.eINSTANCE.createMatcherConfiguration())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractEditHelperAdviceConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractEditHelperAdviceConfigurationItemProvider.java deleted file mode 100644 index bfe94bc4e18..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractEditHelperAdviceConfigurationItemProvider.java +++ /dev/null @@ -1,98 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration} object. - * - * - * @generated - */ -public class AbstractEditHelperAdviceConfigurationItemProvider extends AdviceConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AbstractEditHelperAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((AbstractEditHelperAdviceConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_AbstractEditHelperAdviceConfiguration_type") : - getString("_UI_AbstractEditHelperAdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractMatcherConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractMatcherConfigurationItemProvider.java deleted file mode 100644 index 555ec92c984..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AbstractMatcherConfigurationItemProvider.java +++ /dev/null @@ -1,120 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration} object. - * - * - * @generated - */ -public class AbstractMatcherConfigurationItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AbstractMatcherConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_AbstractMatcherConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceBindingConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceBindingConfigurationItemProvider.java deleted file mode 100644 index b7b5d07aa84..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceBindingConfigurationItemProvider.java +++ /dev/null @@ -1,142 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration} object. - * - * - * @generated - */ -public class AdviceBindingConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AdviceBindingConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addEditHelperAdviceClassNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Edit Helper Advice Class Name feature. - * - * - * @generated - */ - protected void addEditHelperAdviceClassNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AdviceBindingConfiguration_editHelperAdviceClassName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AdviceBindingConfiguration_editHelperAdviceClassName_feature", "_UI_AdviceBindingConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns AdviceBindingConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/AdviceBindingConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((AdviceBindingConfiguration)object).getIdentifier(); - return label == null || label.length() == 0 ? - getString("_UI_AdviceBindingConfiguration_type") : - getString("_UI_AdviceBindingConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(AdviceBindingConfiguration.class)) { - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceConfigurationItemProvider.java deleted file mode 100644 index dba405a82dc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/AdviceConfigurationItemProvider.java +++ /dev/null @@ -1,155 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration} object. - * - * - * @generated - */ -public class AdviceConfigurationItemProvider extends ConfigurationElementItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addBeforePropertyDescriptor(object); - addAfterPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Before feature. - * - * - * @generated - */ - protected void addBeforePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AdviceConfiguration_before_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AdviceConfiguration_before_feature", "_UI_AdviceConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ADVICE_CONFIGURATION__BEFORE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the After feature. - * - * - * @generated - */ - protected void addAfterPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AdviceConfiguration_after_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AdviceConfiguration_after_feature", "_UI_AdviceConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ADVICE_CONFIGURATION__AFTER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((AdviceConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_AdviceConfiguration_type") : - getString("_UI_AdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(AdviceConfiguration.class)) { - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__AFTER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ConfigurationElementItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ConfigurationElementItemProvider.java deleted file mode 100644 index 0fc4adf7ace..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ConfigurationElementItemProvider.java +++ /dev/null @@ -1,158 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement} object. - * - * - * @generated - */ -public class ConfigurationElementItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ConfigurationElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationElement_description_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationElement_description_feature", "_UI_ConfigurationElement_type"), - ElementtypesconfigurationsPackage.Literals.CONFIGURATION_ELEMENT__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ConfigurationElement)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_ConfigurationElement_type") : - getString("_UI_ConfigurationElement_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ConfigurationElement.class)) { - case ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ContainerConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ContainerConfigurationItemProvider.java deleted file mode 100644 index a6d6ae62dd6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ContainerConfigurationItemProvider.java +++ /dev/null @@ -1,203 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration} object. - * - * - * @generated - */ -public class ContainerConfigurationItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ContainerConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addEContainmentFeaturesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the EContainment Features feature. - * - * - * @generated - */ - protected void addEContainmentFeaturesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ContainerConfiguration_eContainmentFeatures_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ContainerConfiguration_eContainmentFeatures_feature", "_UI_ContainerConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES, - true, - false, - true, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ContainerConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ContainerConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ContainerConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ContainerConfiguration.class)) { - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, - ElementtypesconfigurationsFactory.eINSTANCE.createMatcherConfiguration())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/EditHelperAdviceConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/EditHelperAdviceConfigurationItemProvider.java deleted file mode 100644 index 3b918b8071f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/EditHelperAdviceConfigurationItemProvider.java +++ /dev/null @@ -1,142 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration} object. - * - * - * @generated - */ -public class EditHelperAdviceConfigurationItemProvider extends AbstractEditHelperAdviceConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public EditHelperAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addEditHelperAdviceClassNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Edit Helper Advice Class Name feature. - * - * - * @generated - */ - protected void addEditHelperAdviceClassNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EditHelperAdviceConfiguration_editHelperAdviceClassName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EditHelperAdviceConfiguration_editHelperAdviceClassName_feature", "_UI_EditHelperAdviceConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns EditHelperAdviceConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/EditHelperAdviceConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((EditHelperAdviceConfiguration)object).getEditHelperAdviceClassName(); - return label == null || label.length() == 0 ? - getString("_UI_EditHelperAdviceConfiguration_type") : - getString("_UI_EditHelperAdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(EditHelperAdviceConfiguration.class)) { - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeConfigurationItemProvider.java deleted file mode 100644 index 60b83e0d1a5..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeConfigurationItemProvider.java +++ /dev/null @@ -1,244 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration} object. - * - * - * @generated - */ -public class ElementTypeConfigurationItemProvider extends ConfigurationElementItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ElementTypeConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addHintPropertyDescriptor(object); - addKindPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IdentifiedConfiguration_identifier_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IdentifiedConfiguration_identifier_feature", "_UI_IdentifiedConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.IDENTIFIED_CONFIGURATION__IDENTIFIER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_NamedConfiguration_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_NamedConfiguration_name_feature", "_UI_NamedConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.NAMED_CONFIGURATION__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Hint feature. - * - * - * @generated - */ - protected void addHintPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ElementTypeConfiguration_hint_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ElementTypeConfiguration_hint_feature", "_UI_ElementTypeConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__HINT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Kind feature. - * - * - * @generated - */ - protected void addKindPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ElementTypeConfiguration_kind_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ElementTypeConfiguration_kind_feature", "_UI_ElementTypeConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__KIND, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ElementTypeConfiguration)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_ElementTypeConfiguration_type") : - getString("_UI_ElementTypeConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ElementTypeConfiguration.class)) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, - ElementtypesconfigurationsFactory.eINSTANCE.createIconEntry())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeSetConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeSetConfigurationItemProvider.java deleted file mode 100644 index d8dd498a142..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypeSetConfigurationItemProvider.java +++ /dev/null @@ -1,243 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration} object. - * - * - * @generated - */ -public class ElementTypeSetConfigurationItemProvider extends ConfigurationElementItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ElementTypeSetConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addMetamodelNsURIPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IdentifiedConfiguration_identifier_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IdentifiedConfiguration_identifier_feature", "_UI_IdentifiedConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.IDENTIFIED_CONFIGURATION__IDENTIFIER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_NamedConfiguration_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_NamedConfiguration_name_feature", "_UI_NamedConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.NAMED_CONFIGURATION__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Metamodel Ns URI feature. - * - * - * @generated - */ - protected void addMetamodelNsURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ElementTypeSetConfiguration_metamodelNsURI_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ElementTypeSetConfiguration_metamodelNsURI_feature", "_UI_ElementTypeSetConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ElementTypeSetConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ElementTypeSetConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ElementTypeSetConfiguration)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_ElementTypeSetConfiguration_type") : - getString("_UI_ElementTypeSetConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ElementTypeSetConfiguration.class)) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS, - ElementtypesconfigurationsFactory.eINSTANCE.createSpecializationTypeConfiguration())); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS, - ElementtypesconfigurationsFactory.eINSTANCE.createMetamodelTypeConfiguration())); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, - ElementtypesconfigurationsFactory.eINSTANCE.createAdviceBindingConfiguration())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypesConfigurationsEditPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypesConfigurationsEditPlugin.java deleted file mode 100644 index 7a90f1c42c4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementTypesConfigurationsEditPlugin.java +++ /dev/null @@ -1,99 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the ElementTypesConfigurations edit plugin. - * - * - * @generated - */ -public final class ElementTypesConfigurationsEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final ElementTypesConfigurationsEditPlugin INSTANCE = new ElementTypesConfigurationsEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public ElementTypesConfigurationsEditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementtypesconfigurationsItemProviderAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementtypesconfigurationsItemProviderAdapterFactory.java deleted file mode 100644 index 51845ccf4d1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/ElementtypesconfigurationsItemProviderAdapterFactory.java +++ /dev/null @@ -1,421 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class ElementtypesconfigurationsItemProviderAdapterFactory extends ElementtypesconfigurationsAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. - * - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager(ElementTypesConfigurationsEditPlugin.INSTANCE, ElementtypesconfigurationsPackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public ElementtypesconfigurationsItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration} instances. - * - * - * @generated - */ - protected ElementTypeSetConfigurationItemProvider elementTypeSetConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createElementTypeSetConfigurationAdapter() { - if (elementTypeSetConfigurationItemProvider == null) { - elementTypeSetConfigurationItemProvider = new ElementTypeSetConfigurationItemProvider(this); - } - - return elementTypeSetConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry} instances. - * - * - * @generated - */ - protected IconEntryItemProvider iconEntryItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry}. - * - * - * @generated - */ - @Override - public Adapter createIconEntryAdapter() { - if (iconEntryItemProvider == null) { - iconEntryItemProvider = new IconEntryItemProvider(this); - } - - return iconEntryItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration} instances. - * - * - * @generated - */ - protected SpecializationTypeConfigurationItemProvider specializationTypeConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createSpecializationTypeConfigurationAdapter() { - if (specializationTypeConfigurationItemProvider == null) { - specializationTypeConfigurationItemProvider = new SpecializationTypeConfigurationItemProvider(this); - } - - return specializationTypeConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration} instances. - * - * - * @generated - */ - protected ContainerConfigurationItemProvider containerConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createContainerConfigurationAdapter() { - if (containerConfigurationItemProvider == null) { - containerConfigurationItemProvider = new ContainerConfigurationItemProvider(this); - } - - return containerConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration} instances. - * - * - * @generated - */ - protected MetamodelTypeConfigurationItemProvider metamodelTypeConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createMetamodelTypeConfigurationAdapter() { - if (metamodelTypeConfigurationItemProvider == null) { - metamodelTypeConfigurationItemProvider = new MetamodelTypeConfigurationItemProvider(this); - } - - return metamodelTypeConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration} instances. - * - * - * @generated - */ - protected EditHelperAdviceConfigurationItemProvider editHelperAdviceConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createEditHelperAdviceConfigurationAdapter() { - if (editHelperAdviceConfigurationItemProvider == null) { - editHelperAdviceConfigurationItemProvider = new EditHelperAdviceConfigurationItemProvider(this); - } - - return editHelperAdviceConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration} instances. - * - * - * @generated - */ - protected AdviceBindingConfigurationItemProvider adviceBindingConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createAdviceBindingConfigurationAdapter() { - if (adviceBindingConfigurationItemProvider == null) { - adviceBindingConfigurationItemProvider = new AdviceBindingConfigurationItemProvider(this); - } - - return adviceBindingConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration} instances. - * - * - * @generated - */ - protected MatcherConfigurationItemProvider matcherConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createMatcherConfigurationAdapter() { - if (matcherConfigurationItemProvider == null) { - matcherConfigurationItemProvider = new MatcherConfigurationItemProvider(this); - } - - return matcherConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * - * - * @generated - */ - public List getChildCreationExtenders() { - return childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return childCreationExtenderManager; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (elementTypeSetConfigurationItemProvider != null) elementTypeSetConfigurationItemProvider.dispose(); - if (iconEntryItemProvider != null) iconEntryItemProvider.dispose(); - if (specializationTypeConfigurationItemProvider != null) specializationTypeConfigurationItemProvider.dispose(); - if (containerConfigurationItemProvider != null) containerConfigurationItemProvider.dispose(); - if (metamodelTypeConfigurationItemProvider != null) metamodelTypeConfigurationItemProvider.dispose(); - if (editHelperAdviceConfigurationItemProvider != null) editHelperAdviceConfigurationItemProvider.dispose(); - if (adviceBindingConfigurationItemProvider != null) adviceBindingConfigurationItemProvider.dispose(); - if (matcherConfigurationItemProvider != null) matcherConfigurationItemProvider.dispose(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/IconEntryItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/IconEntryItemProvider.java deleted file mode 100644 index ecb95d75d3d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/IconEntryItemProvider.java +++ /dev/null @@ -1,193 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry} object. - * - * - * @generated - */ -public class IconEntryItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public IconEntryItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIconPathPropertyDescriptor(object); - addBundleIdPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Icon Path feature. - * - * - * @generated - */ - protected void addIconPathPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IconEntry_iconPath_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IconEntry_iconPath_feature", "_UI_IconEntry_type"), - ElementtypesconfigurationsPackage.Literals.ICON_ENTRY__ICON_PATH, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Bundle Id feature. - * - * - * @generated - */ - protected void addBundleIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IconEntry_bundleId_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IconEntry_bundleId_feature", "_UI_IconEntry_type"), - ElementtypesconfigurationsPackage.Literals.ICON_ENTRY__BUNDLE_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns IconEntry.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/IconEntry")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((IconEntry)object).getIconPath(); - return label == null || label.length() == 0 ? - getString("_UI_IconEntry_type") : - getString("_UI_IconEntry_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(IconEntry.class)) { - case ElementtypesconfigurationsPackage.ICON_ENTRY__ICON_PATH: - case ElementtypesconfigurationsPackage.ICON_ENTRY__BUNDLE_ID: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MatcherConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MatcherConfigurationItemProvider.java deleted file mode 100644 index 5c1fef56b0a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MatcherConfigurationItemProvider.java +++ /dev/null @@ -1,142 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration} object. - * - * - * @generated - */ -public class MatcherConfigurationItemProvider extends AbstractMatcherConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public MatcherConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addMatcherClassNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Matcher Class Name feature. - * - * - * @generated - */ - protected void addMatcherClassNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MatcherConfiguration_matcherClassName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MatcherConfiguration_matcherClassName_feature", "_UI_MatcherConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns MatcherConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/MatcherConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MatcherConfiguration)object).getMatcherClassName(); - return label == null || label.length() == 0 ? - getString("_UI_MatcherConfiguration_type") : - getString("_UI_MatcherConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MatcherConfiguration.class)) { - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MetamodelTypeConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MetamodelTypeConfigurationItemProvider.java deleted file mode 100644 index 9e32ceb214a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/MetamodelTypeConfigurationItemProvider.java +++ /dev/null @@ -1,165 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration} object. - * - * - * @generated - */ -public class MetamodelTypeConfigurationItemProvider extends ElementTypeConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public MetamodelTypeConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addEClassPropertyDescriptor(object); - addEditHelperClassNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the EClass feature. - * - * - * @generated - */ - protected void addEClassPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MetamodelTypeConfiguration_eClass_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MetamodelTypeConfiguration_eClass_feature", "_UI_MetamodelTypeConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.METAMODEL_TYPE_CONFIGURATION__ECLASS, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Edit Helper Class Name feature. - * - * - * @generated - */ - protected void addEditHelperClassNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MetamodelTypeConfiguration_editHelperClassName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MetamodelTypeConfiguration_editHelperClassName_feature", "_UI_MetamodelTypeConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns MetamodelTypeConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/MetamodelTypeConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MetamodelTypeConfiguration)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_MetamodelTypeConfiguration_type") : - getString("_UI_MetamodelTypeConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MetamodelTypeConfiguration.class)) { - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/NamedConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/NamedConfigurationItemProvider.java deleted file mode 100644 index 56e4fa57bce..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/NamedConfigurationItemProvider.java +++ /dev/null @@ -1,169 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration} object. - * - * - * @generated - */ -public class NamedConfigurationItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public NamedConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_NamedConfiguration_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_NamedConfiguration_name_feature", "_UI_NamedConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.NAMED_CONFIGURATION__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns NamedConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/NamedConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((NamedConfiguration)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_NamedConfiguration_type") : - getString("_UI_NamedConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(NamedConfiguration.class)) { - case ElementtypesconfigurationsPackage.NAMED_CONFIGURATION__NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/SpecializationTypeConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/SpecializationTypeConfigurationItemProvider.java deleted file mode 100644 index 2aa5fc3783f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/provider/SpecializationTypeConfigurationItemProvider.java +++ /dev/null @@ -1,197 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration} object. - * - * - * @generated - */ -public class SpecializationTypeConfigurationItemProvider extends ElementTypeConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public SpecializationTypeConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addSpecializedTypesIDPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Specialized Types ID feature. - * - * - * @generated - */ - protected void addSpecializedTypesIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SpecializationTypeConfiguration_specializedTypesID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SpecializationTypeConfiguration_specializedTypesID_feature", "_UI_SpecializationTypeConfiguration_type"), - ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION); - childrenFeatures.add(ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns SpecializationTypeConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/SpecializationTypeConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((SpecializationTypeConfiguration)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_SpecializationTypeConfiguration_type") : - getString("_UI_SpecializationTypeConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(SpecializationTypeConfiguration.class)) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, - ElementtypesconfigurationsFactory.eINSTANCE.createEditHelperAdviceConfiguration())); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, - ElementtypesconfigurationsFactory.eINSTANCE.createContainerConfiguration())); - - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, - ElementtypesconfigurationsFactory.eINSTANCE.createMatcherConfiguration())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.classpath deleted file mode 100644 index 858bac421b8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.project deleted file mode 100644 index ba488e216a4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.editor - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 4d72ad12656..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,288 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/META-INF/MANIFEST.MF deleted file mode 100644 index 4f0b53a0e2e..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/META-INF/MANIFEST.MF +++ /dev/null @@ -1,18 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.presentation -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.core.resources;visibility:=reexport, - org.eclipse.emf.ecore.xmi;visibility:=reexport, - org.eclipse.emf.edit.ui;visibility:=reexport, - org.eclipse.ui.ide;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations.edit;bundle-version="1.2.0";visibility:=reexport -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.presentation.ElementTypesConfigurationsEditorPlugin$Implementation -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.editor;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/build.properties deleted file mode 100644 index 2d24be10e74..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/build.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. -# -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation -# Christian W. Damus - bug 451230 -# - -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html -jars.compile.order = . -source.. = src-gen/ -output.. = bin -src.includes = about.html diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif deleted file mode 100644 index e5c6e175f7f..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/wizban/NewElementtypesconfigurations.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/wizban/NewElementtypesconfigurations.gif deleted file mode 100644 index caab2147182..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/icons/full/wizban/NewElementtypesconfigurations.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.properties deleted file mode 100644 index 19344385bc4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.properties +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. -# -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation -# Christian W. Damus - bug 451230 -# - -pluginName=Papyrus elementTypes configurations editor -providerName=Eclipse Modeling Project - -_UI_ElementtypesconfigurationsEditor_menu = &Elementtypesconfigurations Editor - -_UI_CreateChild_menu_item = &New Child -_UI_CreateSibling_menu_item = N&ew Sibling - -_UI_ShowPropertiesView_menu_item = Show &Properties View -_UI_RefreshViewer_menu_item = &Refresh - -_UI_SelectionPage_label = Selection -_UI_ParentPage_label = Parent -_UI_ListPage_label = List -_UI_TreePage_label = Tree -_UI_TablePage_label = Table -_UI_TreeWithColumnsPage_label = Tree with Columns -_UI_ObjectColumn_label = Object -_UI_SelfColumn_label = Self - -_UI_NoObjectSelected = Selected Nothing -_UI_SingleObjectSelected = Selected Object: {0} -_UI_MultiObjectSelected = Selected {0} Objects - -_UI_OpenEditorError_label = Open Editor - -_UI_Wizard_category = Example EMF Model Creation Wizards - -_UI_CreateModelError_message = Problems encountered in file "{0}" - -_UI_ElementtypesconfigurationsModelWizard_label = Elementtypesconfigurations Model -_UI_ElementtypesconfigurationsModelWizard_description = Create a new Elementtypesconfigurations model - -_UI_ElementtypesconfigurationsEditor_label = Elementtypesconfigurations Model Editor - -_UI_ElementtypesconfigurationsEditorFilenameDefaultBase = My -_UI_ElementtypesconfigurationsEditorFilenameExtensions = elementtypesconfigurations - -_UI_Wizard_label = New - -_WARN_FilenameExtension = The file name must end in ''.{0}'' -_WARN_FilenameExtensions = The file name must have one of the following extensions: {0} - -_UI_ModelObject = &Model Object -_UI_XMLEncoding = &XML Encoding -_UI_XMLEncodingChoices = UTF-8 ASCII UTF-16 UTF-16BE UTF-16LE ISO-8859-1 -_UI_Wizard_initial_object_description = Select a model object to create - -_UI_FileConflict_label = File Conflict -_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes? - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.xml deleted file mode 100644 index 713f14fee43..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/plugin.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - %_UI_ElementtypesconfigurationsModelWizard_description - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/pom.xml deleted file mode 100644 index 18f2a8eb0da..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations.editor - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementTypesConfigurationsEditorPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementTypesConfigurationsEditorPlugin.java deleted file mode 100644 index 01c39f3c306..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementTypesConfigurationsEditorPlugin.java +++ /dev/null @@ -1,101 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.presentation; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.ui.EclipseUIPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the ElementTypesConfigurations editor plugin. - * - * - * @generated - */ -public final class ElementTypesConfigurationsEditorPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final ElementTypesConfigurationsEditorPlugin INSTANCE = new ElementTypesConfigurationsEditorPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public ElementTypesConfigurationsEditorPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipseUIPlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsActionBarContributor.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsActionBarContributor.java deleted file mode 100644 index a98ea7f35e2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsActionBarContributor.java +++ /dev/null @@ -1,433 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.presentation; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.ui.viewer.IViewerProvider; - -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; - -import org.eclipse.emf.edit.ui.action.ControlAction; -import org.eclipse.emf.edit.ui.action.CreateChildAction; -import org.eclipse.emf.edit.ui.action.CreateSiblingAction; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.action.LoadResourceAction; -import org.eclipse.emf.edit.ui.action.ValidateAction; - -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.ActionContributionItem; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.action.IContributionItem; -import org.eclipse.jface.action.IContributionManager; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.action.SubContributionItem; - -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.Viewer; - -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.PartInitException; - -/** - * This is the action bar contributor for the Elementtypesconfigurations model editor. - * - * - * @generated - */ -public class ElementtypesconfigurationsActionBarContributor - extends EditingDomainActionBarContributor - implements ISelectionChangedListener { - /** - * This keeps track of the active editor. - * - * - * @generated - */ - protected IEditorPart activeEditorPart; - - /** - * This keeps track of the current selection provider. - * - * - * @generated - */ - protected ISelectionProvider selectionProvider; - - /** - * This action opens the Properties view. - * - * - * @generated - */ - protected IAction showPropertiesViewAction = - new Action(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) { - @Override - public void run() { - try { - getPage().showView("org.eclipse.ui.views.PropertySheet"); - } - catch (PartInitException exception) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * This action refreshes the viewer of the current editor if the editor - * implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. - * - * - * @generated - */ - protected IAction refreshViewerAction = - new Action(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) { - @Override - public boolean isEnabled() { - return activeEditorPart instanceof IViewerProvider; - } - - @Override - public void run() { - if (activeEditorPart instanceof IViewerProvider) { - Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer(); - if (viewer != null) { - viewer.refresh(); - } - } - } - }; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor - * generated for the current selection by the item provider. - * - * - * @generated - */ - protected Collection createChildActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateChild actions. - * - * - * @generated - */ - protected IMenuManager createChildMenuManager; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each descriptor - * generated for the current selection by the item provider. - * - * - * @generated - */ - protected Collection createSiblingActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateSibling actions. - * - * - * @generated - */ - protected IMenuManager createSiblingMenuManager; - - /** - * This creates an instance of the contributor. - * - * - * @generated - */ - public ElementtypesconfigurationsActionBarContributor() { - super(ADDITIONS_LAST_STYLE); - loadResourceAction = new LoadResourceAction(); - validateAction = new ValidateAction(); - controlAction = new ControlAction(); - } - - /** - * This adds Separators for editor additions to the tool bar. - * - * - * @generated - */ - @Override - public void contributeToToolBar(IToolBarManager toolBarManager) { - toolBarManager.add(new Separator("elementtypesconfigurations-settings")); - toolBarManager.add(new Separator("elementtypesconfigurations-additions")); - } - - /** - * This adds to the menu bar a menu and some separators for editor additions, - * as well as the sub-menus for object creation items. - * - * - * @generated - */ - @Override - public void contributeToMenu(IMenuManager menuManager) { - super.contributeToMenu(menuManager); - - IMenuManager submenuManager = new MenuManager(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsEditor_menu"), "org.eclipse.papyrus.infra.elementtypesconfigurationsMenuID"); - menuManager.insertAfter("additions", submenuManager); - submenuManager.add(new Separator("settings")); - submenuManager.add(new Separator("actions")); - submenuManager.add(new Separator("additions")); - submenuManager.add(new Separator("additions-end")); - - // Prepare for CreateChild item addition or removal. - // - createChildMenuManager = new MenuManager(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - submenuManager.insertBefore("additions", createChildMenuManager); - - // Prepare for CreateSibling item addition or removal. - // - createSiblingMenuManager = new MenuManager(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - submenuManager.insertBefore("additions", createSiblingMenuManager); - - // Force an update because Eclipse hides empty menus now. - // - submenuManager.addMenuListener - (new IMenuListener() { - public void menuAboutToShow(IMenuManager menuManager) { - menuManager.updateAll(true); - } - }); - - addGlobalActions(submenuManager); - } - - /** - * When the active editor changes, this remembers the change and registers with it as a selection provider. - * - * - * @generated - */ - @Override - public void setActiveEditor(IEditorPart part) { - super.setActiveEditor(part); - activeEditorPart = part; - - // Switch to the new selection provider. - // - if (selectionProvider != null) { - selectionProvider.removeSelectionChangedListener(this); - } - if (part == null) { - selectionProvider = null; - } - else { - selectionProvider = part.getSite().getSelectionProvider(); - selectionProvider.addSelectionChangedListener(this); - - // Fake a selection changed event to update the menus. - // - if (selectionProvider.getSelection() != null) { - selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection())); - } - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, - * handling {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings - * that can be added to the selected object and updating the menus accordingly. - * - * - * @generated - */ - public void selectionChanged(SelectionChangedEvent event) { - // Remove any menu items for old selection. - // - if (createChildMenuManager != null) { - depopulateManager(createChildMenuManager, createChildActions); - } - if (createSiblingMenuManager != null) { - depopulateManager(createSiblingMenuManager, createSiblingActions); - } - - // Query the new selection for appropriate new child/sibling descriptors - // - Collection newChildDescriptors = null; - Collection newSiblingDescriptors = null; - - ISelection selection = event.getSelection(); - if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) { - Object object = ((IStructuredSelection)selection).getFirstElement(); - - EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain(); - - newChildDescriptors = domain.getNewChildDescriptors(object, null); - newSiblingDescriptors = domain.getNewChildDescriptors(null, object); - } - - // Generate actions for selection; populate and redraw the menus. - // - createChildActions = generateCreateChildActions(newChildDescriptors, selection); - createSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection); - - if (createChildMenuManager != null) { - populateManager(createChildMenuManager, createChildActions, null); - createChildMenuManager.update(true); - } - if (createSiblingMenuManager != null) { - populateManager(createSiblingMenuManager, createSiblingActions, null); - createSiblingMenuManager.update(true); - } - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in descriptors, - * and returns the collection of these actions. - * - * - * @generated - */ - protected Collection generateCreateChildActions(Collection descriptors, ISelection selection) { - Collection actions = new ArrayList(); - if (descriptors != null) { - for (Object descriptor : descriptors) { - actions.add(new CreateChildAction(activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in descriptors, - * and returns the collection of these actions. - * - * - * @generated - */ - protected Collection generateCreateSiblingActions(Collection descriptors, ISelection selection) { - Collection actions = new ArrayList(); - if (descriptors != null) { - for (Object descriptor : descriptors) { - actions.add(new CreateSiblingAction(activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This populates the specified manager with {@link org.eclipse.jface.action.ActionContributionItem}s - * based on the {@link org.eclipse.jface.action.IAction}s contained in the actions collection, - * by inserting them before the specified contribution item contributionID. - * If contributionID is null, they are simply added. - * - * - * @generated - */ - protected void populateManager(IContributionManager manager, Collection actions, String contributionID) { - if (actions != null) { - for (IAction action : actions) { - if (contributionID != null) { - manager.insertBefore(contributionID, action); - } - else { - manager.add(action); - } - } - } - } - - /** - * This removes from the specified manager all {@link org.eclipse.jface.action.ActionContributionItem}s - * based on the {@link org.eclipse.jface.action.IAction}s contained in the actions collection. - * - * - * @generated - */ - protected void depopulateManager(IContributionManager manager, Collection actions) { - if (actions != null) { - IContributionItem[] items = manager.getItems(); - for (int i = 0; i < items.length; i++) { - // Look into SubContributionItems - // - IContributionItem contributionItem = items[i]; - while (contributionItem instanceof SubContributionItem) { - contributionItem = ((SubContributionItem)contributionItem).getInnerItem(); - } - - // Delete the ActionContributionItems with matching action. - // - if (contributionItem instanceof ActionContributionItem) { - IAction action = ((ActionContributionItem)contributionItem).getAction(); - if (actions.contains(action)) { - manager.remove(contributionItem); - } - } - } - } - } - - /** - * This populates the pop-up menu before it appears. - * - * - * @generated - */ - @Override - public void menuAboutToShow(IMenuManager menuManager) { - super.menuAboutToShow(menuManager); - MenuManager submenuManager = null; - - submenuManager = new MenuManager(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - populateManager(submenuManager, createChildActions, null); - menuManager.insertBefore("edit", submenuManager); - - submenuManager = new MenuManager(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - populateManager(submenuManager, createSiblingActions, null); - menuManager.insertBefore("edit", submenuManager); - } - - /** - * This inserts global actions before the "additions-end" separator. - * - * - * @generated - */ - @Override - protected void addGlobalActions(IMenuManager menuManager) { - menuManager.insertAfter("additions-end", new Separator("ui-actions")); - menuManager.insertAfter("ui-actions", showPropertiesViewAction); - - refreshViewerAction.setEnabled(refreshViewerAction.isEnabled()); - menuManager.insertAfter("ui-actions", refreshViewerAction); - - super.addGlobalActions(menuManager); - } - - /** - * This ensures that a delete action will clean up all references to deleted objects. - * - * - * @generated - */ - @Override - protected boolean removeAllReferencesOnDelete() { - return true; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsEditor.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsEditor.java deleted file mode 100644 index 88785642353..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsEditor.java +++ /dev/null @@ -1,1868 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.presentation; - - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.EventObject; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeEvent; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.emf.common.command.BasicCommandStack; -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.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.ui.MarkerHelper; -import org.eclipse.emf.common.ui.ViewerPane; -import org.eclipse.emf.common.ui.editor.ProblemEditorPart; -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EContentAdapter; -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.AdapterFactoryItemDelegator; -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.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; -import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; -import org.eclipse.emf.edit.ui.dnd.LocalTransfer; -import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; -import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; -import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; -import org.eclipse.emf.edit.ui.util.EditUIUtil; -import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IStatusLineManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.util.LocalSelectionTransfer; -import org.eclipse.jface.viewers.ColumnWeightData; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.ListViewer; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.StructuredViewer; -import org.eclipse.jface.viewers.TableLayout; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementtypesconfigurationsItemProviderAdapterFactory; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.CTabFolder; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.FileTransfer; -import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.events.ControlAdapter; -import org.eclipse.swt.events.ControlEvent; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.layout.FillLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.Table; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.swt.widgets.Tree; -import org.eclipse.swt.widgets.TreeColumn; -import org.eclipse.ui.IActionBars; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IEditorSite; -import org.eclipse.ui.IPartListener; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.SaveAsDialog; -import org.eclipse.ui.ide.IGotoMarker; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.MultiPageEditorPart; -import org.eclipse.ui.views.contentoutline.ContentOutline; -import org.eclipse.ui.views.contentoutline.ContentOutlinePage; -import org.eclipse.ui.views.contentoutline.IContentOutlinePage; -import org.eclipse.ui.views.properties.IPropertySheetPage; -import org.eclipse.ui.views.properties.PropertySheet; -import org.eclipse.ui.views.properties.PropertySheetPage; - - -/** - * This is an example of a Elementtypesconfigurations model editor. - * - * - * - * @generated - */ -public class ElementtypesconfigurationsEditor - extends MultiPageEditorPart - implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker { - /** - * This keeps track of the editing domain that is used to track all changes to the model. - * - * - * - * @generated - */ - protected AdapterFactoryEditingDomain editingDomain; - - /** - * This is the one adapter factory used for providing views of the model. - * - * - * - * @generated - */ - protected ComposedAdapterFactory adapterFactory; - - /** - * This is the content outline page. - * - * - * - * @generated - */ - protected IContentOutlinePage contentOutlinePage; - - /** - * This is a kludge... - * - * - * - * @generated - */ - protected IStatusLineManager contentOutlineStatusLineManager; - - /** - * This is the content outline page's viewer. - * - * - * - * @generated - */ - protected TreeViewer contentOutlineViewer; - - /** - * This is the property sheet page. - * - * - * - * @generated - */ - protected List propertySheetPages = new ArrayList(); - - /** - * This is the viewer that shadows the selection in the content outline. - * The parent relation must be correctly defined for this to work. - * - * - * - * @generated - */ - protected TreeViewer selectionViewer; - - /** - * This inverts the roll of parent and child in the content provider and show parents as a tree. - * - * - * - * @generated - */ - protected TreeViewer parentViewer; - - /** - * This shows how a tree view works. - * - * - * - * @generated - */ - protected TreeViewer treeViewer; - - /** - * This shows how a list view works. - * A list viewer doesn't support icons. - * - * - * - * @generated - */ - protected ListViewer listViewer; - - /** - * This shows how a table view works. - * A table can be used as a list with icons. - * - * - * - * @generated - */ - protected TableViewer tableViewer; - - /** - * This shows how a tree view with columns works. - * - * - * - * @generated - */ - protected TreeViewer treeViewerWithColumns; - - /** - * This keeps track of the active viewer pane, in the book. - * - * - * - * @generated - */ - protected ViewerPane currentViewerPane; - - /** - * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer. - * - * - * - * @generated - */ - protected Viewer currentViewer; - - /** - * This listens to which ever viewer is active. - * - * - * - * @generated - */ - protected ISelectionChangedListener selectionChangedListener; - - /** - * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor. - * - * - * - * @generated - */ - protected Collection selectionChangedListeners = new ArrayList(); - - /** - * This keeps track of the selection of the editor as a whole. - * - * - * - * @generated - */ - protected ISelection editorSelection = StructuredSelection.EMPTY; - - /** - * The MarkerHelper is responsible for creating workspace resource markers presented - * in Eclipse's Problems View. - * - * - * - * @generated - */ - protected MarkerHelper markerHelper = new EditUIMarkerHelper(); - - /** - * This listens for when the outline becomes active - * - * - * - * @generated - */ - protected IPartListener partListener = - new IPartListener() { - public void partActivated(IWorkbenchPart p) { - if (p instanceof ContentOutline) { - if (((ContentOutline) p).getCurrentPage() == contentOutlinePage) { - getActionBarContributor().setActiveEditor(ElementtypesconfigurationsEditor.this); - - setCurrentViewer(contentOutlineViewer); - } - } - else if (p instanceof PropertySheet) { - if (propertySheetPages.contains(((PropertySheet) p).getCurrentPage())) { - getActionBarContributor().setActiveEditor(ElementtypesconfigurationsEditor.this); - handleActivate(); - } - } - else if (p == ElementtypesconfigurationsEditor.this) { - handleActivate(); - } - } - - public void partBroughtToTop(IWorkbenchPart p) { - // Ignore. - } - - public void partClosed(IWorkbenchPart p) { - // Ignore. - } - - public void partDeactivated(IWorkbenchPart p) { - // Ignore. - } - - public void partOpened(IWorkbenchPart p) { - // Ignore. - } - }; - - /** - * Resources that have been removed since last activation. - * - * - * - * @generated - */ - protected Collection removedResources = new ArrayList(); - - /** - * Resources that have been changed since last activation. - * - * - * - * @generated - */ - protected Collection changedResources = new ArrayList(); - - /** - * Resources that have been saved. - * - * - * - * @generated - */ - protected Collection savedResources = new ArrayList(); - - /** - * Map to store the diagnostic associated with a resource. - * - * - * - * @generated - */ - protected Map resourceToDiagnosticMap = new LinkedHashMap(); - - /** - * Controls whether the problem indication should be updated. - * - * - * - * @generated - */ - protected boolean updateProblemIndication = true; - - /** - * Adapter used to update the problem indication when resources are demanded loaded. - * - * - * - * @generated - */ - protected EContentAdapter problemIndicationAdapter = - new EContentAdapter() { - @Override - public void notifyChanged(Notification notification) { - if (notification.getNotifier() instanceof Resource) { - switch (notification.getFeatureID(Resource.class)) { - case Resource.RESOURCE__IS_LOADED: - case Resource.RESOURCE__ERRORS: - case Resource.RESOURCE__WARNINGS: { - Resource resource = (Resource) notification.getNotifier(); - Diagnostic diagnostic = analyzeResourceProblems(resource, null); - if (diagnostic.getSeverity() != Diagnostic.OK) { - resourceToDiagnosticMap.put(resource, diagnostic); - } - else { - resourceToDiagnosticMap.remove(resource); - } - - if (updateProblemIndication) { - getSite().getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - updateProblemIndication(); - } - }); - } - break; - } - } - } - else { - super.notifyChanged(notification); - } - } - - @Override - protected void setTarget(Resource target) { - basicSetTarget(target); - } - - @Override - protected void unsetTarget(Resource target) { - basicUnsetTarget(target); - resourceToDiagnosticMap.remove(target); - if (updateProblemIndication) { - getSite().getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - updateProblemIndication(); - } - }); - } - } - }; - - /** - * This listens for workspace changes. - * - * - * - * @generated - */ - protected IResourceChangeListener resourceChangeListener = - new IResourceChangeListener() { - public void resourceChanged(IResourceChangeEvent event) { - IResourceDelta delta = event.getDelta(); - try { - class ResourceDeltaVisitor implements IResourceDeltaVisitor { - protected ResourceSet resourceSet = editingDomain.getResourceSet(); - protected Collection changedResources = new ArrayList(); - protected Collection removedResources = new ArrayList(); - - public boolean visit(IResourceDelta delta) { - if (delta.getResource().getType() == IResource.FILE) { - if (delta.getKind() == IResourceDelta.REMOVED || - delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) { - Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false); - if (resource != null) { - if (delta.getKind() == IResourceDelta.REMOVED) { - removedResources.add(resource); - } - else if (!savedResources.remove(resource)) { - changedResources.add(resource); - } - } - } - return false; - } - - return true; - } - - public Collection getChangedResources() { - return changedResources; - } - - public Collection getRemovedResources() { - return removedResources; - } - } - - final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); - delta.accept(visitor); - - if (!visitor.getRemovedResources().isEmpty()) { - getSite().getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - removedResources.addAll(visitor.getRemovedResources()); - if (!isDirty()) { - getSite().getPage().closeEditor(ElementtypesconfigurationsEditor.this, false); - } - } - }); - } - - if (!visitor.getChangedResources().isEmpty()) { - getSite().getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - changedResources.addAll(visitor.getChangedResources()); - if (getSite().getPage().getActiveEditor() == ElementtypesconfigurationsEditor.this) { - handleActivate(); - } - } - }); - } - } - catch (CoreException exception) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * Handles activation of the editor or it's associated views. - * - * - * - * @generated - */ - protected void handleActivate() { - // Recompute the read only state. - // - if (editingDomain.getResourceToReadOnlyMap() != null) { - editingDomain.getResourceToReadOnlyMap().clear(); - - // Refresh any actions that may become enabled or disabled. - // - setSelection(getSelection()); - } - - if (!removedResources.isEmpty()) { - if (handleDirtyConflict()) { - getSite().getPage().closeEditor(ElementtypesconfigurationsEditor.this, false); - } - else { - removedResources.clear(); - changedResources.clear(); - savedResources.clear(); - } - } - else if (!changedResources.isEmpty()) { - changedResources.removeAll(savedResources); - handleChangedResources(); - changedResources.clear(); - savedResources.clear(); - } - } - - /** - * Handles what to do with changed resources on activation. - * - * - * - * @generated - */ - protected void handleChangedResources() { - if (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict())) { - if (isDirty()) { - changedResources.addAll(editingDomain.getResourceSet().getResources()); - } - editingDomain.getCommandStack().flush(); - - updateProblemIndication = false; - for (Resource resource : changedResources) { - if (resource.isLoaded()) { - resource.unload(); - try { - resource.load(Collections.EMPTY_MAP); - } catch (IOException exception) { - if (!resourceToDiagnosticMap.containsKey(resource)) { - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - } - } - } - - if (AdapterFactoryEditingDomain.isStale(editorSelection)) { - setSelection(StructuredSelection.EMPTY); - } - - updateProblemIndication = true; - updateProblemIndication(); - } - } - - /** - * Updates the problems indication with the information described in the specified diagnostic. - * - * - * - * @generated - */ - protected void updateProblemIndication() { - if (updateProblemIndication) { - BasicDiagnostic diagnostic = - new BasicDiagnostic - (Diagnostic.OK, - "org.eclipse.papyrus.infra.elementtypesconfigurations.editor", - 0, - null, - new Object[] { editingDomain.getResourceSet() }); - for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) { - if (childDiagnostic.getSeverity() != Diagnostic.OK) { - diagnostic.add(childDiagnostic); - } - } - - int lastEditorPage = getPageCount() - 1; - if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) { - ((ProblemEditorPart) getEditor(lastEditorPage)).setDiagnostic(diagnostic); - if (diagnostic.getSeverity() != Diagnostic.OK) { - setActivePage(lastEditorPage); - } - } - else if (diagnostic.getSeverity() != Diagnostic.OK) { - ProblemEditorPart problemEditorPart = new ProblemEditorPart(); - problemEditorPart.setDiagnostic(diagnostic); - problemEditorPart.setMarkerHelper(markerHelper); - try { - addPage(++lastEditorPage, problemEditorPart, getEditorInput()); - setPageText(lastEditorPage, problemEditorPart.getPartName()); - setActivePage(lastEditorPage); - showTabs(); - } catch (PartInitException exception) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - } - } - - if (markerHelper.hasMarkers(editingDomain.getResourceSet())) { - markerHelper.deleteMarkers(editingDomain.getResourceSet()); - if (diagnostic.getSeverity() != Diagnostic.OK) { - try { - markerHelper.createMarkers(diagnostic); - } catch (CoreException exception) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - } - } - } - } - } - - /** - * Shows a dialog that asks if conflicting changes should be discarded. - * - * - * - * @generated - */ - protected boolean handleDirtyConflict() { - return MessageDialog.openQuestion - (getSite().getShell(), - getString("_UI_FileConflict_label"), - getString("_WARN_FileConflict")); - } - - /** - * This creates a model editor. - * - * - * - * @generated - */ - public ElementtypesconfigurationsEditor() { - super(); - initializeEditingDomain(); - } - - /** - * This sets up the editing domain for the model editor. - * - * - * - * @generated - */ - protected void initializeEditingDomain() { - // Create an adapter factory that yields item providers. - // - adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); - - adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); - adapterFactory.addAdapterFactory(new ElementtypesconfigurationsItemProviderAdapterFactory()); - adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); - - // Create the command stack that will notify this editor as commands are executed. - // - BasicCommandStack commandStack = new BasicCommandStack(); - - // Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus. - // - commandStack.addCommandStackListener - (new CommandStackListener() { - public void commandStackChanged(final EventObject event) { - getContainer().getDisplay().asyncExec - (new Runnable() { - 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()); - } - for (Iterator i = propertySheetPages.iterator(); i.hasNext();) { - PropertySheetPage propertySheetPage = i.next(); - if (propertySheetPage.getControl().isDisposed()) { - i.remove(); - } - else { - propertySheetPage.refresh(); - } - } - } - }); - } - }); - - // Create the editing domain with a special command stack. - // - editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap()); - } - - /** - * This is here for the listener to be able to call it. - * - * - * - * @generated - */ - @Override - protected void firePropertyChange(int action) { - super.firePropertyChange(action); - } - - /** - * This sets the selection into whichever viewer is active. - * - * - * - * @generated - */ - public void setSelectionToViewer(Collection collection) { - final Collection theSelection = collection; - // Make sure it's okay. - // - if (theSelection != null && !theSelection.isEmpty()) { - Runnable runnable = - new Runnable() { - public void run() { - // Try to select the items in the current content viewer of the editor. - // - if (currentViewer != null) { - currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true); - } - } - }; - getSite().getShell().getDisplay().asyncExec(runnable); - } - } - - /** - * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. - * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}. - * - * - * - * @generated - */ - public EditingDomain getEditingDomain() { - return editingDomain; - } - - /** - * - * - * - * @generated - */ - public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider { - /** - * - * - * - * @generated - */ - public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * - * - * - * @generated - */ - @Override - public Object[] getElements(Object object) { - Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * - * @generated - */ - @Override - public Object[] getChildren(Object object) { - Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean hasChildren(Object object) { - Object parent = super.getParent(object); - return parent != null; - } - - /** - * - * - * - * @generated - */ - @Override - public Object getParent(Object object) { - return null; - } - } - - /** - * - * - * - * @generated - */ - public void setCurrentViewerPane(ViewerPane viewerPane) { - if (currentViewerPane != viewerPane) { - if (currentViewerPane != null) { - currentViewerPane.showFocus(false); - } - currentViewerPane = viewerPane; - } - setCurrentViewer(currentViewerPane.getViewer()); - } - - /** - * This makes sure that one content viewer, either for the current page or the outline view, if it has focus, - * is the current one. - * - * - * - * @generated - */ - public void setCurrentViewer(Viewer viewer) { - // If it is changing... - // - if (currentViewer != viewer) { - if (selectionChangedListener == null) { - // Create the listener on demand. - // - selectionChangedListener = - new ISelectionChangedListener() { - // This just notifies those things that are affected by the section. - // - public void selectionChanged(SelectionChangedEvent selectionChangedEvent) { - setSelection(selectionChangedEvent.getSelection()); - } - }; - } - - // Stop listening to the old one. - // - if (currentViewer != null) { - currentViewer.removeSelectionChangedListener(selectionChangedListener); - } - - // Start listening to the new one. - // - if (viewer != null) { - viewer.addSelectionChangedListener(selectionChangedListener); - } - - // Remember it. - // - currentViewer = viewer; - - // Set the editors selection based on the current viewer's selection. - // - setSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection()); - } - } - - /** - * This returns the viewer as required by the {@link IViewerProvider} interface. - * - * - * - * @generated - */ - public Viewer getViewer() { - return currentViewer; - } - - /** - * This creates a context menu for the viewer and adds a listener as well registering the menu for extension. - * - * - * - * @generated - */ - protected void createContextMenuFor(StructuredViewer viewer) { - MenuManager contextMenu = new MenuManager("#PopUp"); - contextMenu.add(new Separator("additions")); - contextMenu.setRemoveAllWhenShown(true); - contextMenu.addMenuListener(this); - Menu menu = contextMenu.createContextMenu(viewer.getControl()); - viewer.getControl().setMenu(menu); - getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); - - int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; - Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance(), LocalSelectionTransfer.getTransfer(), FileTransfer.getInstance() }; - viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); - viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer)); - } - - /** - * This is the method called to load a resource into the editing domain's resource set based on the editor's input. - * - * - * - * @generated - */ - public void createModel() { - URI resourceURI = EditUIUtil.getURI(getEditorInput()); - Exception exception = null; - Resource resource = null; - try { - // Load the resource through the editing domain. - // - resource = editingDomain.getResourceSet().getResource(resourceURI, true); - } catch (Exception e) { - exception = e; - resource = editingDomain.getResourceSet().getResource(resourceURI, false); - } - - Diagnostic diagnostic = analyzeResourceProblems(resource, exception); - if (diagnostic.getSeverity() != Diagnostic.OK) { - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter); - } - - /** - * Returns a diagnostic describing the errors and warnings listed in the resource - * and the specified exception (if any). - * - * - * - * @generated - */ - public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) { - if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) { - BasicDiagnostic basicDiagnostic = - new BasicDiagnostic - (Diagnostic.ERROR, - "org.eclipse.papyrus.infra.elementtypesconfigurations.editor", - 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception == null ? (Object) resource : exception }); - basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); - return basicDiagnostic; - } - else if (exception != null) { - return new BasicDiagnostic(Diagnostic.ERROR, - "org.eclipse.papyrus.infra.elementtypesconfigurations.editor", - 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception }); - } - else { - return Diagnostic.OK_INSTANCE; - } - } - - /** - * This is the method used by the framework to install your own controls. - * - * - * - * @generated - */ - @Override - public void createPages() { - // Creates the model from the editor input - // - createModel(); - - // 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. - // - { - ViewerPane viewerPane = - new ViewerPane(getSite().getPage(), ElementtypesconfigurationsEditor.this) { - @Override - public Viewer createViewer(Composite composite) { - Tree tree = new Tree(composite, SWT.MULTI); - TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - setCurrentViewerPane(this); - } - }; - viewerPane.createControl(getContainer()); - - selectionViewer = (TreeViewer) viewerPane.getViewer(); - selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - - selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - selectionViewer.setInput(editingDomain.getResourceSet()); - selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); - viewerPane.setTitle(editingDomain.getResourceSet()); - - new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory); - - createContextMenuFor(selectionViewer); - int pageIndex = addPage(viewerPane.getControl()); - setPageText(pageIndex, getString("_UI_SelectionPage_label")); - } - - // Create a page for the parent tree view. - // - { - ViewerPane viewerPane = - new ViewerPane(getSite().getPage(), ElementtypesconfigurationsEditor.this) { - @Override - public Viewer createViewer(Composite composite) { - Tree tree = new Tree(composite, SWT.MULTI); - TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - setCurrentViewerPane(this); - } - }; - viewerPane.createControl(getContainer()); - - parentViewer = (TreeViewer) viewerPane.getViewer(); - parentViewer.setAutoExpandLevel(30); - parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory)); - parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - - createContextMenuFor(parentViewer); - int pageIndex = addPage(viewerPane.getControl()); - setPageText(pageIndex, getString("_UI_ParentPage_label")); - } - - // This is the page for the list viewer - // - { - ViewerPane viewerPane = - new ViewerPane(getSite().getPage(), ElementtypesconfigurationsEditor.this) { - @Override - public Viewer createViewer(Composite composite) { - return new ListViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - setCurrentViewerPane(this); - } - }; - viewerPane.createControl(getContainer()); - listViewer = (ListViewer) viewerPane.getViewer(); - listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - - createContextMenuFor(listViewer); - int pageIndex = addPage(viewerPane.getControl()); - setPageText(pageIndex, getString("_UI_ListPage_label")); - } - - // This is the page for the tree viewer - // - { - ViewerPane viewerPane = - new ViewerPane(getSite().getPage(), ElementtypesconfigurationsEditor.this) { - @Override - public Viewer createViewer(Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - setCurrentViewerPane(this); - } - }; - viewerPane.createControl(getContainer()); - treeViewer = (TreeViewer) viewerPane.getViewer(); - treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - - new AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory); - - createContextMenuFor(treeViewer); - int pageIndex = addPage(viewerPane.getControl()); - setPageText(pageIndex, getString("_UI_TreePage_label")); - } - - // This is the page for the table viewer. - // - { - ViewerPane viewerPane = - new ViewerPane(getSite().getPage(), ElementtypesconfigurationsEditor.this) { - @Override - public Viewer createViewer(Composite composite) { - return new TableViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - setCurrentViewerPane(this); - } - }; - viewerPane.createControl(getContainer()); - tableViewer = (TableViewer) viewerPane.getViewer(); - - Table table = tableViewer.getTable(); - TableLayout layout = new TableLayout(); - table.setLayout(layout); - table.setHeaderVisible(true); - table.setLinesVisible(true); - - TableColumn objectColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(3, 100, true)); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - - TableColumn selfColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(2, 100, true)); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - - tableViewer.setColumnProperties(new String[] { "a", "b" }); - tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - - createContextMenuFor(tableViewer); - int pageIndex = addPage(viewerPane.getControl()); - setPageText(pageIndex, getString("_UI_TablePage_label")); - } - - // This is the page for the table tree viewer. - // - { - ViewerPane viewerPane = - new ViewerPane(getSite().getPage(), ElementtypesconfigurationsEditor.this) { - @Override - public Viewer createViewer(Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - setCurrentViewerPane(this); - } - }; - viewerPane.createControl(getContainer()); - - treeViewerWithColumns = (TreeViewer) viewerPane.getViewer(); - - Tree tree = treeViewerWithColumns.getTree(); - tree.setLayoutData(new FillLayout()); - tree.setHeaderVisible(true); - tree.setLinesVisible(true); - - TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - objectColumn.setWidth(250); - - TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - selfColumn.setWidth(200); - - treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" }); - treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - - createContextMenuFor(treeViewerWithColumns); - int pageIndex = addPage(viewerPane.getControl()); - setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label")); - } - - getSite().getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - setActivePage(0); - } - }); - } - - // 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; - } - } - }); - - getSite().getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - updateProblemIndication(); - } - }); - } - - /** - * If there is just one page in the multi-page editor part, - * this hides the single tab at the bottom. - * - * - * - * @generated - */ - protected void hideTabs() { - if (getPageCount() <= 1) { - setPageText(0, ""); - if (getContainer() instanceof CTabFolder) { - ((CTabFolder) getContainer()).setTabHeight(1); - Point point = getContainer().getSize(); - getContainer().setSize(point.x, point.y + 6); - } - } - } - - /** - * If there is more than one page in the multi-page editor part, - * this shows the tabs at the bottom. - * - * - * - * @generated - */ - protected void showTabs() { - if (getPageCount() > 1) { - setPageText(0, getString("_UI_SelectionPage_label")); - if (getContainer() instanceof CTabFolder) { - ((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT); - Point point = getContainer().getSize(); - getContainer().setSize(point.x, point.y - 6); - } - } - } - - /** - * This is used to track the active viewer. - * - * - * - * @generated - */ - @Override - protected void pageChange(int pageIndex) { - super.pageChange(pageIndex); - - if (contentOutlinePage != null) { - handleContentOutlineSelection(contentOutlinePage.getSelection()); - } - } - - /** - * This is how the framework determines which interfaces we implement. - * - * - * - * @generated - */ - @SuppressWarnings("rawtypes") - @Override - public Object getAdapter(Class key) { - if (key.equals(IContentOutlinePage.class)) { - return showOutlineView() ? getContentOutlinePage() : null; - } - else if (key.equals(IPropertySheetPage.class)) { - return getPropertySheetPage(); - } - else if (key.equals(IGotoMarker.class)) { - return this; - } - else { - return super.getAdapter(key); - } - } - - /** - * This accesses a cached version of the content outliner. - * - * - * - * @generated - */ - public IContentOutlinePage getContentOutlinePage() { - if (contentOutlinePage == null) { - // The content outline is just a tree. - // - class MyContentOutlinePage extends ContentOutlinePage { - @Override - public void createControl(Composite parent) { - super.createControl(parent); - contentOutlineViewer = getTreeViewer(); - contentOutlineViewer.addSelectionChangedListener(this); - - // Set up the tree viewer. - // - contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - contentOutlineViewer.setInput(editingDomain.getResourceSet()); - - // Make sure our popups work. - // - createContextMenuFor(contentOutlineViewer); - - if (!editingDomain.getResourceSet().getResources().isEmpty()) { - // Select the root object in the view. - // - contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); - } - } - - @Override - public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) { - super.makeContributions(menuManager, toolBarManager, statusLineManager); - contentOutlineStatusLineManager = statusLineManager; - } - - @Override - public void setActionBars(IActionBars actionBars) { - super.setActionBars(actionBars); - getActionBarContributor().shareGlobalActions(this, actionBars); - } - } - - contentOutlinePage = new MyContentOutlinePage(); - - // Listen to selection so that we can handle it is a special way. - // - contentOutlinePage.addSelectionChangedListener - (new ISelectionChangedListener() { - // This ensures that we handle selections correctly. - // - public void selectionChanged(SelectionChangedEvent event) { - handleContentOutlineSelection(event.getSelection()); - } - }); - } - - return contentOutlinePage; - } - - /** - * This accesses a cached version of the property sheet. - * - * - * - * @generated - */ - public IPropertySheetPage getPropertySheetPage() { - PropertySheetPage propertySheetPage = - new ExtendedPropertySheetPage(editingDomain) { - @Override - public void setSelectionToViewer(List selection) { - ElementtypesconfigurationsEditor.this.setSelectionToViewer(selection); - ElementtypesconfigurationsEditor.this.setFocus(); - } - - @Override - public void setActionBars(IActionBars actionBars) { - super.setActionBars(actionBars); - getActionBarContributor().shareGlobalActions(this, actionBars); - } - }; - propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory)); - propertySheetPages.add(propertySheetPage); - - return propertySheetPage; - } - - /** - * This deals with how we want selection in the outliner to affect the other views. - * - * - * - * @generated - */ - public void handleContentOutlineSelection(ISelection selection) { - if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { - Iterator selectedElements = ((IStructuredSelection) selection).iterator(); - if (selectedElements.hasNext()) { - // Get the first selected element. - // - Object selectedElement = selectedElements.next(); - - // If it's the selection viewer, then we want it to select the same selection as this selection. - // - if (currentViewerPane.getViewer() == selectionViewer) { - ArrayList selectionList = new ArrayList(); - selectionList.add(selectedElement); - while (selectedElements.hasNext()) { - selectionList.add(selectedElements.next()); - } - - // Set the selection to the widget. - // - selectionViewer.setSelection(new StructuredSelection(selectionList)); - } - else { - // Set the input to the widget. - // - if (currentViewerPane.getViewer().getInput() != selectedElement) { - currentViewerPane.getViewer().setInput(selectedElement); - currentViewerPane.setTitle(selectedElement); - } - } - } - } - } - - /** - * This is for implementing {@link IEditorPart} and simply tests the command stack. - * - * - * - * @generated - */ - @Override - public boolean isDirty() { - return ((BasicCommandStack) editingDomain.getCommandStack()).isSaveNeeded(); - } - - /** - * This is for implementing {@link IEditorPart} and simply saves the model file. - * - * - * - * @generated - */ - @Override - public void doSave(IProgressMonitor progressMonitor) { - // Save only resources that have actually changed. - // - final Map saveOptions = new HashMap(); - saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); - saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); - - // Do the work within an operation because this is a long running activity that modifies the workbench. - // - WorkspaceModifyOperation operation = - new WorkspaceModifyOperation() { - // This is the method that gets invoked when the operation runs. - // - @Override - public void execute(IProgressMonitor monitor) { - // Save the resources to the file system. - // - boolean first = true; - for (Resource resource : editingDomain.getResourceSet().getResources()) { - if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) { - try { - long timeStamp = resource.getTimeStamp(); - resource.save(saveOptions); - if (resource.getTimeStamp() != timeStamp) { - savedResources.add(resource); - } - } - catch (Exception exception) { - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - first = false; - } - } - } - }; - - updateProblemIndication = false; - try { - // This runs the options, and shows progress. - // - new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation); - - // Refresh the necessary state. - // - ((BasicCommandStack) editingDomain.getCommandStack()).saveIsDone(); - firePropertyChange(IEditorPart.PROP_DIRTY); - } catch (Exception exception) { - // Something went wrong that shouldn't. - // - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - } - updateProblemIndication = true; - updateProblemIndication(); - } - - /** - * This returns whether something has been persisted to the URI of the specified resource. - * The implementation uses the URI converter from the editor's resource set to try to open an input stream. - * - * - * - * @generated - */ - protected boolean isPersisted(Resource resource) { - boolean result = false; - try { - InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); - if (stream != null) { - result = true; - stream.close(); - } - } catch (IOException e) { - // Ignore - } - return result; - } - - /** - * This always returns true because it is not currently supported. - * - * - * - * @generated - */ - @Override - public boolean isSaveAsAllowed() { - return true; - } - - /** - * This also changes the editor's input. - * - * - * - * @generated - */ - @Override - public void doSaveAs() { - SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell()); - saveAsDialog.open(); - IPath path = saveAsDialog.getResult(); - if (path != null) { - IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); - if (file != null) { - doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file)); - } - } - } - - /** - * - * - * - * @generated - */ - protected void doSaveAs(URI uri, IEditorInput editorInput) { - (editingDomain.getResourceSet().getResources().get(0)).setURI(uri); - setInputWithNotify(editorInput); - setPartName(editorInput.getName()); - IProgressMonitor progressMonitor = - getActionBars().getStatusLineManager() != null ? - getActionBars().getStatusLineManager().getProgressMonitor() : - new NullProgressMonitor(); - doSave(progressMonitor); - } - - /** - * - * - * - * @generated - */ - public void gotoMarker(IMarker marker) { - List targetObjects = markerHelper.getTargetObjects(editingDomain, marker); - if (!targetObjects.isEmpty()) { - setSelectionToViewer(targetObjects); - } - } - - /** - * This is called during startup. - * - * - * - * @generated - */ - @Override - public void init(IEditorSite site, IEditorInput editorInput) { - setSite(site); - setInputWithNotify(editorInput); - setPartName(editorInput.getName()); - site.setSelectionProvider(this); - site.getPage().addPartListener(partListener); - ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE); - } - - /** - * - * - * - * @generated - */ - @Override - public void setFocus() { - if (currentViewerPane != null) { - currentViewerPane.setFocus(); - } - else { - getControl(getActivePage()).setFocus(); - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * - * @generated - */ - public void addSelectionChangedListener(ISelectionChangedListener listener) { - selectionChangedListeners.add(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * - * @generated - */ - public void removeSelectionChangedListener(ISelectionChangedListener listener) { - selectionChangedListeners.remove(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection. - * - * - * - * @generated - */ - public ISelection getSelection() { - return editorSelection; - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection. - * Calling this result will notify the listeners. - * - * - * - * @generated - */ - public void setSelection(ISelection selection) { - editorSelection = selection; - - for (ISelectionChangedListener listener : selectionChangedListeners) { - listener.selectionChanged(new SelectionChangedEvent(this, selection)); - } - setStatusLineManager(selection); - } - - /** - * - * - * - * @generated - */ - public void setStatusLineManager(ISelection selection) { - IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ? - contentOutlineStatusLineManager : getActionBars().getStatusLineManager(); - - if (statusLineManager != null) { - if (selection instanceof IStructuredSelection) { - Collection collection = ((IStructuredSelection) selection).toList(); - switch (collection.size()) { - case 0: { - statusLineManager.setMessage(getString("_UI_NoObjectSelected")); - break; - } - case 1: { - String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next()); - statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); - break; - } - default: { - statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size()))); - break; - } - } - } - else { - statusLineManager.setMessage(""); - } - } - } - - /** - * This looks up a string in the plugin's plugin.properties file. - * - * - * - * @generated - */ - private static String getString(String key) { - return ElementTypesConfigurationsEditorPlugin.INSTANCE.getString(key); - } - - /** - * This looks up a string in plugin.properties, making a substitution. - * - * - * - * @generated - */ - private static String getString(String key, Object s1) { - return ElementTypesConfigurationsEditorPlugin.INSTANCE.getString(key, new Object[] { s1 }); - } - - /** - * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu. - * - * - * - * @generated - */ - public void menuAboutToShow(IMenuManager menuManager) { - ((IMenuListener) getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager); - } - - /** - * - * - * - * @generated - */ - public EditingDomainActionBarContributor getActionBarContributor() { - return (EditingDomainActionBarContributor) getEditorSite().getActionBarContributor(); - } - - /** - * - * - * - * @generated - */ - public IActionBars getActionBars() { - return getActionBarContributor().getActionBars(); - } - - /** - * - * - * - * @generated - */ - public AdapterFactory getAdapterFactory() { - return adapterFactory; - } - - /** - * - * - * - * @generated - */ - @Override - public void dispose() { - updateProblemIndication = false; - - ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener); - - getSite().getPage().removePartListener(partListener); - - adapterFactory.dispose(); - - if (getActionBarContributor().getActiveEditor() == this) { - getActionBarContributor().setActiveEditor(null); - } - - for (PropertySheetPage propertySheetPage : propertySheetPages) { - propertySheetPage.dispose(); - } - - if (contentOutlinePage != null) { - contentOutlinePage.dispose(); - } - - super.dispose(); - } - - /** - * Returns whether the outline view should be presented to the user. - * - * - * - * @generated - */ - protected boolean showOutlineView() { - return true; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsModelWizard.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsModelWizard.java deleted file mode 100644 index 3d1d3fc3065..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/presentation/ElementtypesconfigurationsModelWizard.java +++ /dev/null @@ -1,640 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.presentation; - - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.MissingResourceException; -import java.util.StringTokenizer; - -import org.eclipse.emf.common.CommonPlugin; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; - -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.ecore.EObject; - -import org.eclipse.emf.ecore.xmi.XMLResource; - -import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; - -import org.eclipse.core.runtime.IProgressMonitor; - -import org.eclipse.jface.dialogs.MessageDialog; - -import org.eclipse.jface.viewers.IStructuredSelection; - -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.jface.wizard.WizardPage; - -import org.eclipse.swt.SWT; - -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.events.ModifyEvent; - -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; - -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; - -import org.eclipse.ui.INewWizard; -import org.eclipse.ui.IWorkbench; - -import org.eclipse.ui.actions.WorkspaceModifyOperation; - -import org.eclipse.ui.dialogs.WizardNewFileCreationPage; - -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.ISetSelectionTarget; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - - -import org.eclipse.core.runtime.Path; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.StructuredSelection; - -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PartInitException; - - -/** - * This is a simple wizard for creating a new model file. - * - * - * @generated - */ -public class ElementtypesconfigurationsModelWizard extends Wizard implements INewWizard { - /** - * The supported extensions for created files. - * - * - * @generated - */ - public static final List FILE_EXTENSIONS = - Collections.unmodifiableList(Arrays.asList(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsEditorFilenameExtensions").split("\\s*,\\s*"))); - - /** - * A formatted list of supported file extensions, suitable for display. - * - * - * @generated - */ - public static final String FORMATTED_FILE_EXTENSIONS = - ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", "); - - /** - * This caches an instance of the model package. - * - * - * @generated - */ - protected ElementtypesconfigurationsPackage elementtypesconfigurationsPackage = ElementtypesconfigurationsPackage.eINSTANCE; - - /** - * This caches an instance of the model factory. - * - * - * @generated - */ - protected ElementtypesconfigurationsFactory elementtypesconfigurationsFactory = elementtypesconfigurationsPackage.getElementtypesconfigurationsFactory(); - - /** - * This is the file creation page. - * - * - * @generated - */ - protected ElementtypesconfigurationsModelWizardNewFileCreationPage newFileCreationPage; - - /** - * This is the initial object creation page. - * - * - * @generated - */ - protected ElementtypesconfigurationsModelWizardInitialObjectCreationPage initialObjectCreationPage; - - /** - * Remember the selection during initialization for populating the default container. - * - * - * @generated - */ - protected IStructuredSelection selection; - - /** - * Remember the workbench during initialization. - * - * - * @generated - */ - protected IWorkbench workbench; - - /** - * Caches the names of the types that can be created as the root object. - * - * - * @generated - */ - protected List initialObjectNames; - - /** - * This just records the information. - * - * - * @generated - */ - public void init(IWorkbench workbench, IStructuredSelection selection) { - this.workbench = workbench; - this.selection = selection; - setWindowTitle(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); - setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(ElementTypesConfigurationsEditorPlugin.INSTANCE.getImage("full/wizban/NewElementtypesconfigurations"))); - } - - /** - * Returns the names of the types that can be created as the root object. - * - * - * @generated - */ - protected Collection getInitialObjectNames() { - if (initialObjectNames == null) { - initialObjectNames = new ArrayList(); - for (EClassifier eClassifier : elementtypesconfigurationsPackage.getEClassifiers()) { - if (eClassifier instanceof EClass) { - EClass eClass = (EClass)eClassifier; - if (!eClass.isAbstract()) { - initialObjectNames.add(eClass.getName()); - } - } - } - Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator()); - } - return initialObjectNames; - } - - /** - * Create a new model. - * - * - * @generated - */ - protected EObject createInitialModel() { - EClass eClass = (EClass)elementtypesconfigurationsPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName()); - EObject rootObject = elementtypesconfigurationsFactory.create(eClass); - return rootObject; - } - - /** - * Do the work after everything is specified. - * - * - * @generated - */ - @Override - public boolean performFinish() { - try { - // Remember the file. - // - final IFile modelFile = getModelFile(); - - // Do the work within an operation. - // - WorkspaceModifyOperation operation = - new WorkspaceModifyOperation() { - @Override - protected void execute(IProgressMonitor progressMonitor) { - try { - // Create a resource set - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Get the URI of the model file. - // - URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true); - - // Create a resource for this file. - // - Resource resource = resourceSet.createResource(fileURI, ElementtypesconfigurationsPackage.eCONTENT_TYPE); - - // Add the initial model object to the contents. - // - EObject rootObject = createInitialModel(); - if (rootObject != null) { - resource.getContents().add(rootObject); - } - - // Save the contents of the resource to the file system. - // - Map options = new HashMap(); - options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding()); - resource.save(options); - } - catch (Exception exception) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - } - finally { - progressMonitor.done(); - } - } - }; - - getContainer().run(false, false, operation); - - // Select the new file resource in the current view. - // - IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow(); - IWorkbenchPage page = workbenchWindow.getActivePage(); - final IWorkbenchPart activePart = page.getActivePart(); - if (activePart instanceof ISetSelectionTarget) { - final ISelection targetSelection = new StructuredSelection(modelFile); - getShell().getDisplay().asyncExec - (new Runnable() { - public void run() { - ((ISetSelectionTarget)activePart).selectReveal(targetSelection); - } - }); - } - - // Open an editor on the new file. - // - try { - page.openEditor - (new FileEditorInput(modelFile), - workbench.getEditorRegistry().getDefaultEditor - (modelFile.getFullPath().toString(), - Platform.getContentTypeManager().getContentType(ElementtypesconfigurationsPackage.eCONTENT_TYPE)).getId()); - } - catch (PartInitException exception) { - MessageDialog.openError(workbenchWindow.getShell(), ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage()); - return false; - } - - return true; - } - catch (Exception exception) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(exception); - return false; - } - } - - /** - * This is the one page of the wizard. - * - * - * @generated - */ - public class ElementtypesconfigurationsModelWizardNewFileCreationPage extends WizardNewFileCreationPage { - /** - * Pass in the selection. - * - * - * @generated - */ - public ElementtypesconfigurationsModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) { - super(pageId, selection); - } - - /** - * The framework calls this to see if the file is correct. - * - * - * @generated - */ - @Override - protected boolean validatePage() { - if (super.validatePage()) { - String extension = new Path(getFileName()).getFileExtension(); - if (extension == null || !FILE_EXTENSIONS.contains(extension)) { - String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension"; - setErrorMessage(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS })); - return false; - } - return true; - } - return false; - } - - /** - * - * - * @generated - */ - public IFile getModelFile() { - return ResourcesPlugin.getWorkspace().getRoot().getFile(getContainerFullPath().append(getFileName())); - } - } - - /** - * This is the page where the type of object to create is selected. - * - * - * @generated - */ - public class ElementtypesconfigurationsModelWizardInitialObjectCreationPage extends WizardPage { - /** - * - * - * @generated - */ - protected Combo initialObjectField; - - /** - * @generated - * - * - */ - protected List encodings; - - /** - * - * - * @generated - */ - protected Combo encodingField; - - /** - * Pass in the selection. - * - * - * @generated - */ - public ElementtypesconfigurationsModelWizardInitialObjectCreationPage(String pageId) { - super(pageId); - } - - /** - * - * - * @generated - */ - public void createControl(Composite parent) { - Composite composite = new Composite(parent, SWT.NONE); { - GridLayout layout = new GridLayout(); - layout.numColumns = 1; - layout.verticalSpacing = 12; - composite.setLayout(layout); - - GridData data = new GridData(); - data.verticalAlignment = GridData.FILL; - data.grabExcessVerticalSpace = true; - data.horizontalAlignment = GridData.FILL; - composite.setLayoutData(data); - } - - Label containerLabel = new Label(composite, SWT.LEFT); - { - containerLabel.setText(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ModelObject")); - - GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - containerLabel.setLayoutData(data); - } - - initialObjectField = new Combo(composite, SWT.BORDER); - { - GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - initialObjectField.setLayoutData(data); - } - - for (String objectName : getInitialObjectNames()) { - initialObjectField.add(getLabel(objectName)); - } - - if (initialObjectField.getItemCount() == 1) { - initialObjectField.select(0); - } - initialObjectField.addModifyListener(validator); - - Label encodingLabel = new Label(composite, SWT.LEFT); - { - encodingLabel.setText(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); - - GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - encodingLabel.setLayoutData(data); - } - encodingField = new Combo(composite, SWT.BORDER); - { - GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - encodingField.setLayoutData(data); - } - - for (String encoding : getEncodings()) { - encodingField.add(encoding); - } - - encodingField.select(0); - encodingField.addModifyListener(validator); - - setPageComplete(validatePage()); - setControl(composite); - } - - /** - * - * - * @generated - */ - protected ModifyListener validator = - new ModifyListener() { - public void modifyText(ModifyEvent e) { - setPageComplete(validatePage()); - } - }; - - /** - * - * - * @generated - */ - protected boolean validatePage() { - return getInitialObjectName() != null && getEncodings().contains(encodingField.getText()); - } - - /** - * - * - * @generated - */ - @Override - public void setVisible(boolean visible) { - super.setVisible(visible); - if (visible) { - if (initialObjectField.getItemCount() == 1) { - initialObjectField.clearSelection(); - encodingField.setFocus(); - } - else { - encodingField.clearSelection(); - initialObjectField.setFocus(); - } - } - } - - /** - * - * - * @generated - */ - public String getInitialObjectName() { - String label = initialObjectField.getText(); - - for (String name : getInitialObjectNames()) { - if (getLabel(name).equals(label)) { - return name; - } - } - return null; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return encodingField.getText(); - } - - /** - * Returns the label for the specified type name. - * - * - * @generated - */ - protected String getLabel(String typeName) { - try { - return ElementTypesConfigurationsEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); - } - catch(MissingResourceException mre) { - ElementTypesConfigurationsEditorPlugin.INSTANCE.log(mre); - } - return typeName; - } - - /** - * - * - * @generated - */ - protected Collection getEncodings() { - if (encodings == null) { - encodings = new ArrayList(); - for (StringTokenizer stringTokenizer = new StringTokenizer(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) { - encodings.add(stringTokenizer.nextToken()); - } - } - return encodings; - } - } - - /** - * The framework calls this to create the contents of the wizard. - * - * - * @generated - */ - @Override - public void addPages() { - // Create a page, set the title, and the initial model file name. - // - newFileCreationPage = new ElementtypesconfigurationsModelWizardNewFileCreationPage("Whatever", selection); - newFileCreationPage.setTitle(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsModelWizard_label")); - newFileCreationPage.setDescription(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsModelWizard_description")); - newFileCreationPage.setFileName(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsEditorFilenameDefaultBase") + "." + FILE_EXTENSIONS.get(0)); - addPage(newFileCreationPage); - - // Try and get the resource selection to determine a current directory for the file dialog. - // - if (selection != null && !selection.isEmpty()) { - // Get the resource... - // - Object selectedElement = selection.iterator().next(); - if (selectedElement instanceof IResource) { - // Get the resource parent, if its a file. - // - IResource selectedResource = (IResource)selectedElement; - if (selectedResource.getType() == IResource.FILE) { - selectedResource = selectedResource.getParent(); - } - - // This gives us a directory... - // - if (selectedResource instanceof IFolder || selectedResource instanceof IProject) { - // Set this for the container. - // - newFileCreationPage.setContainerFullPath(selectedResource.getFullPath()); - - // Make up a unique new name here. - // - String defaultModelBaseFilename = ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsEditorFilenameDefaultBase"); - String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); - String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; - for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) { - modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension; - } - newFileCreationPage.setFileName(modelFilename); - } - } - } - initialObjectCreationPage = new ElementtypesconfigurationsModelWizardInitialObjectCreationPage("Whatever2"); - initialObjectCreationPage.setTitle(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementtypesconfigurationsModelWizard_label")); - initialObjectCreationPage.setDescription(ElementTypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); - addPage(initialObjectCreationPage); - } - - /** - * Get the file from the page. - * - * - * @generated - */ - public IFile getModelFile() { - return newFileCreationPage.getModelFile(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.classpath deleted file mode 100644 index e7a4ca0c29c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.project deleted file mode 100644 index 7fc0d886b2d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 0c68a61dca8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/.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.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/META-INF/MANIFEST.MF deleted file mode 100644 index ec56f75dbe6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/META-INF/MANIFEST.MF +++ /dev/null @@ -1,33 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui;singleton:=true -Bundle-Version: 1.2.0.qualifier -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.setvaluesadviceconfiguration.provider.RuntimeValuesEditionAdviceConfigurationEditPlugin$Implementation -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.emf.ecore.xmi;visibility:=reexport, - org.eclipse.papyrus.infra.constraints;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.papyrus.infra.properties;visibility:=reexport, - org.eclipse.emf.edit;visibility:=reexport, - org.eclipse.papyrus.infra.constraints.edit;visibility:=reexport, - org.eclipse.emf.ecore.edit;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations.edit;visibility:=reexport, - org.eclipse.papyrus.infra.properties.edit;visibility:=reexport, - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.9.0", - org.eclipse.papyrus.views.properties;bundle-version="1.2.0", - org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0" -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Bundle-ActivationPolicy: lazy -Bundle-Localization: plugin -Bundle-Vendor: %providerName -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.emf.internal.ui;x-internal:=true, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.internal.ui.advice;x-internal:=true, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.provider, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.util, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.setvaluesadviceconfiguration.provider diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/build.properties deleted file mode 100644 index 1411453014c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/build.properties +++ /dev/null @@ -1,24 +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: -# CEA LIST - Initial API and implementation - -output..=bin/ -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - icons/,\ - about.html -jars.compile.order=. -source.. = src-gen/,\ - src/ -bin..=bin/ -src.includes = about.html \ No newline at end of file diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif deleted file mode 100644 index a149010ace4..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif deleted file mode 100644 index 1d24f793204..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif deleted file mode 100644 index 48e3cf22687..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/ViewToDisplay.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/ViewToDisplay.gif deleted file mode 100644 index 83afb9b3c9a..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/icons/full/obj16/ViewToDisplay.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.ecore b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.ecore deleted file mode 100644 index 293b641ddaf..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.ecore +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.genmodel b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.genmodel deleted file mode 100644 index 6db547d5874..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/model/RuntimeValuesEditionAdviceConfiguration.genmodel +++ /dev/null @@ -1,24 +0,0 @@ - - - RuntimeValuesEditionAdviceConfiguration.ecore - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.properties deleted file mode 100644 index 36074245c9a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ - -# -# -# -# $Id$ - -pluginName = UI for EMF ElementTypesConfigurations Model -providerName = Eclipse Modeling Project -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - _UI_PropertyDescriptor_description = The {0} of the {1} - _UI_RuntimeValuesEditionAdviceConfiguration_type = Runtime Values Edition Advice Configuration -_UI_ViewToDisplay_type = View To Display -_UI_Unknown_type = Object - _UI_Unknown_datatype= Value - _UI_RuntimeValuesEditionAdviceConfiguration_viewsToDisplay_feature = Views To Display -_UI_ViewToDisplay_view_feature = View -_UI_Unknown_feature = Unspecified - \ No newline at end of file diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.xml deleted file mode 100644 index 432a98820ac..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/plugin.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/pom.xml deleted file mode 100644 index c9cb43cafa6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimeValuesEditionAdviceConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimeValuesEditionAdviceConfiguration.java deleted file mode 100644 index efc24539514..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimeValuesEditionAdviceConfiguration.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; - -/** - * - * A representation of the model object 'Runtime Values Edition Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration#getViewsToDisplay Views To Display}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage#getRuntimeValuesEditionAdviceConfiguration() - * @model - * @generated - */ -public interface RuntimeValuesEditionAdviceConfiguration extends AbstractAdviceBindingConfiguration { - /** - * Returns the value of the 'Views To Display' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay}. - * - *

- * If the meaning of the 'Views To Display' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Views To Display' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage#getRuntimeValuesEditionAdviceConfiguration_ViewsToDisplay() - * @model containment="true" - * @generated - */ - EList getViewsToDisplay(); - -} // RuntimeValuesEditionAdviceConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationFactory.java deleted file mode 100644 index a9638dfb876..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationFactory.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage - * @generated - */ -public interface RuntimevalueseditionadviceconfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - RuntimevalueseditionadviceconfigurationFactory eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimevalueseditionadviceconfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Runtime Values Edition Advice Configuration'. - * - * - * @return a new object of class 'Runtime Values Edition Advice Configuration'. - * @generated - */ - RuntimeValuesEditionAdviceConfiguration createRuntimeValuesEditionAdviceConfiguration(); - - /** - * Returns a new object of class 'View To Display'. - * - * - * @return a new object of class 'View To Display'. - * @generated - */ - ViewToDisplay createViewToDisplay(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - RuntimevalueseditionadviceconfigurationPackage getRuntimevalueseditionadviceconfigurationPackage(); - -} //RuntimevalueseditionadviceconfigurationFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationPackage.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationPackage.java deleted file mode 100644 index 9d63760591d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/RuntimevalueseditionadviceconfigurationPackage.java +++ /dev/null @@ -1,300 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationFactory - * @model kind="package" - * @generated - */ -public interface RuntimevalueseditionadviceconfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "runtimevalueseditionadviceconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/emf/runtimevalueseditionadviceconfiguration/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "runtimevalueseditionadviceconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - RuntimevalueseditionadviceconfigurationPackage eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimevalueseditionadviceconfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimeValuesEditionAdviceConfigurationImpl Runtime Values Edition Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimeValuesEditionAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimevalueseditionadviceconfigurationPackageImpl#getRuntimeValuesEditionAdviceConfiguration() - * @generated - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION = 0; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__DESCRIPTION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__BEFORE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__AFTER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__IDENTIFIER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Target' reference. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__TARGET = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; - - /** - * The feature id for the 'Inheritance' attribute. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__INHERITANCE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; - - /** - * The feature id for the 'Views To Display' containment reference list. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Runtime Values Edition Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.ViewToDisplayImpl View To Display}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.ViewToDisplayImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimevalueseditionadviceconfigurationPackageImpl#getViewToDisplay() - * @generated - */ - int VIEW_TO_DISPLAY = 1; - - /** - * The feature id for the 'View' reference. - * - * - * @generated - * @ordered - */ - int VIEW_TO_DISPLAY__VIEW = 0; - - /** - * The number of structural features of the 'View To Display' class. - * - * - * @generated - * @ordered - */ - int VIEW_TO_DISPLAY_FEATURE_COUNT = 1; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration Runtime Values Edition Advice Configuration}'. - * - * - * @return the meta object for class 'Runtime Values Edition Advice Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration - * @generated - */ - EClass getRuntimeValuesEditionAdviceConfiguration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration#getViewsToDisplay Views To Display}'. - * - * - * @return the meta object for the containment reference list 'Views To Display'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration#getViewsToDisplay() - * @see #getRuntimeValuesEditionAdviceConfiguration() - * @generated - */ - EReference getRuntimeValuesEditionAdviceConfiguration_ViewsToDisplay(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay View To Display}'. - * - * - * @return the meta object for class 'View To Display'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay - * @generated - */ - EClass getViewToDisplay(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay#getView View}'. - * - * - * @return the meta object for the reference 'View'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay#getView() - * @see #getViewToDisplay() - * @generated - */ - EReference getViewToDisplay_View(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - RuntimevalueseditionadviceconfigurationFactory getRuntimevalueseditionadviceconfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimeValuesEditionAdviceConfigurationImpl Runtime Values Edition Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimeValuesEditionAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimevalueseditionadviceconfigurationPackageImpl#getRuntimeValuesEditionAdviceConfiguration() - * @generated - */ - EClass RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION = eINSTANCE.getRuntimeValuesEditionAdviceConfiguration(); - - /** - * The meta object literal for the 'Views To Display' containment reference list feature. - * - * - * @generated - */ - EReference RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY = eINSTANCE.getRuntimeValuesEditionAdviceConfiguration_ViewsToDisplay(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.ViewToDisplayImpl View To Display}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.ViewToDisplayImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimevalueseditionadviceconfigurationPackageImpl#getViewToDisplay() - * @generated - */ - EClass VIEW_TO_DISPLAY = eINSTANCE.getViewToDisplay(); - - /** - * The meta object literal for the 'View' reference feature. - * - * - * @generated - */ - EReference VIEW_TO_DISPLAY__VIEW = eINSTANCE.getViewToDisplay_View(); - - } - -} //RuntimevalueseditionadviceconfigurationPackage diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/ViewToDisplay.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/ViewToDisplay.java deleted file mode 100644 index 6c4bba6e5df..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/ViewToDisplay.java +++ /dev/null @@ -1,62 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.papyrus.infra.properties.contexts.View; - -/** - * - * A representation of the model object 'View To Display'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay#getView View}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage#getViewToDisplay() - * @model - * @generated - */ -public interface ViewToDisplay extends EObject { - /** - * Returns the value of the 'View' reference. - * - *

- * If the meaning of the 'View' reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'View' reference. - * @see #setView(View) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage#getViewToDisplay_View() - * @model required="true" - * @generated - */ - View getView(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay#getView View}' reference. - * - * - * @param value the new value of the 'View' reference. - * @see #getView() - * @generated - */ - void setView(View value); - -} // ViewToDisplay diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimeValuesEditionAdviceConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimeValuesEditionAdviceConfigurationImpl.java deleted file mode 100644 index 0f9357692f0..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimeValuesEditionAdviceConfigurationImpl.java +++ /dev/null @@ -1,162 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.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.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl; - -/** - * - * An implementation of the model object 'Runtime Values Edition Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.RuntimeValuesEditionAdviceConfigurationImpl#getViewsToDisplay Views To Display}
  • - *
- * - * @generated - */ -public class RuntimeValuesEditionAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements RuntimeValuesEditionAdviceConfiguration { - /** - * The cached value of the '{@link #getViewsToDisplay() Views To Display}' containment reference list. - * - * - * @see #getViewsToDisplay() - * @generated - * @ordered - */ - protected EList viewsToDisplay; - - /** - * - * - * @generated - */ - protected RuntimeValuesEditionAdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimevalueseditionadviceconfigurationPackage.Literals.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getViewsToDisplay() { - if (viewsToDisplay == null) { - viewsToDisplay = new EObjectContainmentEList(ViewToDisplay.class, this, RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY); - } - return viewsToDisplay; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: - return ((InternalEList)getViewsToDisplay()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: - return getViewsToDisplay(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: - getViewsToDisplay().clear(); - getViewsToDisplay().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: - getViewsToDisplay().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: - return viewsToDisplay != null && !viewsToDisplay.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //RuntimeValuesEditionAdviceConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationFactoryImpl.java deleted file mode 100644 index 0837d7cfeca..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationFactoryImpl.java +++ /dev/null @@ -1,116 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.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.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class RuntimevalueseditionadviceconfigurationFactoryImpl extends EFactoryImpl implements RuntimevalueseditionadviceconfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static RuntimevalueseditionadviceconfigurationFactory init() { - try { - RuntimevalueseditionadviceconfigurationFactory theRuntimevalueseditionadviceconfigurationFactory = (RuntimevalueseditionadviceconfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(RuntimevalueseditionadviceconfigurationPackage.eNS_URI); - if (theRuntimevalueseditionadviceconfigurationFactory != null) { - return theRuntimevalueseditionadviceconfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new RuntimevalueseditionadviceconfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION: return createRuntimeValuesEditionAdviceConfiguration(); - case RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY: return createViewToDisplay(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public RuntimeValuesEditionAdviceConfiguration createRuntimeValuesEditionAdviceConfiguration() { - RuntimeValuesEditionAdviceConfigurationImpl runtimeValuesEditionAdviceConfiguration = new RuntimeValuesEditionAdviceConfigurationImpl(); - return runtimeValuesEditionAdviceConfiguration; - } - - /** - * - * - * @generated - */ - public ViewToDisplay createViewToDisplay() { - ViewToDisplayImpl viewToDisplay = new ViewToDisplayImpl(); - return viewToDisplay; - } - - /** - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationPackage getRuntimevalueseditionadviceconfigurationPackage() { - return (RuntimevalueseditionadviceconfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static RuntimevalueseditionadviceconfigurationPackage getPackage() { - return RuntimevalueseditionadviceconfigurationPackage.eINSTANCE; - } - -} //RuntimevalueseditionadviceconfigurationFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationPackageImpl.java deleted file mode 100644 index 0deec6586bd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/RuntimevalueseditionadviceconfigurationPackageImpl.java +++ /dev/null @@ -1,238 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay; - -import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; - -import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; - -import org.eclipse.papyrus.infra.properties.ui.UiPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class RuntimevalueseditionadviceconfigurationPackageImpl extends EPackageImpl implements RuntimevalueseditionadviceconfigurationPackage { - /** - * - * - * @generated - */ - private EClass runtimeValuesEditionAdviceConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass viewToDisplayEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private RuntimevalueseditionadviceconfigurationPackageImpl() { - super(eNS_URI, RuntimevalueseditionadviceconfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link RuntimevalueseditionadviceconfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static RuntimevalueseditionadviceconfigurationPackage init() { - if (isInited) return (RuntimevalueseditionadviceconfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(RuntimevalueseditionadviceconfigurationPackage.eNS_URI); - - // Obtain or create and register package - RuntimevalueseditionadviceconfigurationPackageImpl theRuntimevalueseditionadviceconfigurationPackage = (RuntimevalueseditionadviceconfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RuntimevalueseditionadviceconfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RuntimevalueseditionadviceconfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - ElementtypesconfigurationsPackage.eINSTANCE.eClass(); - EnvironmentPackage.eINSTANCE.eClass(); - ContextsPackage.eINSTANCE.eClass(); - UiPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theRuntimevalueseditionadviceconfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theRuntimevalueseditionadviceconfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theRuntimevalueseditionadviceconfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(RuntimevalueseditionadviceconfigurationPackage.eNS_URI, theRuntimevalueseditionadviceconfigurationPackage); - return theRuntimevalueseditionadviceconfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getRuntimeValuesEditionAdviceConfiguration() { - return runtimeValuesEditionAdviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getRuntimeValuesEditionAdviceConfiguration_ViewsToDisplay() { - return (EReference)runtimeValuesEditionAdviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getViewToDisplay() { - return viewToDisplayEClass; - } - - /** - * - * - * @generated - */ - public EReference getViewToDisplay_View() { - return (EReference)viewToDisplayEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationFactory getRuntimevalueseditionadviceconfigurationFactory() { - return (RuntimevalueseditionadviceconfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - runtimeValuesEditionAdviceConfigurationEClass = createEClass(RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION); - createEReference(runtimeValuesEditionAdviceConfigurationEClass, RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY); - - viewToDisplayEClass = createEClass(VIEW_TO_DISPLAY); - createEReference(viewToDisplayEClass, VIEW_TO_DISPLAY__VIEW); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ElementtypesconfigurationsPackage theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - ContextsPackage theContextsPackage = (ContextsPackage)EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - runtimeValuesEditionAdviceConfigurationEClass.getESuperTypes().add(theElementtypesconfigurationsPackage.getAbstractAdviceBindingConfiguration()); - - // Initialize classes and features; add operations and parameters - initEClass(runtimeValuesEditionAdviceConfigurationEClass, RuntimeValuesEditionAdviceConfiguration.class, "RuntimeValuesEditionAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRuntimeValuesEditionAdviceConfiguration_ViewsToDisplay(), this.getViewToDisplay(), null, "viewsToDisplay", null, 0, -1, RuntimeValuesEditionAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(viewToDisplayEClass, ViewToDisplay.class, "ViewToDisplay", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getViewToDisplay_View(), theContextsPackage.getView(), null, "view", null, 1, 1, ViewToDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //RuntimevalueseditionadviceconfigurationPackageImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/ViewToDisplayImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/ViewToDisplayImpl.java deleted file mode 100644 index 379088d5769..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/impl/ViewToDisplayImpl.java +++ /dev/null @@ -1,168 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay; - -import org.eclipse.papyrus.infra.properties.contexts.View; - -/** - * - * An implementation of the model object 'View To Display'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.impl.ViewToDisplayImpl#getView View}
  • - *
- * - * @generated - */ -public class ViewToDisplayImpl extends EObjectImpl implements ViewToDisplay { - /** - * The cached value of the '{@link #getView() View}' reference. - * - * - * @see #getView() - * @generated - * @ordered - */ - protected View view; - - /** - * - * - * @generated - */ - protected ViewToDisplayImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimevalueseditionadviceconfigurationPackage.Literals.VIEW_TO_DISPLAY; - } - - /** - * - * - * @generated - */ - public View getView() { - if (view != null && view.eIsProxy()) { - InternalEObject oldView = (InternalEObject)view; - view = (View)eResolveProxy(oldView); - if (view != oldView) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY__VIEW, oldView, view)); - } - } - return view; - } - - /** - * - * - * @generated - */ - public View basicGetView() { - return view; - } - - /** - * - * - * @generated - */ - public void setView(View newView) { - View oldView = view; - view = newView; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY__VIEW, oldView, view)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY__VIEW: - if (resolve) return getView(); - return basicGetView(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY__VIEW: - setView((View)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY__VIEW: - setView((View)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY__VIEW: - return view != null; - } - return super.eIsSet(featureID); - } - -} //ViewToDisplayImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationItemProvider.java deleted file mode 100644 index bfb8de18d47..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationItemProvider.java +++ /dev/null @@ -1,172 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.setvaluesadviceconfiguration.provider.RuntimeValuesEditionAdviceConfigurationEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.AbstractAdviceBindingConfigurationItemProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration} object. - * - * - * @generated - */ -public class RuntimeValuesEditionAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public RuntimeValuesEditionAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(RuntimevalueseditionadviceconfigurationPackage.Literals.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns RuntimeValuesEditionAdviceConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/RuntimeValuesEditionAdviceConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((RuntimeValuesEditionAdviceConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_RuntimeValuesEditionAdviceConfiguration_type") : - getString("_UI_RuntimeValuesEditionAdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(RuntimeValuesEditionAdviceConfiguration.class)) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (RuntimevalueseditionadviceconfigurationPackage.Literals.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION__VIEWS_TO_DISPLAY, - RuntimevalueseditionadviceconfigurationFactory.eINSTANCE.createViewToDisplay())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return RuntimeValuesEditionAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimevalueseditionadviceconfigurationItemProviderAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimevalueseditionadviceconfigurationItemProviderAdapterFactory.java deleted file mode 100644 index ff3f43b59c4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/RuntimevalueseditionadviceconfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,339 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.util.RuntimevalueseditionadviceconfigurationAdapterFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.setvaluesadviceconfiguration.provider.RuntimeValuesEditionAdviceConfigurationEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsSwitch; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class RuntimevalueseditionadviceconfigurationItemProviderAdapterFactory extends RuntimevalueseditionadviceconfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration} instances. - * - * - * @generated - */ - protected RuntimeValuesEditionAdviceConfigurationItemProvider runtimeValuesEditionAdviceConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createRuntimeValuesEditionAdviceConfigurationAdapter() { - if (runtimeValuesEditionAdviceConfigurationItemProvider == null) { - runtimeValuesEditionAdviceConfigurationItemProvider = new RuntimeValuesEditionAdviceConfigurationItemProvider(this); - } - - return runtimeValuesEditionAdviceConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay} instances. - * - * - * @generated - */ - protected ViewToDisplayItemProvider viewToDisplayItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay}. - * - * - * @generated - */ - @Override - public Adapter createViewToDisplayAdapter() { - if (viewToDisplayItemProvider == null) { - viewToDisplayItemProvider = new ViewToDisplayItemProvider(this); - } - - return viewToDisplayItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (runtimeValuesEditionAdviceConfigurationItemProvider != null) runtimeValuesEditionAdviceConfigurationItemProvider.dispose(); - if (viewToDisplayItemProvider != null) viewToDisplayItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link ElementtypesconfigurationsPackage}. - * - * - * @generated - */ - public static class ElementtypesconfigurationsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends ElementtypesconfigurationsSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, - RuntimevalueseditionadviceconfigurationFactory.eINSTANCE.createRuntimeValuesEditionAdviceConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return RuntimeValuesEditionAdviceConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/ViewToDisplayItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/ViewToDisplayItemProvider.java deleted file mode 100644 index 3f6168d5a87..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/provider/ViewToDisplayItemProvider.java +++ /dev/null @@ -1,158 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.setvaluesadviceconfiguration.provider.RuntimeValuesEditionAdviceConfigurationEditPlugin; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay} object. - * - * - * @generated - */ -public class ViewToDisplayItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ViewToDisplayItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addViewPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the View feature. - * - * - * @generated - */ - protected void addViewPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ViewToDisplay_view_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ViewToDisplay_view_feature", "_UI_ViewToDisplay_type"), - RuntimevalueseditionadviceconfigurationPackage.Literals.VIEW_TO_DISPLAY__VIEW, - true, - false, - true, - null, - null, - null)); - } - - /** - * This returns ViewToDisplay.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ViewToDisplay")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ViewToDisplay_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return RuntimeValuesEditionAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationAdapterFactory.java deleted file mode 100644 index 90ae44af366..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationAdapterFactory.java +++ /dev/null @@ -1,225 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage - * @generated - */ -public class RuntimevalueseditionadviceconfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static RuntimevalueseditionadviceconfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = RuntimevalueseditionadviceconfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected RuntimevalueseditionadviceconfigurationSwitch modelSwitch = - new RuntimevalueseditionadviceconfigurationSwitch() { - @Override - public Adapter caseRuntimeValuesEditionAdviceConfiguration(RuntimeValuesEditionAdviceConfiguration object) { - return createRuntimeValuesEditionAdviceConfigurationAdapter(); - } - @Override - public Adapter caseViewToDisplay(ViewToDisplay object) { - return createViewToDisplayAdapter(); - } - @Override - public Adapter caseConfigurationElement(ConfigurationElement object) { - return createConfigurationElementAdapter(); - } - @Override - public Adapter caseAdviceConfiguration(AdviceConfiguration object) { - return createAdviceConfigurationAdapter(); - } - @Override - public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return createIdentifiedConfigurationAdapter(); - } - @Override - public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return createAbstractAdviceBindingConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration Runtime Values Edition Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration - * @generated - */ - public Adapter createRuntimeValuesEditionAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay View To Display}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay - * @generated - */ - public Adapter createViewToDisplayAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - public Adapter createConfigurationElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration - * @generated - */ - public Adapter createAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - public Adapter createIdentifiedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration - * @generated - */ - public Adapter createAbstractAdviceBindingConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //RuntimevalueseditionadviceconfigurationAdapterFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceFactoryImpl.java deleted file mode 100644 index 2cd4ed7da1f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.util.RuntimevalueseditionadviceconfigurationResourceImpl - * @generated - */ -public class RuntimevalueseditionadviceconfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new RuntimevalueseditionadviceconfigurationResourceImpl(uri); - return result; - } - -} //RuntimevalueseditionadviceconfigurationResourceFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceImpl.java deleted file mode 100644 index 2ca0ce417ca..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.util.RuntimevalueseditionadviceconfigurationResourceFactoryImpl - * @generated - */ -public class RuntimevalueseditionadviceconfigurationResourceImpl extends XMIResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public RuntimevalueseditionadviceconfigurationResourceImpl(URI uri) { - super(uri); - } - -} //RuntimevalueseditionadviceconfigurationResourceImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationSwitch.java deleted file mode 100644 index 69a080c5d11..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/runtimevalueseditionadviceconfiguration/util/RuntimevalueseditionadviceconfigurationSwitch.java +++ /dev/null @@ -1,210 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimevalueseditionadviceconfigurationPackage - * @generated - */ -public class RuntimevalueseditionadviceconfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static RuntimevalueseditionadviceconfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public RuntimevalueseditionadviceconfigurationSwitch() { - if (modelPackage == null) { - modelPackage = RuntimevalueseditionadviceconfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case RuntimevalueseditionadviceconfigurationPackage.RUNTIME_VALUES_EDITION_ADVICE_CONFIGURATION: { - RuntimeValuesEditionAdviceConfiguration runtimeValuesEditionAdviceConfiguration = (RuntimeValuesEditionAdviceConfiguration)theEObject; - T result = caseRuntimeValuesEditionAdviceConfiguration(runtimeValuesEditionAdviceConfiguration); - if (result == null) result = caseAbstractAdviceBindingConfiguration(runtimeValuesEditionAdviceConfiguration); - if (result == null) result = caseAdviceConfiguration(runtimeValuesEditionAdviceConfiguration); - if (result == null) result = caseIdentifiedConfiguration(runtimeValuesEditionAdviceConfiguration); - if (result == null) result = caseConfigurationElement(runtimeValuesEditionAdviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case RuntimevalueseditionadviceconfigurationPackage.VIEW_TO_DISPLAY: { - ViewToDisplay viewToDisplay = (ViewToDisplay)theEObject; - T result = caseViewToDisplay(viewToDisplay); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Runtime Values Edition Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Runtime Values Edition Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRuntimeValuesEditionAdviceConfiguration(RuntimeValuesEditionAdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'View To Display'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'View To Display'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseViewToDisplay(ViewToDisplay object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Configuration Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Configuration Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConfigurationElement(ConfigurationElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdviceConfiguration(AdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identified Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Identified Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //RuntimevalueseditionadviceconfigurationSwitch diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java deleted file mode 100644 index d995c26af94..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/ui/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java +++ /dev/null @@ -1,111 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.setvaluesadviceconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.constraints.provider.ConstraintsEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -import org.eclipse.papyrus.infra.properties.environment.provider.PropertiesEditPlugin; - -/** - * This is the central singleton for the RuntimeValuesEditionAdviceConfiguration edit plugin. - * - * - * @generated - */ -public final class RuntimeValuesEditionAdviceConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final RuntimeValuesEditionAdviceConfigurationEditPlugin INSTANCE = new RuntimeValuesEditionAdviceConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public RuntimeValuesEditionAdviceConfigurationEditPlugin() { - super - (new ResourceLocator [] { - ConstraintsEditPlugin.INSTANCE, - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - PropertiesEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/Activator.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/Activator.java deleted file mode 100644 index 03d821e00f7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/Activator.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.internal.ui; - -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.elementtypesconfigurations.emf.ui"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) - */ - 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/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdvice.java deleted file mode 100644 index e10663520fd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdvice.java +++ /dev/null @@ -1,137 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.internal.ui.advice; - -import java.util.Collections; -import java.util.HashSet; -import java.util.Set; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.workspace.util.WorkspaceSynchronizer; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; -import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.ViewToDisplay; -import org.eclipse.papyrus.infra.properties.contexts.View; -import org.eclipse.papyrus.infra.properties.ui.creation.EditionDialog; -import org.eclipse.papyrus.infra.services.edit.utils.ElementTypeUtils; -import org.eclipse.swt.widgets.Display; - -/** - * advice for the {@link SetValuesAdviceConfiguration} - */ -public class RuntimeValuesEditionAdviceEditHelperAdvice extends AbstractEditHelperAdvice { - - /** list of views to display */ - protected Set viewsToDisplay; - - - /** - * Default Constructor - */ - public RuntimeValuesEditionAdviceEditHelperAdvice(RuntimeValuesEditionAdviceConfiguration configuration) { - viewsToDisplay = new HashSet(); - for (ViewToDisplay display : configuration.getViewsToDisplay()) { - View view = display.getView(); - if (view != null) { - viewsToDisplay.add(view); - } - } - } - - /** - * {@inheritDoc} - */ - @Override - public boolean approveRequest(IEditCommandRequest request) { - return super.approveRequest(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getBeforeCreateCommand(CreateElementRequest request) { - return super.getBeforeCreateCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getAfterCreateCommand(CreateElementRequest request) { - return super.getAfterCreateCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { - return super.getBeforeConfigureCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getAfterConfigureCommand(final ConfigureRequest request) { - final EObject elementToConfigure = request.getElementToConfigure(); - if (elementToConfigure == null) { - return null; - } - - final boolean dialogCancellable = ElementTypeUtils.dialogCancellable(request); - - return new AbstractTransactionalCommand(request.getEditingDomain(), "Editing " + EMFCoreUtil.getName(elementToConfigure), Collections.singletonList(WorkspaceSynchronizer.getFile((elementToConfigure.eResource())))) { - /** - * {@inheritDoc} - */ - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - Set viewsToDisplay = getViewsToDisplay(); - if (!viewsToDisplay.isEmpty()) { - EditionDialog dialog = new EditionDialog(Display.getCurrent().getActiveShell(), dialogCancellable) { - - }; - dialog.setTitle("Edit " + EMFCoreUtil.getName(elementToConfigure)); - dialog.setViews(viewsToDisplay); - dialog.setInput(elementToConfigure); - - dialog.open(); - } - - return CommandResult.newOKCommandResult(elementToConfigure); - } - }; - - } - - - /** - * @return the viewsToDisplay - */ - public Set getViewsToDisplay() { - return viewsToDisplay; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdviceFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdviceFactory.java deleted file mode 100644 index a60597a4c43..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/internal/ui/advice/RuntimeValuesEditionAdviceEditHelperAdviceFactory.java +++ /dev/null @@ -1,31 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.internal.ui.advice; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui.runtimevalueseditionadviceconfiguration.RuntimeValuesEditionAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractAdviceBindingFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.NullEditHelperAdvice; - -public class RuntimeValuesEditionAdviceEditHelperAdviceFactory extends AbstractAdviceBindingFactory { - - @Override - protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { - if (adviceConfiguration instanceof RuntimeValuesEditionAdviceConfiguration) { - IEditHelperAdvice editHelperAdvice = new RuntimeValuesEditionAdviceEditHelperAdvice((RuntimeValuesEditionAdviceConfiguration) adviceConfiguration); - return editHelperAdvice; - } - return NullEditHelperAdvice.getInstance(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.classpath deleted file mode 100644 index 6a42377b56a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.project deleted file mode 100644 index 9f651690d75..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.emf - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f08be2b06c4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/META-INF/MANIFEST.MF deleted file mode 100644 index 6aa337dd49d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/META-INF/MANIFEST.MF +++ /dev/null @@ -1,42 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.emf.ecore.xmi;visibility:=reexport, - org.eclipse.papyrus.infra.constraints;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations;visibility:=reexport, - org.eclipse.uml2.uml;visibility:=reexport, - org.eclipse.uml2.types;visibility:=reexport, - org.eclipse.papyrus.infra.properties;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.emf.edit;visibility:=reexport, - org.eclipse.papyrus.infra.constraints.edit;visibility:=reexport, - org.eclipse.emf.ecore.edit;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations.edit;visibility:=reexport, - org.eclipse.papyrus.infra.properties.edit;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.uml2.uml.edit;visibility:=reexport, - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", - org.eclipse.core.databinding;bundle-version="1.4.1", - org.eclipse.papyrus.infra.core;bundle-version="1.2.0" -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.emf, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerconfiguration, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.provider, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.util, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider.SetValuesAdviceConfigurationEditPlugin$Implementation -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.emf;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/build.properties deleted file mode 100644 index e7dfb48857d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/build.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation -# Christian W. Damus - bug 451230 -# - -output..=bin/ -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - icons/,\ - about.html -jars.compile.order=. -source.. = src-gen/,\ - src/ -bin..=bin/ -src.includes = about.html diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/Values.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/Values.gif deleted file mode 100644 index f1f019535ea..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/Values.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif deleted file mode 100644 index 889f3af917f..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif deleted file mode 100644 index dac4138ca01..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif deleted file mode 100644 index 755e4ca7a46..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif deleted file mode 100644 index 8ce82e3f6c7..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif deleted file mode 100644 index fe708946d58..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif deleted file mode 100644 index 4aaad5a4cd7..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif deleted file mode 100644 index 44afafd55da..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif deleted file mode 100644 index f93c92d061a..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif deleted file mode 100644 index 5ef9a94e8da..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif deleted file mode 100644 index bbf242da6a9..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif deleted file mode 100644 index f08356ef9bb..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif deleted file mode 100644 index 37dad615792..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif deleted file mode 100644 index 8ce82e3f6c7..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif deleted file mode 100644 index 4aaad5a4cd7..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif deleted file mode 100644 index 33e07420851..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif deleted file mode 100644 index e180c4cf7ca..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif deleted file mode 100644 index a149010ace4..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif deleted file mode 100644 index 1cbba050ada..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif deleted file mode 100644 index a3f9e7cf231..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif deleted file mode 100644 index 03366e35d0f..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif deleted file mode 100644 index 8997497557c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif deleted file mode 100644 index c048169804a..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif deleted file mode 100644 index 7ca3215e5f4..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif deleted file mode 100644 index ca9cabaa91c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ConstantValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ConstantValue.gif deleted file mode 100644 index fdf618977f6..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ConstantValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ListValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ListValue.gif deleted file mode 100644 index 7cb2132b359..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_ListValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif deleted file mode 100644 index 05dc6202681..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif deleted file mode 100644 index 5389eace04f..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif deleted file mode 100644 index 320d1178250..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif deleted file mode 100644 index 1d24f793204..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif deleted file mode 100644 index bf19516c7a4..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif deleted file mode 100644 index 6878b7d54b1..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ConstantValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ConstantValue.gif deleted file mode 100644 index e4bc22dd17e..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ConstantValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/DynamicValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/DynamicValue.gif deleted file mode 100644 index ed874747401..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/DynamicValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/FeatureToSet.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/FeatureToSet.gif deleted file mode 100644 index 5a9bc7514fa..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/FeatureToSet.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/HierarchyPermission.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/HierarchyPermission.gif deleted file mode 100644 index c4a8af41844..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/HierarchyPermission.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/InvariantContainerRuleConfiguration.gif deleted file mode 100644 index 89ad5da38ab..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ListValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ListValue.gif deleted file mode 100644 index c3370c7ddd5..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ListValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/QueryExecutionValue.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/QueryExecutionValue.gif deleted file mode 100644 index ed874747401..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/QueryExecutionValue.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif deleted file mode 100644 index 9250fecbffd..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif deleted file mode 100644 index 48e3cf22687..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesActionConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesActionConfiguration.gif deleted file mode 100644 index 7b7c428c715..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesActionConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesAdviceConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesAdviceConfiguration.gif deleted file mode 100644 index 33a997a1606..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/SetValuesAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ViewToDisplay.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ViewToDisplay.gif deleted file mode 100644 index 83afb9b3c9a..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/icons/full/obj16/ViewToDisplay.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.ecore b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.ecore deleted file mode 100644 index 9c6eb857b49..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.ecore +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.genmodel b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.genmodel deleted file mode 100644 index 9e0e9c412c0..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/InvariantContainerRuleConfiguration.genmodel +++ /dev/null @@ -1,37 +0,0 @@ - - - InvariantContainerRuleConfiguration.ecore - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.ecore b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.ecore deleted file mode 100644 index dee75073a34..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.ecore +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.genmodel b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.genmodel deleted file mode 100644 index 1a9991a89d8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/model/SetValuesAdviceConfiguration.genmodel +++ /dev/null @@ -1,33 +0,0 @@ - - - SetValuesAdviceConfiguration.ecore - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.properties deleted file mode 100644 index db9976a2ed3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.properties +++ /dev/null @@ -1,44 +0,0 @@ - -# -# -# -# $Id$ - -pluginName = EMF ElementTypesConfigurations Model -providerName = Eclipse Modeling Project -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - _UI_PropertyDescriptor_description = The {0} of the {1} - _UI_RuntimeValuesEditionAdviceConfiguration_type = Runtime Values Edition Advice Configuration -_UI_ViewToDisplay_type = View To Display -_UI_Unknown_type = Object - _UI_Unknown_datatype= Value - _UI_RuntimeValuesEditionAdviceConfiguration_viewsToDisplay_feature = Views To Display -_UI_ViewToDisplay_view_feature = View -_UI_Unknown_feature = Unspecified - -_UI_SetValuesAdviceConfiguration_type = Set Values Advice Configuration -_UI_FeatureToSet_type = Feature To Set -_UI_FeatureValue_type = Feature Value -_UI_DynamicValue_type = Dynamic Value -_UI_ConstantValue_type = Constant Value -_UI_ListValue_type = List Value -_UI_QueryExecutionValue_type = Query Execution Value -_UI_SetValuesAdviceConfiguration_featuresToSet_feature = Features To Set -_UI_FeatureToSet_featureName_feature = Feature Name -_UI_FeatureToSet_value_feature = Value -_UI_ConstantValue_valueInstance_feature = Value Instance -_UI_ListValue_values_feature = Values -_UI_InvariantContainerRuleConfiguration_type = Invariant Container Rule Configuration -_UI_HierarchyPermission_type = Hierarchy Permission -_UI_InvariantContainerRuleConfiguration_permissions_feature = Permissions -_UI_HierarchyPermission_childType_feature = Child Type -_UI_HierarchyPermission_isPermitted_feature = Is Permitted -_UI_HierarchyPermission_isStrict_feature = Is Strict -_UI_HierarchyPermission_strict_feature = Strict -_UI_HierarchyPermission_containerType_feature = Container Type -_UI_HierarchyPermission_permitted_feature = Permitted diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.xml deleted file mode 100644 index f0109c24dfc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/plugin.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/pom.xml deleted file mode 100644 index 6fa070e3e02..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations.emf - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/HierarchyPermission.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/HierarchyPermission.java deleted file mode 100644 index a06c2197bad..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/HierarchyPermission.java +++ /dev/null @@ -1,114 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Hierarchy Permission'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#getContainerType Container Type}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isPermitted Permitted}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isStrict Strict}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#getHierarchyPermission() - * @model - * @generated - */ -public interface HierarchyPermission extends EObject { - /** - * Returns the value of the 'Container Type' attribute. - * - *

- * If the meaning of the 'Container Type' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Container Type' attribute. - * @see #setContainerType(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#getHierarchyPermission_ContainerType() - * @model required="true" - * @generated - */ - String getContainerType(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#getContainerType Container Type}' attribute. - * - * - * @param value the new value of the 'Container Type' attribute. - * @see #getContainerType() - * @generated - */ - void setContainerType(String value); - - /** - * Returns the value of the 'Permitted' attribute. - * - *

- * If the meaning of the 'Permitted' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Permitted' attribute. - * @see #setPermitted(boolean) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#getHierarchyPermission_Permitted() - * @model required="true" - * @generated - */ - boolean isPermitted(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isPermitted Permitted}' attribute. - * - * - * @param value the new value of the 'Permitted' attribute. - * @see #isPermitted() - * @generated - */ - void setPermitted(boolean value); - - /** - * Returns the value of the 'Strict' attribute. - * - *

- * If the meaning of the 'Strict' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Strict' attribute. - * @see #setStrict(boolean) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#getHierarchyPermission_Strict() - * @model required="true" - * @generated - */ - boolean isStrict(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isStrict Strict}' attribute. - * - * - * @param value the new value of the 'Strict' attribute. - * @see #isStrict() - * @generated - */ - void setStrict(boolean value); - -} // HierarchyPermission diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfiguration.java deleted file mode 100644 index 83fa2a27e4b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfiguration.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -/** - * - * A representation of the model object 'Invariant Container Rule Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration#getPermissions Permissions}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#getInvariantContainerRuleConfiguration() - * @model - * @generated - */ -public interface InvariantContainerRuleConfiguration extends InvariantRuleConfiguration { - /** - * Returns the value of the 'Permissions' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission}. - * - *

- * If the meaning of the 'Permissions' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Permissions' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#getInvariantContainerRuleConfiguration_Permissions() - * @model containment="true" - * @generated - */ - EList getPermissions(); - -} // InvariantContainerRuleConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationFactory.java deleted file mode 100644 index ad5cacb0261..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationFactory.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage - * @generated - */ -public interface InvariantContainerRuleConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - InvariantContainerRuleConfigurationFactory eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Invariant Container Rule Configuration'. - * - * - * @return a new object of class 'Invariant Container Rule Configuration'. - * @generated - */ - InvariantContainerRuleConfiguration createInvariantContainerRuleConfiguration(); - - /** - * Returns a new object of class 'Hierarchy Permission'. - * - * - * @return a new object of class 'Hierarchy Permission'. - * @generated - */ - HierarchyPermission createHierarchyPermission(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - InvariantContainerRuleConfigurationPackage getInvariantContainerRuleConfigurationPackage(); - -} //InvariantContainerRuleConfigurationFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationPackage.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationPackage.java deleted file mode 100644 index 187f9b0d619..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/InvariantContainerRuleConfigurationPackage.java +++ /dev/null @@ -1,305 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration; - -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.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationFactory - * @model kind="package" - * @generated - */ -public interface InvariantContainerRuleConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "invariantcontainerruleconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/containerruleconfiguration/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "invariantcontainerruleconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - InvariantContainerRuleConfigurationPackage eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationImpl Invariant Container Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationPackageImpl#getInvariantContainerRuleConfiguration() - * @generated - */ - int INVARIANT_CONTAINER_RULE_CONFIGURATION = 0; - - /** - * The feature id for the 'Permissions' containment reference list. - * - * - * @generated - * @ordered - */ - int INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Invariant Container Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_CONTAINER_RULE_CONFIGURATION_FEATURE_COUNT = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Invariant Container Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_CONTAINER_RULE_CONFIGURATION_OPERATION_COUNT = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl Hierarchy Permission}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationPackageImpl#getHierarchyPermission() - * @generated - */ - int HIERARCHY_PERMISSION = 1; - - /** - * The feature id for the 'Container Type' attribute. - * - * - * @generated - * @ordered - */ - int HIERARCHY_PERMISSION__CONTAINER_TYPE = 0; - - /** - * The feature id for the 'Permitted' attribute. - * - * - * @generated - * @ordered - */ - int HIERARCHY_PERMISSION__PERMITTED = 1; - - /** - * The feature id for the 'Strict' attribute. - * - * - * @generated - * @ordered - */ - int HIERARCHY_PERMISSION__STRICT = 2; - - /** - * The number of structural features of the 'Hierarchy Permission' class. - * - * - * @generated - * @ordered - */ - int HIERARCHY_PERMISSION_FEATURE_COUNT = 3; - - /** - * The number of operations of the 'Hierarchy Permission' class. - * - * - * @generated - * @ordered - */ - int HIERARCHY_PERMISSION_OPERATION_COUNT = 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration Invariant Container Rule Configuration}'. - * - * - * @return the meta object for class 'Invariant Container Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration - * @generated - */ - EClass getInvariantContainerRuleConfiguration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration#getPermissions Permissions}'. - * - * - * @return the meta object for the containment reference list 'Permissions'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration#getPermissions() - * @see #getInvariantContainerRuleConfiguration() - * @generated - */ - EReference getInvariantContainerRuleConfiguration_Permissions(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission Hierarchy Permission}'. - * - * - * @return the meta object for class 'Hierarchy Permission'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission - * @generated - */ - EClass getHierarchyPermission(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#getContainerType Container Type}'. - * - * - * @return the meta object for the attribute 'Container Type'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#getContainerType() - * @see #getHierarchyPermission() - * @generated - */ - EAttribute getHierarchyPermission_ContainerType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isPermitted Permitted}'. - * - * - * @return the meta object for the attribute 'Permitted'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isPermitted() - * @see #getHierarchyPermission() - * @generated - */ - EAttribute getHierarchyPermission_Permitted(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isStrict Strict}'. - * - * - * @return the meta object for the attribute 'Strict'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission#isStrict() - * @see #getHierarchyPermission() - * @generated - */ - EAttribute getHierarchyPermission_Strict(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - InvariantContainerRuleConfigurationFactory getInvariantContainerRuleConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationImpl Invariant Container Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationPackageImpl#getInvariantContainerRuleConfiguration() - * @generated - */ - EClass INVARIANT_CONTAINER_RULE_CONFIGURATION = eINSTANCE.getInvariantContainerRuleConfiguration(); - - /** - * The meta object literal for the 'Permissions' containment reference list feature. - * - * - * @generated - */ - EReference INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS = eINSTANCE.getInvariantContainerRuleConfiguration_Permissions(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl Hierarchy Permission}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationPackageImpl#getHierarchyPermission() - * @generated - */ - EClass HIERARCHY_PERMISSION = eINSTANCE.getHierarchyPermission(); - - /** - * The meta object literal for the 'Container Type' attribute feature. - * - * - * @generated - */ - EAttribute HIERARCHY_PERMISSION__CONTAINER_TYPE = eINSTANCE.getHierarchyPermission_ContainerType(); - - /** - * The meta object literal for the 'Permitted' attribute feature. - * - * - * @generated - */ - EAttribute HIERARCHY_PERMISSION__PERMITTED = eINSTANCE.getHierarchyPermission_Permitted(); - - /** - * The meta object literal for the 'Strict' attribute feature. - * - * - * @generated - */ - EAttribute HIERARCHY_PERMISSION__STRICT = eINSTANCE.getHierarchyPermission_Strict(); - - } - -} //InvariantContainerRuleConfigurationPackage diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/HierarchyPermissionImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/HierarchyPermissionImpl.java deleted file mode 100644 index 95f49e40be2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/HierarchyPermissionImpl.java +++ /dev/null @@ -1,281 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.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.MinimalEObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage; - -/** - * - * An implementation of the model object 'Hierarchy Permission'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl#getContainerType Container Type}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl#isPermitted Permitted}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.HierarchyPermissionImpl#isStrict Strict}
  • - *
- * - * @generated - */ -public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implements HierarchyPermission { - /** - * The default value of the '{@link #getContainerType() Container Type}' attribute. - * - * - * @see #getContainerType() - * @generated - * @ordered - */ - protected static final String CONTAINER_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getContainerType() Container Type}' attribute. - * - * - * @see #getContainerType() - * @generated - * @ordered - */ - protected String containerType = CONTAINER_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #isPermitted() Permitted}' attribute. - * - * - * @see #isPermitted() - * @generated - * @ordered - */ - protected static final boolean PERMITTED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isPermitted() Permitted}' attribute. - * - * - * @see #isPermitted() - * @generated - * @ordered - */ - protected boolean permitted = PERMITTED_EDEFAULT; - - /** - * The default value of the '{@link #isStrict() Strict}' attribute. - * - * - * @see #isStrict() - * @generated - * @ordered - */ - protected static final boolean STRICT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isStrict() Strict}' attribute. - * - * - * @see #isStrict() - * @generated - * @ordered - */ - protected boolean strict = STRICT_EDEFAULT; - - /** - * - * - * @generated - */ - protected HierarchyPermissionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantContainerRuleConfigurationPackage.Literals.HIERARCHY_PERMISSION; - } - - /** - * - * - * @generated - */ - public String getContainerType() { - return containerType; - } - - /** - * - * - * @generated - */ - public void setContainerType(String newContainerType) { - String oldContainerType = containerType; - containerType = newContainerType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__CONTAINER_TYPE, oldContainerType, containerType)); - } - - /** - * - * - * @generated - */ - public boolean isPermitted() { - return permitted; - } - - /** - * - * - * @generated - */ - public void setPermitted(boolean newPermitted) { - boolean oldPermitted = permitted; - permitted = newPermitted; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__PERMITTED, oldPermitted, permitted)); - } - - /** - * - * - * @generated - */ - public boolean isStrict() { - return strict; - } - - /** - * - * - * @generated - */ - public void setStrict(boolean newStrict) { - boolean oldStrict = strict; - strict = newStrict; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__STRICT, oldStrict, strict)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: - return getContainerType(); - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__PERMITTED: - return isPermitted(); - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__STRICT: - return isStrict(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: - setContainerType((String)newValue); - return; - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__PERMITTED: - setPermitted((Boolean)newValue); - return; - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__STRICT: - setStrict((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: - setContainerType(CONTAINER_TYPE_EDEFAULT); - return; - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__PERMITTED: - setPermitted(PERMITTED_EDEFAULT); - return; - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__STRICT: - setStrict(STRICT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: - return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__PERMITTED: - return permitted != PERMITTED_EDEFAULT; - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__STRICT: - return strict != STRICT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (containerType: "); - result.append(containerType); - result.append(", permitted: "); - result.append(permitted); - result.append(", strict: "); - result.append(strict); - result.append(')'); - return result.toString(); - } - -} //HierarchyPermissionImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationFactoryImpl.java deleted file mode 100644 index 6132f190a0a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationFactoryImpl.java +++ /dev/null @@ -1,116 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.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.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class InvariantContainerRuleConfigurationFactoryImpl extends EFactoryImpl implements InvariantContainerRuleConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static InvariantContainerRuleConfigurationFactory init() { - try { - InvariantContainerRuleConfigurationFactory theInvariantContainerRuleConfigurationFactory = (InvariantContainerRuleConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(InvariantContainerRuleConfigurationPackage.eNS_URI); - if (theInvariantContainerRuleConfigurationFactory != null) { - return theInvariantContainerRuleConfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new InvariantContainerRuleConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION: return createInvariantContainerRuleConfiguration(); - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION: return createHierarchyPermission(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public InvariantContainerRuleConfiguration createInvariantContainerRuleConfiguration() { - InvariantContainerRuleConfigurationImpl invariantContainerRuleConfiguration = new InvariantContainerRuleConfigurationImpl(); - return invariantContainerRuleConfiguration; - } - - /** - * - * - * @generated - */ - public HierarchyPermission createHierarchyPermission() { - HierarchyPermissionImpl hierarchyPermission = new HierarchyPermissionImpl(); - return hierarchyPermission; - } - - /** - * - * - * @generated - */ - public InvariantContainerRuleConfigurationPackage getInvariantContainerRuleConfigurationPackage() { - return (InvariantContainerRuleConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static InvariantContainerRuleConfigurationPackage getPackage() { - return InvariantContainerRuleConfigurationPackage.eINSTANCE; - } - -} //InvariantContainerRuleConfigurationFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationImpl.java deleted file mode 100644 index f8fd98750f5..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationImpl.java +++ /dev/null @@ -1,162 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.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.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantRuleConfigurationImpl; - -/** - * - * An implementation of the model object 'Invariant Container Rule Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.impl.InvariantContainerRuleConfigurationImpl#getPermissions Permissions}
  • - *
- * - * @generated - */ -public class InvariantContainerRuleConfigurationImpl extends InvariantRuleConfigurationImpl implements InvariantContainerRuleConfiguration { - /** - * The cached value of the '{@link #getPermissions() Permissions}' containment reference list. - * - * - * @see #getPermissions() - * @generated - * @ordered - */ - protected EList permissions; - - /** - * - * - * @generated - */ - protected InvariantContainerRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantContainerRuleConfigurationPackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getPermissions() { - if (permissions == null) { - permissions = new EObjectContainmentEList(HierarchyPermission.class, this, InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS); - } - return permissions; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: - return ((InternalEList)getPermissions()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: - return getPermissions(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: - getPermissions().clear(); - getPermissions().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: - getPermissions().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: - return permissions != null && !permissions.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //InvariantContainerRuleConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationPackageImpl.java deleted file mode 100644 index 0a84b839964..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/impl/InvariantContainerRuleConfigurationPackageImpl.java +++ /dev/null @@ -1,253 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.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.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class InvariantContainerRuleConfigurationPackageImpl extends EPackageImpl implements InvariantContainerRuleConfigurationPackage { - /** - * - * - * @generated - */ - private EClass invariantContainerRuleConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass hierarchyPermissionEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private InvariantContainerRuleConfigurationPackageImpl() { - super(eNS_URI, InvariantContainerRuleConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link InvariantContainerRuleConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static InvariantContainerRuleConfigurationPackage init() { - if (isInited) return (InvariantContainerRuleConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(InvariantContainerRuleConfigurationPackage.eNS_URI); - - // Obtain or create and register package - InvariantContainerRuleConfigurationPackageImpl theInvariantContainerRuleConfigurationPackage = (InvariantContainerRuleConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantContainerRuleConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantContainerRuleConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - InvariantTypeConfigurationPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theInvariantContainerRuleConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theInvariantContainerRuleConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theInvariantContainerRuleConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(InvariantContainerRuleConfigurationPackage.eNS_URI, theInvariantContainerRuleConfigurationPackage); - return theInvariantContainerRuleConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getInvariantContainerRuleConfiguration() { - return invariantContainerRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getInvariantContainerRuleConfiguration_Permissions() { - return (EReference)invariantContainerRuleConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHierarchyPermission() { - return hierarchyPermissionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHierarchyPermission_ContainerType() { - return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getHierarchyPermission_Permitted() { - return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getHierarchyPermission_Strict() { - return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public InvariantContainerRuleConfigurationFactory getInvariantContainerRuleConfigurationFactory() { - return (InvariantContainerRuleConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - invariantContainerRuleConfigurationEClass = createEClass(INVARIANT_CONTAINER_RULE_CONFIGURATION); - createEReference(invariantContainerRuleConfigurationEClass, INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS); - - hierarchyPermissionEClass = createEClass(HIERARCHY_PERMISSION); - createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__CONTAINER_TYPE); - createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__PERMITTED); - createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__STRICT); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - InvariantTypeConfigurationPackage theInvariantTypeConfigurationPackage = (InvariantTypeConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(InvariantTypeConfigurationPackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - invariantContainerRuleConfigurationEClass.getESuperTypes().add(theInvariantTypeConfigurationPackage.getInvariantRuleConfiguration()); - - // Initialize classes, features, and operations; add parameters - initEClass(invariantContainerRuleConfigurationEClass, InvariantContainerRuleConfiguration.class, "InvariantContainerRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getInvariantContainerRuleConfiguration_Permissions(), this.getHierarchyPermission(), null, "permissions", null, 0, -1, InvariantContainerRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(hierarchyPermissionEClass, HierarchyPermission.class, "HierarchyPermission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHierarchyPermission_ContainerType(), theEcorePackage.getEString(), "containerType", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getHierarchyPermission_Permitted(), theEcorePackage.getEBoolean(), "permitted", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getHierarchyPermission_Strict(), theEcorePackage.getEBoolean(), "strict", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //InvariantContainerRuleConfigurationPackageImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/HierarchyPermissionItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/HierarchyPermissionItemProvider.java deleted file mode 100644 index 17a62988d67..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/HierarchyPermissionItemProvider.java +++ /dev/null @@ -1,216 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission} object. - * - * - * @generated - */ -public class HierarchyPermissionItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public HierarchyPermissionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContainerTypePropertyDescriptor(object); - addPermittedPropertyDescriptor(object); - addStrictPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Container Type feature. - * - * - * @generated - */ - protected void addContainerTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HierarchyPermission_containerType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_containerType_feature", "_UI_HierarchyPermission_type"), - InvariantContainerRuleConfigurationPackage.Literals.HIERARCHY_PERMISSION__CONTAINER_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Permitted feature. - * - * - * @generated - */ - protected void addPermittedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HierarchyPermission_permitted_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_permitted_feature", "_UI_HierarchyPermission_type"), - InvariantContainerRuleConfigurationPackage.Literals.HIERARCHY_PERMISSION__PERMITTED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Strict feature. - * - * - * @generated - */ - protected void addStrictPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HierarchyPermission_strict_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_strict_feature", "_UI_HierarchyPermission_type"), - InvariantContainerRuleConfigurationPackage.Literals.HIERARCHY_PERMISSION__STRICT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns HierarchyPermission.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/HierarchyPermission")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((HierarchyPermission)object).getContainerType(); - return label == null || label.length() == 0 ? - getString("_UI_HierarchyPermission_type") : - getString("_UI_HierarchyPermission_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(HierarchyPermission.class)) { - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__CONTAINER_TYPE: - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__PERMITTED: - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION__STRICT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return InvariantContainerRuleConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationEditPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationEditPlugin.java deleted file mode 100644 index b7737278e0a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationEditPlugin.java +++ /dev/null @@ -1,108 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider.InvariantTypeConfigurationEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -/** - * This is the central singleton for the InvariantContainerRuleConfiguration edit plugin. - * - * - * @generated - */ -public final class InvariantContainerRuleConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final InvariantContainerRuleConfigurationEditPlugin INSTANCE = new InvariantContainerRuleConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationEditPlugin() { - super - (new ResourceLocator [] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - InvariantTypeConfigurationEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProvider.java deleted file mode 100644 index dcd422ca2f8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProvider.java +++ /dev/null @@ -1,167 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider.InvariantRuleConfigurationItemProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration} object. - * - * - * @generated - */ -public class InvariantContainerRuleConfigurationItemProvider extends InvariantRuleConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(InvariantContainerRuleConfigurationPackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns InvariantContainerRuleConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/InvariantContainerRuleConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_InvariantContainerRuleConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(InvariantContainerRuleConfiguration.class)) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (InvariantContainerRuleConfigurationPackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS, - InvariantContainerRuleConfigurationFactory.eINSTANCE.createHierarchyPermission())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return InvariantContainerRuleConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProviderAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index 7017db0632b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/provider/InvariantContainerRuleConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,369 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.util.InvariantContainerRuleConfigurationAdapterFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util.InvariantTypeConfigurationSwitch; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class InvariantContainerRuleConfigurationItemProviderAdapterFactory extends InvariantContainerRuleConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration} instances. - * - * - * @generated - */ - protected InvariantContainerRuleConfigurationItemProvider invariantContainerRuleConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createInvariantContainerRuleConfigurationAdapter() { - if (invariantContainerRuleConfigurationItemProvider == null) { - invariantContainerRuleConfigurationItemProvider = new InvariantContainerRuleConfigurationItemProvider(this); - } - - return invariantContainerRuleConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission} instances. - * - * - * @generated - */ - protected HierarchyPermissionItemProvider hierarchyPermissionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission}. - * - * - * @generated - */ - @Override - public Adapter createHierarchyPermissionAdapter() { - if (hierarchyPermissionItemProvider == null) { - hierarchyPermissionItemProvider = new HierarchyPermissionItemProvider(this); - } - - return hierarchyPermissionItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (invariantContainerRuleConfigurationItemProvider != null) invariantContainerRuleConfigurationItemProvider.dispose(); - if (hierarchyPermissionItemProvider != null) hierarchyPermissionItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link InvariantTypeConfigurationPackage}. - * - * - * @generated - */ - public static class InvariantTypeConfigurationChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends InvariantTypeConfigurationSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseInvariantTypeConfiguration(InvariantTypeConfiguration object) { - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, - InvariantContainerRuleConfigurationFactory.eINSTANCE.createInvariantContainerRuleConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - @Override - public Object caseCompositeInvariantRuleConfiguration(CompositeInvariantRuleConfiguration object) { - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES, - InvariantContainerRuleConfigurationFactory.eINSTANCE.createInvariantContainerRuleConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - @Override - public Object caseNotInvariantRuleConfiguration(NotInvariantRuleConfiguration object) { - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, - InvariantContainerRuleConfigurationFactory.eINSTANCE.createInvariantContainerRuleConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return InvariantContainerRuleConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationAdapterFactory.java deleted file mode 100644 index 9268c6d6335..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationAdapterFactory.java +++ /dev/null @@ -1,168 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.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.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.*; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage - * @generated - */ -public class InvariantContainerRuleConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static InvariantContainerRuleConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = InvariantContainerRuleConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected InvariantContainerRuleConfigurationSwitch modelSwitch = - new InvariantContainerRuleConfigurationSwitch() { - @Override - public Adapter caseInvariantContainerRuleConfiguration(InvariantContainerRuleConfiguration object) { - return createInvariantContainerRuleConfigurationAdapter(); - } - @Override - public Adapter caseHierarchyPermission(HierarchyPermission object) { - return createHierarchyPermissionAdapter(); - } - @Override - public Adapter caseInvariantRuleConfiguration(InvariantRuleConfiguration object) { - return createInvariantRuleConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration Invariant Container Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration - * @generated - */ - public Adapter createInvariantContainerRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission Hierarchy Permission}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission - * @generated - */ - public Adapter createHierarchyPermissionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration - * @generated - */ - public Adapter createInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //InvariantContainerRuleConfigurationAdapterFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceFactoryImpl.java deleted file mode 100644 index 957772b5d3c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.util.InvariantContainerRuleConfigurationResourceImpl - * @generated - */ -public class InvariantContainerRuleConfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new InvariantContainerRuleConfigurationResourceImpl(uri); - return result; - } - -} //InvariantContainerRuleConfigurationResourceFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceImpl.java deleted file mode 100644 index f22bdb13a97..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.util.InvariantContainerRuleConfigurationResourceFactoryImpl - * @generated - */ -public class InvariantContainerRuleConfigurationResourceImpl extends XMIResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public InvariantContainerRuleConfigurationResourceImpl(URI uri) { - super(uri); - } - -} //InvariantContainerRuleConfigurationResourceImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationSwitch.java deleted file mode 100644 index 392097aac1f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerruleconfiguration/util/InvariantContainerRuleConfigurationSwitch.java +++ /dev/null @@ -1,159 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.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.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.*; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfigurationPackage - * @generated - */ -public class InvariantContainerRuleConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static InvariantContainerRuleConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public InvariantContainerRuleConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = InvariantContainerRuleConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case InvariantContainerRuleConfigurationPackage.INVARIANT_CONTAINER_RULE_CONFIGURATION: { - InvariantContainerRuleConfiguration invariantContainerRuleConfiguration = (InvariantContainerRuleConfiguration)theEObject; - T result = caseInvariantContainerRuleConfiguration(invariantContainerRuleConfiguration); - if (result == null) result = caseInvariantRuleConfiguration(invariantContainerRuleConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case InvariantContainerRuleConfigurationPackage.HIERARCHY_PERMISSION: { - HierarchyPermission hierarchyPermission = (HierarchyPermission)theEObject; - T result = caseHierarchyPermission(hierarchyPermission); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Invariant Container Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Invariant Container Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInvariantContainerRuleConfiguration(InvariantContainerRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Hierarchy Permission'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Hierarchy Permission'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseHierarchyPermission(HierarchyPermission object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInvariantRuleConfiguration(InvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //InvariantContainerRuleConfigurationSwitch diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ConstantValue.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ConstantValue.java deleted file mode 100644 index d2332ef8ed7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ConstantValue.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * - * A representation of the model object 'Constant Value'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue#getValueInstance Value Instance}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getConstantValue() - * @model - * @generated - */ -public interface ConstantValue extends FeatureValue { - /** - * Returns the value of the 'Value Instance' containment reference. - * - *

- * If the meaning of the 'Value Instance' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value Instance' containment reference. - * @see #setValueInstance(ValueSpecification) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getConstantValue_ValueInstance() - * @model containment="true" - * @generated - */ - ValueSpecification getValueInstance(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue#getValueInstance Value Instance}' containment reference. - * - * - * @param value the new value of the 'Value Instance' containment reference. - * @see #getValueInstance() - * @generated - */ - void setValueInstance(ValueSpecification value); - -} // ConstantValue diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/DynamicValue.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/DynamicValue.java deleted file mode 100644 index 210ab2b1140..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/DynamicValue.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - - -/** - * - * A representation of the model object 'Dynamic Value'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getDynamicValue() - * @model abstract="true" - * @generated - */ -public interface DynamicValue extends FeatureValue { -} // DynamicValue diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureToSet.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureToSet.java deleted file mode 100644 index 8c200d63b92..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureToSet.java +++ /dev/null @@ -1,87 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature To Set'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getFeatureName Feature Name}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getFeatureToSet() - * @model - * @generated - */ -public interface FeatureToSet extends EObject { - /** - * Returns the value of the 'Feature Name' attribute. - * - *

- * If the meaning of the 'Feature Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Feature Name' attribute. - * @see #setFeatureName(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getFeatureToSet_FeatureName() - * @model required="true" - * @generated - */ - String getFeatureName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getFeatureName Feature Name}' attribute. - * - * - * @param value the new value of the 'Feature Name' attribute. - * @see #getFeatureName() - * @generated - */ - void setFeatureName(String value); - - /** - * Returns the value of the 'Value' containment reference. - * - *

- * If the meaning of the 'Value' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value' containment reference. - * @see #setValue(FeatureValue) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getFeatureToSet_Value() - * @model containment="true" required="true" - * @generated - */ - FeatureValue getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getValue Value}' containment reference. - * - * - * @param value the new value of the 'Value' containment reference. - * @see #getValue() - * @generated - */ - void setValue(FeatureValue value); - -} // FeatureToSet diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValue.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValue.java deleted file mode 100644 index 7287bc5540b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValue.java +++ /dev/null @@ -1,28 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature Value'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getFeatureValue() - * @model abstract="true" - * @generated - */ -public interface FeatureValue extends EObject { -} // FeatureValue diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ListValue.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ListValue.java deleted file mode 100644 index 6da05dccbb8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/ListValue.java +++ /dev/null @@ -1,50 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'List Value'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue#getValues Values}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getListValue() - * @model - * @generated - */ -public interface ListValue extends FeatureValue { - /** - * Returns the value of the 'Values' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue}. - * - *

- * If the meaning of the 'Values' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Values' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getListValue_Values() - * @model containment="true" - * @generated - */ - EList getValues(); - -} // ListValue diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/QueryExecutionValue.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/QueryExecutionValue.java deleted file mode 100644 index 8b560bbfa5c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/QueryExecutionValue.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - - -/** - * - * A representation of the model object 'Query Execution Value'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getQueryExecutionValue() - * @model - * @generated - */ -public interface QueryExecutionValue extends DynamicValue { -} // QueryExecutionValue diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfiguration.java deleted file mode 100644 index 7a5ae53df36..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfiguration.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; - -/** - * - * A representation of the model object 'Set Values Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration#getFeaturesToSet Features To Set}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getSetValuesAdviceConfiguration() - * @model - * @generated - */ -public interface SetValuesAdviceConfiguration extends AbstractAdviceBindingConfiguration { - /** - * Returns the value of the 'Features To Set' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet}. - * - *

- * If the meaning of the 'Features To Set' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Features To Set' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#getSetValuesAdviceConfiguration_FeaturesToSet() - * @model containment="true" - * @generated - */ - EList getFeaturesToSet(); - -} // SetValuesAdviceConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationFactory.java deleted file mode 100644 index c7bd21f2749..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationFactory.java +++ /dev/null @@ -1,88 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage - * @generated - */ -public interface SetValuesAdviceConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - SetValuesAdviceConfigurationFactory eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Set Values Advice Configuration'. - * - * - * @return a new object of class 'Set Values Advice Configuration'. - * @generated - */ - SetValuesAdviceConfiguration createSetValuesAdviceConfiguration(); - - /** - * Returns a new object of class 'Feature To Set'. - * - * - * @return a new object of class 'Feature To Set'. - * @generated - */ - FeatureToSet createFeatureToSet(); - - /** - * Returns a new object of class 'Constant Value'. - * - * - * @return a new object of class 'Constant Value'. - * @generated - */ - ConstantValue createConstantValue(); - - /** - * Returns a new object of class 'List Value'. - * - * - * @return a new object of class 'List Value'. - * @generated - */ - ListValue createListValue(); - - /** - * Returns a new object of class 'Query Execution Value'. - * - * - * @return a new object of class 'Query Execution Value'. - * @generated - */ - QueryExecutionValue createQueryExecutionValue(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - SetValuesAdviceConfigurationPackage getSetValuesAdviceConfigurationPackage(); - -} //SetValuesAdviceConfigurationFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationPackage.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationPackage.java deleted file mode 100644 index 29ae78d98a8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceConfigurationPackage.java +++ /dev/null @@ -1,580 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -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.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationFactory - * @model kind="package" - * @generated - */ -public interface SetValuesAdviceConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "setvaluesadviceconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "setvaluesadviceconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - SetValuesAdviceConfigurationPackage eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationImpl Set Values Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getSetValuesAdviceConfiguration() - * @generated - */ - int SET_VALUES_ADVICE_CONFIGURATION = 0; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__DESCRIPTION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__BEFORE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__AFTER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__IDENTIFIER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Target' reference. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__TARGET = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; - - /** - * The feature id for the 'Inheritance' attribute. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__INHERITANCE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; - - /** - * The feature id for the 'Features To Set' containment reference list. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Set Values Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int SET_VALUES_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureToSetImpl Feature To Set}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureToSetImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getFeatureToSet() - * @generated - */ - int FEATURE_TO_SET = 1; - - /** - * The feature id for the 'Feature Name' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_TO_SET__FEATURE_NAME = 0; - - /** - * The feature id for the 'Value' containment reference. - * - * - * @generated - * @ordered - */ - int FEATURE_TO_SET__VALUE = 1; - - /** - * The number of structural features of the 'Feature To Set' class. - * - * - * @generated - * @ordered - */ - int FEATURE_TO_SET_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureValueImpl Feature Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getFeatureValue() - * @generated - */ - int FEATURE_VALUE = 2; - - /** - * The number of structural features of the 'Feature Value' class. - * - * - * @generated - * @ordered - */ - int FEATURE_VALUE_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.DynamicValueImpl Dynamic Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.DynamicValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getDynamicValue() - * @generated - */ - int DYNAMIC_VALUE = 3; - - /** - * The number of structural features of the 'Dynamic Value' class. - * - * - * @generated - * @ordered - */ - int DYNAMIC_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ConstantValueImpl Constant Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ConstantValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getConstantValue() - * @generated - */ - int CONSTANT_VALUE = 4; - - /** - * The feature id for the 'Value Instance' containment reference. - * - * - * @generated - * @ordered - */ - int CONSTANT_VALUE__VALUE_INSTANCE = FEATURE_VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Constant Value' class. - * - * - * @generated - * @ordered - */ - int CONSTANT_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ListValueImpl List Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ListValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getListValue() - * @generated - */ - int LIST_VALUE = 5; - - /** - * The feature id for the 'Values' containment reference list. - * - * - * @generated - * @ordered - */ - int LIST_VALUE__VALUES = FEATURE_VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'List Value' class. - * - * - * @generated - * @ordered - */ - int LIST_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.QueryExecutionValueImpl Query Execution Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.QueryExecutionValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getQueryExecutionValue() - * @generated - */ - int QUERY_EXECUTION_VALUE = 6; - - /** - * The number of structural features of the 'Query Execution Value' class. - * - * - * @generated - * @ordered - */ - int QUERY_EXECUTION_VALUE_FEATURE_COUNT = DYNAMIC_VALUE_FEATURE_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration Set Values Advice Configuration}'. - * - * - * @return the meta object for class 'Set Values Advice Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration - * @generated - */ - EClass getSetValuesAdviceConfiguration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration#getFeaturesToSet Features To Set}'. - * - * - * @return the meta object for the containment reference list 'Features To Set'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration#getFeaturesToSet() - * @see #getSetValuesAdviceConfiguration() - * @generated - */ - EReference getSetValuesAdviceConfiguration_FeaturesToSet(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet Feature To Set}'. - * - * - * @return the meta object for class 'Feature To Set'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet - * @generated - */ - EClass getFeatureToSet(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getFeatureName Feature Name}'. - * - * - * @return the meta object for the attribute 'Feature Name'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getFeatureName() - * @see #getFeatureToSet() - * @generated - */ - EAttribute getFeatureToSet_FeatureName(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getValue Value}'. - * - * - * @return the meta object for the containment reference 'Value'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet#getValue() - * @see #getFeatureToSet() - * @generated - */ - EReference getFeatureToSet_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue Feature Value}'. - * - * - * @return the meta object for class 'Feature Value'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue - * @generated - */ - EClass getFeatureValue(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue Dynamic Value}'. - * - * - * @return the meta object for class 'Dynamic Value'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue - * @generated - */ - EClass getDynamicValue(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue Constant Value}'. - * - * - * @return the meta object for class 'Constant Value'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue - * @generated - */ - EClass getConstantValue(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue#getValueInstance Value Instance}'. - * - * - * @return the meta object for the containment reference 'Value Instance'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue#getValueInstance() - * @see #getConstantValue() - * @generated - */ - EReference getConstantValue_ValueInstance(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue List Value}'. - * - * - * @return the meta object for class 'List Value'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue - * @generated - */ - EClass getListValue(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue#getValues Values}'. - * - * - * @return the meta object for the containment reference list 'Values'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue#getValues() - * @see #getListValue() - * @generated - */ - EReference getListValue_Values(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue Query Execution Value}'. - * - * - * @return the meta object for class 'Query Execution Value'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue - * @generated - */ - EClass getQueryExecutionValue(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - SetValuesAdviceConfigurationFactory getSetValuesAdviceConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationImpl Set Values Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getSetValuesAdviceConfiguration() - * @generated - */ - EClass SET_VALUES_ADVICE_CONFIGURATION = eINSTANCE.getSetValuesAdviceConfiguration(); - - /** - * The meta object literal for the 'Features To Set' containment reference list feature. - * - * - * @generated - */ - EReference SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET = eINSTANCE.getSetValuesAdviceConfiguration_FeaturesToSet(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureToSetImpl Feature To Set}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureToSetImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getFeatureToSet() - * @generated - */ - EClass FEATURE_TO_SET = eINSTANCE.getFeatureToSet(); - - /** - * The meta object literal for the 'Feature Name' attribute feature. - * - * - * @generated - */ - EAttribute FEATURE_TO_SET__FEATURE_NAME = eINSTANCE.getFeatureToSet_FeatureName(); - - /** - * The meta object literal for the 'Value' containment reference feature. - * - * - * @generated - */ - EReference FEATURE_TO_SET__VALUE = eINSTANCE.getFeatureToSet_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureValueImpl Feature Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getFeatureValue() - * @generated - */ - EClass FEATURE_VALUE = eINSTANCE.getFeatureValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.DynamicValueImpl Dynamic Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.DynamicValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getDynamicValue() - * @generated - */ - EClass DYNAMIC_VALUE = eINSTANCE.getDynamicValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ConstantValueImpl Constant Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ConstantValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getConstantValue() - * @generated - */ - EClass CONSTANT_VALUE = eINSTANCE.getConstantValue(); - - /** - * The meta object literal for the 'Value Instance' containment reference feature. - * - * - * @generated - */ - EReference CONSTANT_VALUE__VALUE_INSTANCE = eINSTANCE.getConstantValue_ValueInstance(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ListValueImpl List Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ListValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getListValue() - * @generated - */ - EClass LIST_VALUE = eINSTANCE.getListValue(); - - /** - * The meta object literal for the 'Values' containment reference list feature. - * - * - * @generated - */ - EReference LIST_VALUE__VALUES = eINSTANCE.getListValue_Values(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.QueryExecutionValueImpl Query Execution Value}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.QueryExecutionValueImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationPackageImpl#getQueryExecutionValue() - * @generated - */ - EClass QUERY_EXECUTION_VALUE = eINSTANCE.getQueryExecutionValue(); - - } - -} //SetValuesAdviceConfigurationPackage diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ConstantValueImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ConstantValueImpl.java deleted file mode 100644 index da3850ba4b5..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ConstantValueImpl.java +++ /dev/null @@ -1,186 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * - * An implementation of the model object 'Constant Value'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ConstantValueImpl#getValueInstance Value Instance}
  • - *
- * - * @generated - */ -public class ConstantValueImpl extends FeatureValueImpl implements ConstantValue { - /** - * The cached value of the '{@link #getValueInstance() Value Instance}' containment reference. - * - * - * @see #getValueInstance() - * @generated - * @ordered - */ - protected ValueSpecification valueInstance; - - /** - * - * - * @generated - */ - protected ConstantValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE; - } - - /** - * - * - * @generated - */ - public ValueSpecification getValueInstance() { - return valueInstance; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValueInstance(ValueSpecification newValueInstance, NotificationChain msgs) { - ValueSpecification oldValueInstance = valueInstance; - valueInstance = newValueInstance; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, oldValueInstance, newValueInstance); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setValueInstance(ValueSpecification newValueInstance) { - if (newValueInstance != valueInstance) { - NotificationChain msgs = null; - if (valueInstance != null) - msgs = ((InternalEObject)valueInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); - if (newValueInstance != null) - msgs = ((InternalEObject)newValueInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); - msgs = basicSetValueInstance(newValueInstance, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, newValueInstance, newValueInstance)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - return basicSetValueInstance(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - return getValueInstance(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - setValueInstance((ValueSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - setValueInstance((ValueSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - return valueInstance != null; - } - return super.eIsSet(featureID); - } - -} //ConstantValueImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/DynamicValueImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/DynamicValueImpl.java deleted file mode 100644 index 64b989a0c13..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/DynamicValueImpl.java +++ /dev/null @@ -1,47 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * - * An implementation of the model object 'Dynamic Value'. - * - * - * @generated - */ -public abstract class DynamicValueImpl extends FeatureValueImpl implements DynamicValue { - /** - * - * - * @generated - */ - protected DynamicValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.DYNAMIC_VALUE; - } - -} //DynamicValueImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureToSetImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureToSetImpl.java deleted file mode 100644 index b1e9bead356..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureToSetImpl.java +++ /dev/null @@ -1,254 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * - * An implementation of the model object 'Feature To Set'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureToSetImpl#getFeatureName Feature Name}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.FeatureToSetImpl#getValue Value}
  • - *
- * - * @generated - */ -public class FeatureToSetImpl extends EObjectImpl implements FeatureToSet { - /** - * The default value of the '{@link #getFeatureName() Feature Name}' attribute. - * - * - * @see #getFeatureName() - * @generated - * @ordered - */ - protected static final String FEATURE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFeatureName() Feature Name}' attribute. - * - * - * @see #getFeatureName() - * @generated - * @ordered - */ - protected String featureName = FEATURE_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getValue() Value}' containment reference. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected FeatureValue value; - - /** - * - * - * @generated - */ - protected FeatureToSetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.FEATURE_TO_SET; - } - - /** - * - * - * @generated - */ - public String getFeatureName() { - return featureName; - } - - /** - * - * - * @generated - */ - public void setFeatureName(String newFeatureName) { - String oldFeatureName = featureName; - featureName = newFeatureName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME, oldFeatureName, featureName)); - } - - /** - * - * - * @generated - */ - public FeatureValue getValue() { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValue(FeatureValue newValue, NotificationChain msgs) { - FeatureValue oldValue = value; - value = newValue; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, oldValue, newValue); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setValue(FeatureValue newValue) { - if (newValue != value) { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, null, msgs); - msgs = basicSetValue(newValue, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, newValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - return basicSetValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - return getFeatureName(); - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - setFeatureName((String)newValue); - return; - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - setValue((FeatureValue)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - setFeatureName(FEATURE_NAME_EDEFAULT); - return; - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - setValue((FeatureValue)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - return FEATURE_NAME_EDEFAULT == null ? featureName != null : !FEATURE_NAME_EDEFAULT.equals(featureName); - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (featureName: "); - result.append(featureName); - result.append(')'); - return result.toString(); - } - -} //FeatureToSetImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureValueImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureValueImpl.java deleted file mode 100644 index dce68bcb235..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/FeatureValueImpl.java +++ /dev/null @@ -1,49 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * - * An implementation of the model object 'Feature Value'. - * - * - * @generated - */ -public abstract class FeatureValueImpl extends EObjectImpl implements FeatureValue { - /** - * - * - * @generated - */ - protected FeatureValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.FEATURE_VALUE; - } - -} //FeatureValueImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ListValueImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ListValueImpl.java deleted file mode 100644 index 295b3cdd862..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/ListValueImpl.java +++ /dev/null @@ -1,160 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.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.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * - * An implementation of the model object 'List Value'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.ListValueImpl#getValues Values}
  • - *
- * - * @generated - */ -public class ListValueImpl extends FeatureValueImpl implements ListValue { - /** - * The cached value of the '{@link #getValues() Values}' containment reference list. - * - * - * @see #getValues() - * @generated - * @ordered - */ - protected EList values; - - /** - * - * - * @generated - */ - protected ListValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.LIST_VALUE; - } - - /** - * - * - * @generated - */ - public EList getValues() { - if (values == null) { - values = new EObjectContainmentEList(FeatureValue.class, this, SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES); - } - return values; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES: - return ((InternalEList)getValues()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES: - return getValues(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES: - getValues().clear(); - getValues().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES: - getValues().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES: - return values != null && !values.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ListValueImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/QueryExecutionValueImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/QueryExecutionValueImpl.java deleted file mode 100644 index 31933ccbdd1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/QueryExecutionValueImpl.java +++ /dev/null @@ -1,47 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * - * An implementation of the model object 'Query Execution Value'. - * - * - * @generated - */ -public class QueryExecutionValueImpl extends DynamicValueImpl implements QueryExecutionValue { - /** - * - * - * @generated - */ - protected QueryExecutionValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.QUERY_EXECUTION_VALUE; - } - -} //QueryExecutionValueImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationFactoryImpl.java deleted file mode 100644 index a117c494911..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationFactoryImpl.java +++ /dev/null @@ -1,149 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.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.elementtypesconfigurations.emf.setvaluesadviceconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class SetValuesAdviceConfigurationFactoryImpl extends EFactoryImpl implements SetValuesAdviceConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static SetValuesAdviceConfigurationFactory init() { - try { - SetValuesAdviceConfigurationFactory theSetValuesAdviceConfigurationFactory = (SetValuesAdviceConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(SetValuesAdviceConfigurationPackage.eNS_URI); - if (theSetValuesAdviceConfigurationFactory != null) { - return theSetValuesAdviceConfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new SetValuesAdviceConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public SetValuesAdviceConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION: return createSetValuesAdviceConfiguration(); - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET: return createFeatureToSet(); - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE: return createConstantValue(); - case SetValuesAdviceConfigurationPackage.LIST_VALUE: return createListValue(); - case SetValuesAdviceConfigurationPackage.QUERY_EXECUTION_VALUE: return createQueryExecutionValue(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public SetValuesAdviceConfiguration createSetValuesAdviceConfiguration() { - SetValuesAdviceConfigurationImpl setValuesAdviceConfiguration = new SetValuesAdviceConfigurationImpl(); - return setValuesAdviceConfiguration; - } - - /** - * - * - * @generated - */ - public FeatureToSet createFeatureToSet() { - FeatureToSetImpl featureToSet = new FeatureToSetImpl(); - return featureToSet; - } - - /** - * - * - * @generated - */ - public ConstantValue createConstantValue() { - ConstantValueImpl constantValue = new ConstantValueImpl(); - return constantValue; - } - - /** - * - * - * @generated - */ - public ListValue createListValue() { - ListValueImpl listValue = new ListValueImpl(); - return listValue; - } - - /** - * - * - * @generated - */ - public QueryExecutionValue createQueryExecutionValue() { - QueryExecutionValueImpl queryExecutionValue = new QueryExecutionValueImpl(); - return queryExecutionValue; - } - - /** - * - * - * @generated - */ - public SetValuesAdviceConfigurationPackage getSetValuesAdviceConfigurationPackage() { - return (SetValuesAdviceConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static SetValuesAdviceConfigurationPackage getPackage() { - return SetValuesAdviceConfigurationPackage.eINSTANCE; - } - -} //SetValuesAdviceConfigurationFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationImpl.java deleted file mode 100644 index 2bfbf97b262..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationImpl.java +++ /dev/null @@ -1,162 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.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.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl; - -/** - * - * An implementation of the model object 'Set Values Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.impl.SetValuesAdviceConfigurationImpl#getFeaturesToSet Features To Set}
  • - *
- * - * @generated - */ -public class SetValuesAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements SetValuesAdviceConfiguration { - /** - * The cached value of the '{@link #getFeaturesToSet() Features To Set}' containment reference list. - * - * - * @see #getFeaturesToSet() - * @generated - * @ordered - */ - protected EList featuresToSet; - - /** - * - * - * @generated - */ - protected SetValuesAdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetValuesAdviceConfigurationPackage.Literals.SET_VALUES_ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getFeaturesToSet() { - if (featuresToSet == null) { - featuresToSet = new EObjectContainmentEList(FeatureToSet.class, this, SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET); - } - return featuresToSet; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: - return ((InternalEList)getFeaturesToSet()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: - return getFeaturesToSet(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: - getFeaturesToSet().clear(); - getFeaturesToSet().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: - getFeaturesToSet().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: - return featuresToSet != null && !featuresToSet.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //SetValuesAdviceConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationPackageImpl.java deleted file mode 100644 index 53bce98fb5d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/impl/SetValuesAdviceConfigurationPackageImpl.java +++ /dev/null @@ -1,377 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.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.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -import org.eclipse.uml2.uml.UMLPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class SetValuesAdviceConfigurationPackageImpl extends EPackageImpl implements SetValuesAdviceConfigurationPackage { - /** - * - * - * @generated - */ - private EClass setValuesAdviceConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass featureToSetEClass = null; - - /** - * - * - * @generated - */ - private EClass featureValueEClass = null; - - /** - * - * - * @generated - */ - private EClass dynamicValueEClass = null; - - /** - * - * - * @generated - */ - private EClass constantValueEClass = null; - - /** - * - * - * @generated - */ - private EClass listValueEClass = null; - - /** - * - * - * @generated - */ - private EClass queryExecutionValueEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private SetValuesAdviceConfigurationPackageImpl() { - super(eNS_URI, SetValuesAdviceConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link SetValuesAdviceConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static SetValuesAdviceConfigurationPackage init() { - if (isInited) return (SetValuesAdviceConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(SetValuesAdviceConfigurationPackage.eNS_URI); - - // Obtain or create and register package - SetValuesAdviceConfigurationPackageImpl theSetValuesAdviceConfigurationPackage = (SetValuesAdviceConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SetValuesAdviceConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SetValuesAdviceConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - ElementtypesconfigurationsPackage.eINSTANCE.eClass(); - UMLPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theSetValuesAdviceConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theSetValuesAdviceConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theSetValuesAdviceConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(SetValuesAdviceConfigurationPackage.eNS_URI, theSetValuesAdviceConfigurationPackage); - return theSetValuesAdviceConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getSetValuesAdviceConfiguration() { - return setValuesAdviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getSetValuesAdviceConfiguration_FeaturesToSet() { - return (EReference)setValuesAdviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getFeatureToSet() { - return featureToSetEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getFeatureToSet_FeatureName() { - return (EAttribute)featureToSetEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getFeatureToSet_Value() { - return (EReference)featureToSetEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getFeatureValue() { - return featureValueEClass; - } - - /** - * - * - * @generated - */ - public EClass getDynamicValue() { - return dynamicValueEClass; - } - - /** - * - * - * @generated - */ - public EClass getConstantValue() { - return constantValueEClass; - } - - /** - * - * - * @generated - */ - public EReference getConstantValue_ValueInstance() { - return (EReference)constantValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getListValue() { - return listValueEClass; - } - - /** - * - * - * @generated - */ - public EReference getListValue_Values() { - return (EReference)listValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getQueryExecutionValue() { - return queryExecutionValueEClass; - } - - /** - * - * - * @generated - */ - public SetValuesAdviceConfigurationFactory getSetValuesAdviceConfigurationFactory() { - return (SetValuesAdviceConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - setValuesAdviceConfigurationEClass = createEClass(SET_VALUES_ADVICE_CONFIGURATION); - createEReference(setValuesAdviceConfigurationEClass, SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET); - - featureToSetEClass = createEClass(FEATURE_TO_SET); - createEAttribute(featureToSetEClass, FEATURE_TO_SET__FEATURE_NAME); - createEReference(featureToSetEClass, FEATURE_TO_SET__VALUE); - - featureValueEClass = createEClass(FEATURE_VALUE); - - dynamicValueEClass = createEClass(DYNAMIC_VALUE); - - constantValueEClass = createEClass(CONSTANT_VALUE); - createEReference(constantValueEClass, CONSTANT_VALUE__VALUE_INSTANCE); - - listValueEClass = createEClass(LIST_VALUE); - createEReference(listValueEClass, LIST_VALUE__VALUES); - - queryExecutionValueEClass = createEClass(QUERY_EXECUTION_VALUE); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ElementtypesconfigurationsPackage theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - setValuesAdviceConfigurationEClass.getESuperTypes().add(theElementtypesconfigurationsPackage.getAbstractAdviceBindingConfiguration()); - dynamicValueEClass.getESuperTypes().add(this.getFeatureValue()); - constantValueEClass.getESuperTypes().add(this.getFeatureValue()); - listValueEClass.getESuperTypes().add(this.getFeatureValue()); - queryExecutionValueEClass.getESuperTypes().add(this.getDynamicValue()); - - // Initialize classes and features; add operations and parameters - initEClass(setValuesAdviceConfigurationEClass, SetValuesAdviceConfiguration.class, "SetValuesAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getSetValuesAdviceConfiguration_FeaturesToSet(), this.getFeatureToSet(), null, "featuresToSet", null, 0, -1, SetValuesAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureToSetEClass, FeatureToSet.class, "FeatureToSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFeatureToSet_FeatureName(), theEcorePackage.getEString(), "featureName", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFeatureToSet_Value(), this.getFeatureValue(), null, "value", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureValueEClass, FeatureValue.class, "FeatureValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(dynamicValueEClass, DynamicValue.class, "DynamicValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(constantValueEClass, ConstantValue.class, "ConstantValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getConstantValue_ValueInstance(), theUMLPackage.getValueSpecification(), null, "valueInstance", null, 0, 1, ConstantValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(listValueEClass, ListValue.class, "ListValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getListValue_Values(), this.getFeatureValue(), null, "values", null, 0, -1, ListValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(queryExecutionValueEClass, QueryExecutionValue.class, "QueryExecutionValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //SetValuesAdviceConfigurationPackageImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ConstantValueItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ConstantValueItemProvider.java deleted file mode 100644 index 03f0a009693..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ConstantValueItemProvider.java +++ /dev/null @@ -1,223 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -import org.eclipse.uml2.uml.UMLFactory; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue} object. - * - * - * @generated - */ -public class ConstantValueItemProvider extends FeatureValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ConstantValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ConstantValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ConstantValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ConstantValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ConstantValue.class)) { - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createOpaqueExpression())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createExpression())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createStringExpression())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createInstanceValue())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createTimeExpression())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createDuration())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createInterval())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createDurationInterval())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralBoolean())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralInteger())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralNull())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralReal())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralString())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralUnlimitedNatural())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createTimeInterval())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/DynamicValueItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/DynamicValueItemProvider.java deleted file mode 100644 index ca21cf010d2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/DynamicValueItemProvider.java +++ /dev/null @@ -1,104 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue} object. - * - * - * @generated - */ -public class DynamicValueItemProvider extends FeatureValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public DynamicValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns DynamicValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/DynamicValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_DynamicValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureToSetItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureToSetItemProvider.java deleted file mode 100644 index 3eae3f7c0b8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureToSetItemProvider.java +++ /dev/null @@ -1,219 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet} object. - * - * - * @generated - */ -public class FeatureToSetItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public FeatureToSetItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addFeatureNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Feature Name feature. - * - * - * @generated - */ - protected void addFeatureNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FeatureToSet_featureName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FeatureToSet_featureName_feature", "_UI_FeatureToSet_type"), - SetValuesAdviceConfigurationPackage.Literals.FEATURE_TO_SET__FEATURE_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(SetValuesAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns FeatureToSet.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureToSet")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((FeatureToSet)object).getFeatureName(); - return label == null || label.length() == 0 ? - getString("_UI_FeatureToSet_type") : - getString("_UI_FeatureToSet_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(FeatureToSet.class)) { - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, - SetValuesAdviceConfigurationFactory.eINSTANCE.createConstantValue())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, - SetValuesAdviceConfigurationFactory.eINSTANCE.createListValue())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, - SetValuesAdviceConfigurationFactory.eINSTANCE.createQueryExecutionValue())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SetValuesAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureValueItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureValueItemProvider.java deleted file mode 100644 index 8a5dee8ab9d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/FeatureValueItemProvider.java +++ /dev/null @@ -1,119 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue} object. - * - * - * @generated - */ -public class FeatureValueItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public FeatureValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_FeatureValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SetValuesAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ListValueItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ListValueItemProvider.java deleted file mode 100644 index 94e52648859..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/ListValueItemProvider.java +++ /dev/null @@ -1,162 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue} object. - * - * - * @generated - */ -public class ListValueItemProvider extends FeatureValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ListValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(SetValuesAdviceConfigurationPackage.Literals.LIST_VALUE__VALUES); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ListValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ListValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ListValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ListValue.class)) { - case SetValuesAdviceConfigurationPackage.LIST_VALUE__VALUES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.LIST_VALUE__VALUES, - SetValuesAdviceConfigurationFactory.eINSTANCE.createConstantValue())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.LIST_VALUE__VALUES, - SetValuesAdviceConfigurationFactory.eINSTANCE.createListValue())); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.LIST_VALUE__VALUES, - SetValuesAdviceConfigurationFactory.eINSTANCE.createQueryExecutionValue())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/QueryExecutionValueItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/QueryExecutionValueItemProvider.java deleted file mode 100644 index df6bc8c5279..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/QueryExecutionValueItemProvider.java +++ /dev/null @@ -1,104 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue} object. - * - * - * @generated - */ -public class QueryExecutionValueItemProvider extends DynamicValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public QueryExecutionValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns QueryExecutionValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/QueryExecutionValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_QueryExecutionValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java deleted file mode 100644 index 816bcb7c5f7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/RuntimeValuesEditionAdviceConfigurationEditPlugin.java +++ /dev/null @@ -1,111 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.constraints.provider.ConstraintsEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -import org.eclipse.papyrus.infra.properties.environment.provider.PropertiesEditPlugin; - -/** - * This is the central singleton for the RuntimeValuesEditionAdviceConfiguration edit plugin. - * - * - * @generated - */ -public final class RuntimeValuesEditionAdviceConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final RuntimeValuesEditionAdviceConfigurationEditPlugin INSTANCE = new RuntimeValuesEditionAdviceConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public RuntimeValuesEditionAdviceConfigurationEditPlugin() { - super - (new ResourceLocator [] { - ConstraintsEditPlugin.INSTANCE, - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - PropertiesEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationEditPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationEditPlugin.java deleted file mode 100644 index b72690c9eba..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationEditPlugin.java +++ /dev/null @@ -1,108 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -import org.eclipse.uml2.uml.edit.UMLEditPlugin; - -/** - * This is the central singleton for the SetValuesAdviceConfiguration edit plugin. - * - * - * @generated - */ -public final class SetValuesAdviceConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final SetValuesAdviceConfigurationEditPlugin INSTANCE = new SetValuesAdviceConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public SetValuesAdviceConfigurationEditPlugin() { - super - (new ResourceLocator [] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - UMLEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProvider.java deleted file mode 100644 index 945c9cf8293..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProvider.java +++ /dev/null @@ -1,170 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.AbstractAdviceBindingConfigurationItemProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration} object. - * - * - * @generated - */ -public class SetValuesAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public SetValuesAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(SetValuesAdviceConfigurationPackage.Literals.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns SetValuesAdviceConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/SetValuesAdviceConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((SetValuesAdviceConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_SetValuesAdviceConfiguration_type") : - getString("_UI_SetValuesAdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(SetValuesAdviceConfiguration.class)) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (SetValuesAdviceConfigurationPackage.Literals.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET, - SetValuesAdviceConfigurationFactory.eINSTANCE.createFeatureToSet())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SetValuesAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProviderAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index b9506b1c051..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/provider/SetValuesAdviceConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,409 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util.SetValuesAdviceConfigurationAdapterFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsSwitch; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class SetValuesAdviceConfigurationItemProviderAdapterFactory extends SetValuesAdviceConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public SetValuesAdviceConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration} instances. - * - * - * @generated - */ - protected SetValuesAdviceConfigurationItemProvider setValuesAdviceConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createSetValuesAdviceConfigurationAdapter() { - if (setValuesAdviceConfigurationItemProvider == null) { - setValuesAdviceConfigurationItemProvider = new SetValuesAdviceConfigurationItemProvider(this); - } - - return setValuesAdviceConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet} instances. - * - * - * @generated - */ - protected FeatureToSetItemProvider featureToSetItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet}. - * - * - * @generated - */ - @Override - public Adapter createFeatureToSetAdapter() { - if (featureToSetItemProvider == null) { - featureToSetItemProvider = new FeatureToSetItemProvider(this); - } - - return featureToSetItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue} instances. - * - * - * @generated - */ - protected ConstantValueItemProvider constantValueItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue}. - * - * - * @generated - */ - @Override - public Adapter createConstantValueAdapter() { - if (constantValueItemProvider == null) { - constantValueItemProvider = new ConstantValueItemProvider(this); - } - - return constantValueItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue} instances. - * - * - * @generated - */ - protected ListValueItemProvider listValueItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue}. - * - * - * @generated - */ - @Override - public Adapter createListValueAdapter() { - if (listValueItemProvider == null) { - listValueItemProvider = new ListValueItemProvider(this); - } - - return listValueItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue} instances. - * - * - * @generated - */ - protected QueryExecutionValueItemProvider queryExecutionValueItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue}. - * - * - * @generated - */ - @Override - public Adapter createQueryExecutionValueAdapter() { - if (queryExecutionValueItemProvider == null) { - queryExecutionValueItemProvider = new QueryExecutionValueItemProvider(this); - } - - return queryExecutionValueItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (setValuesAdviceConfigurationItemProvider != null) setValuesAdviceConfigurationItemProvider.dispose(); - if (featureToSetItemProvider != null) featureToSetItemProvider.dispose(); - if (constantValueItemProvider != null) constantValueItemProvider.dispose(); - if (listValueItemProvider != null) listValueItemProvider.dispose(); - if (queryExecutionValueItemProvider != null) queryExecutionValueItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link ElementtypesconfigurationsPackage}. - * - * - * @generated - */ - public static class ElementtypesconfigurationsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends ElementtypesconfigurationsSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, - SetValuesAdviceConfigurationFactory.eINSTANCE.createSetValuesAdviceConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return SetValuesAdviceConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationAdapterFactory.java deleted file mode 100644 index e26b39a9bdc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationAdapterFactory.java +++ /dev/null @@ -1,315 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage - * @generated - */ -public class SetValuesAdviceConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static SetValuesAdviceConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public SetValuesAdviceConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = SetValuesAdviceConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected SetValuesAdviceConfigurationSwitch modelSwitch = - new SetValuesAdviceConfigurationSwitch() { - @Override - public Adapter caseSetValuesAdviceConfiguration(SetValuesAdviceConfiguration object) { - return createSetValuesAdviceConfigurationAdapter(); - } - @Override - public Adapter caseFeatureToSet(FeatureToSet object) { - return createFeatureToSetAdapter(); - } - @Override - public Adapter caseFeatureValue(FeatureValue object) { - return createFeatureValueAdapter(); - } - @Override - public Adapter caseDynamicValue(DynamicValue object) { - return createDynamicValueAdapter(); - } - @Override - public Adapter caseConstantValue(ConstantValue object) { - return createConstantValueAdapter(); - } - @Override - public Adapter caseListValue(ListValue object) { - return createListValueAdapter(); - } - @Override - public Adapter caseQueryExecutionValue(QueryExecutionValue object) { - return createQueryExecutionValueAdapter(); - } - @Override - public Adapter caseConfigurationElement(ConfigurationElement object) { - return createConfigurationElementAdapter(); - } - @Override - public Adapter caseAdviceConfiguration(AdviceConfiguration object) { - return createAdviceConfigurationAdapter(); - } - @Override - public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return createIdentifiedConfigurationAdapter(); - } - @Override - public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return createAbstractAdviceBindingConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration Set Values Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfiguration - * @generated - */ - public Adapter createSetValuesAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet Feature To Set}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureToSet - * @generated - */ - public Adapter createFeatureToSetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue Feature Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.FeatureValue - * @generated - */ - public Adapter createFeatureValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue Dynamic Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.DynamicValue - * @generated - */ - public Adapter createDynamicValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue Constant Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ConstantValue - * @generated - */ - public Adapter createConstantValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue List Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.ListValue - * @generated - */ - public Adapter createListValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue Query Execution Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.QueryExecutionValue - * @generated - */ - public Adapter createQueryExecutionValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - public Adapter createConfigurationElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration - * @generated - */ - public Adapter createAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - public Adapter createIdentifiedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration - * @generated - */ - public Adapter createAbstractAdviceBindingConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //SetValuesAdviceConfigurationAdapterFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceFactoryImpl.java deleted file mode 100644 index 9ad3a267e38..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util.SetValuesAdviceConfigurationResourceImpl - * @generated - */ -public class SetValuesAdviceConfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public SetValuesAdviceConfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new SetValuesAdviceConfigurationResourceImpl(uri); - return result; - } - -} //SetValuesAdviceConfigurationResourceFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceImpl.java deleted file mode 100644 index 650a49797c1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util.SetValuesAdviceConfigurationResourceFactoryImpl - * @generated - */ -public class SetValuesAdviceConfigurationResourceImpl extends XMIResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public SetValuesAdviceConfigurationResourceImpl(URI uri) { - super(uri); - } - -} //SetValuesAdviceConfigurationResourceImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationSwitch.java deleted file mode 100644 index b319296945f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/util/SetValuesAdviceConfigurationSwitch.java +++ /dev/null @@ -1,320 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.SetValuesAdviceConfigurationPackage - * @generated - */ -public class SetValuesAdviceConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static SetValuesAdviceConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public SetValuesAdviceConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = SetValuesAdviceConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case SetValuesAdviceConfigurationPackage.SET_VALUES_ADVICE_CONFIGURATION: { - SetValuesAdviceConfiguration setValuesAdviceConfiguration = (SetValuesAdviceConfiguration)theEObject; - T result = caseSetValuesAdviceConfiguration(setValuesAdviceConfiguration); - if (result == null) result = caseAbstractAdviceBindingConfiguration(setValuesAdviceConfiguration); - if (result == null) result = caseAdviceConfiguration(setValuesAdviceConfiguration); - if (result == null) result = caseIdentifiedConfiguration(setValuesAdviceConfiguration); - if (result == null) result = caseConfigurationElement(setValuesAdviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case SetValuesAdviceConfigurationPackage.FEATURE_TO_SET: { - FeatureToSet featureToSet = (FeatureToSet)theEObject; - T result = caseFeatureToSet(featureToSet); - if (result == null) result = defaultCase(theEObject); - return result; - } - case SetValuesAdviceConfigurationPackage.FEATURE_VALUE: { - FeatureValue featureValue = (FeatureValue)theEObject; - T result = caseFeatureValue(featureValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case SetValuesAdviceConfigurationPackage.DYNAMIC_VALUE: { - DynamicValue dynamicValue = (DynamicValue)theEObject; - T result = caseDynamicValue(dynamicValue); - if (result == null) result = caseFeatureValue(dynamicValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case SetValuesAdviceConfigurationPackage.CONSTANT_VALUE: { - ConstantValue constantValue = (ConstantValue)theEObject; - T result = caseConstantValue(constantValue); - if (result == null) result = caseFeatureValue(constantValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case SetValuesAdviceConfigurationPackage.LIST_VALUE: { - ListValue listValue = (ListValue)theEObject; - T result = caseListValue(listValue); - if (result == null) result = caseFeatureValue(listValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case SetValuesAdviceConfigurationPackage.QUERY_EXECUTION_VALUE: { - QueryExecutionValue queryExecutionValue = (QueryExecutionValue)theEObject; - T result = caseQueryExecutionValue(queryExecutionValue); - if (result == null) result = caseDynamicValue(queryExecutionValue); - if (result == null) result = caseFeatureValue(queryExecutionValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Set Values Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Set Values Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSetValuesAdviceConfiguration(SetValuesAdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature To Set'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature To Set'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeatureToSet(FeatureToSet object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeatureValue(FeatureValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Dynamic Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Dynamic Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDynamicValue(DynamicValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Constant Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Constant Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConstantValue(ConstantValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'List Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'List Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseListValue(ListValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Query Execution Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Query Execution Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseQueryExecutionValue(QueryExecutionValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Configuration Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Configuration Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConfigurationElement(ConfigurationElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdviceConfiguration(AdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identified Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Identified Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //SetValuesAdviceConfigurationSwitch diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/Activator.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/Activator.java deleted file mode 100644 index e86be8d48d6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/Activator.java +++ /dev/null @@ -1,63 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf; - -import org.eclipse.core.runtime.Plugin; -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends Plugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.elementtypesconfigurations.emf"; //$NON-NLS-1$ - - // The shared instance - private static Activator INSTANCE; - - /** Logging helper */ - public static LogHelper log; - - /** - * The constructor - */ - public Activator() { - } - - @Override - public void start(BundleContext context) throws Exception { - super.start(context); - INSTANCE = this; - log = new LogHelper(this); - } - - @Override - public void stop(BundleContext context) throws Exception { - log = null; - INSTANCE = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return INSTANCE; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterNotfoundException.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterNotfoundException.java deleted file mode 100644 index e8f9ff469cf..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterNotfoundException.java +++ /dev/null @@ -1,71 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.uml2.uml.ValueSpecification; - - -/** - * Exception thrown when no converter was found - */ -public class ConverterNotfoundException extends Exception { - - /** serialization id */ - private static final long serialVersionUID = -8863603362830475612L; - - /** target parameter type */ - private final Class parameterType; - - /** source value instance */ - private final ValueSpecification valueInstance; - - /** - * Creates a new {@link ConverterNotfoundException}. - * - * @param parameterType - * the target type of the value - * @param valueInstance - * the value specification defining the entering value and type - */ - public ConverterNotfoundException(Class parameterType, ValueSpecification valueInstance) { - this.parameterType = parameterType; - this.valueInstance = valueInstance; - } - - /** - * Returns the target parameter type - * - * @return the target parameter type - */ - public Class getParameterType() { - return parameterType; - } - - /** - * Returns the value specification defining the entering value and type - * - * @return the value specification defining the entering value and type - */ - public ValueSpecification getValueInstance() { - return valueInstance; - } - - /** - * {@inheritDoc} - */ - @Override - public String getMessage() { - return "Converter not found for target type: " + getParameterType() + " and for initial value: " + getValueInstance(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterRegistry.java deleted file mode 100644 index 85b3369ebbe..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ConverterRegistry.java +++ /dev/null @@ -1,154 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.core.databinding.conversion.IConverter; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.uml2.uml.Enumeration; -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * Registry to store onverters. - */ -public class ConverterRegistry { - - /** singleton instance */ - private static ConverterRegistry instance; - - /** map to store converters, identified by their class */ - private Map, IConverter> converterMaps = new HashMap, IConverter>(); - - /** - * Constructor (not visible: singleton pattern) - */ - private ConverterRegistry() { - } - - /** - * Returns the single instance of this registry - * - * @return the single instance of this registry - */ - public static synchronized ConverterRegistry getSingleton() { - if(instance == null) { - instance = new ConverterRegistry(); - instance.initializeRegistry(); - } - return instance; - } - - /** - * Initialize the registry - */ - protected void initializeRegistry() { - converterMaps.put(String.class, new ValueSpecificationToStringConverter()); - converterMaps.put(int.class, new ValueSpecificationToIntegerConverter()); - converterMaps.put(boolean.class, new ValueSpecificationToBooleanConverter()); - converterMaps.put(Enumeration.class, new ValueSpecificationToEnumerationConverter()); - converterMaps.put(EEnum.class, new ValueSpecificationToEENumConverter()); - } - - /** - * Returns the converter for the convenient type, from an {@link Object} - * - * @param toType - * the class into which the element should be transformed - * - * @return the converter for the convenient type - */ - public IConverter getConverter(Class toType) { - return converterMaps.get(toType); - } - - public Object convert(Class parameterType, ValueSpecification valueInstance) throws ConverterNotfoundException { - // retrieve the converter - IConverter converter = getConverter(parameterType); - - if(converter != null) { - return converter.convert(valueInstance); - } else { - throw new ConverterNotfoundException(parameterType, valueInstance); - } - } - -// /** -// * Converts a parameter value into a list of values -// * -// * @param context -// * the context of the evaluation of the query -// * @param parameterType -// * the type of the list -// * @param parameterValue -// * the parameter value to transform into a list -// * @return the list of values contained by the parameter value -// */ -// public List convertToList(final EObject context, final Class parameterType, final ParameterValue parameterValue) { -// return new ConfigurationSwitch>() { -// -// /** -// * {@inheritDoc} -// */ -// @Override -// public java.util.List caseConstantParameterValue(ConstantParameterValue constantParameterValue) { -// IConverter converter = getConverter(parameterType); -// -// if(converter != null) { -// return Arrays.asList(converter.convert(constantParameterValue.getValueInstance())); -// } else { -// Activator.log.error("Impossible to find a converter for type: " + parameterType, null); -// return Collections.emptyList(); -// } -// }; -// -// /** -// * {@inheritDoc} -// */ -// @Override -// public java.util.List caseQueryExecutionValue(QueryExecutionValue queryExecutionValue) { -// // if query returns a list, returns it, else creates an array of one element -// QueryConfiguration queryConfiguration = queryExecutionValue.getConfiguration(); -// if(!(queryConfiguration instanceof ModiscoQueryConfiguration)) { -// throw new RuntimeException("List conversion not implemented for this type of configuration. " + queryConfiguration.eClass().getName()); -// } -// Object executionResult = null; -// try { -// executionResult = QueryUtil.evaluateBooleanQuery(context, queryConfiguration); -// } catch (Exception e) { -// Activator.log.error(e); -// } -// int upperBound = ((ModiscoQueryConfiguration)queryConfiguration).getQuery().getUpperBound(); -// if(upperBound == 1) { -// return Arrays.asList(executionResult); -// } else { -// return (List)executionResult; -// } -// }; -// -// /** -// * {@inheritDoc} -// */ -// @Override -// public java.util.List caseListParameterValue(ListParameterValue listParameterValue) { -// List values = new ArrayList(); -// for(ParameterValue parameterValue : listParameterValue.getValues()) { -// values.addAll(convertToList(context, parameterType, parameterValue)); -// } -// return values; -// }; -// -// }.doSwitch(parameterValue); -// } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToBooleanConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToBooleanConverter.java deleted file mode 100644 index a189dba5698..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToBooleanConverter.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; - - -/** - * Converter for Objects to Boolean value - */ -public class ObjectToBooleanConverter extends Converter implements IConverter { - - /** - * Creates a new ObjectToBooleanConverter - */ - public ObjectToBooleanConverter() { - super(Object.class, Boolean.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Boolean convert(Object fromObject) { - if(fromObject == null) { - return null; - } - - if(fromObject instanceof Boolean) { - return ((Boolean)fromObject); - } - - if(fromObject instanceof String) { - return Boolean.valueOf((String)fromObject); - } - - return null; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToIntegerConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToIntegerConverter.java deleted file mode 100644 index cf181dc5dab..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ObjectToIntegerConverter.java +++ /dev/null @@ -1,50 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; - -/** - * Converter from an object to an integer - */ -public class ObjectToIntegerConverter extends Converter implements IConverter { - - /** - * Default constructor. - */ - public ObjectToIntegerConverter() { - super(Object.class, Integer.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Integer convert(Object fromObject) { - if(fromObject == null) { - return null; - } - - if(fromObject instanceof Integer) { - return (Integer)fromObject; - } - - if(fromObject instanceof String) { - return Integer.parseInt((String)fromObject); - } - - return null; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToBooleanConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToBooleanConverter.java deleted file mode 100644 index b488ae6d0af..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToBooleanConverter.java +++ /dev/null @@ -1,39 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * Converter from a {@link ValueSpecification} to a {@link Boolean} value - */ -public class ValueSpecificationToBooleanConverter extends Converter implements IConverter { - - /** - * Creates a new ValueSpecificationToBooleanConverter. - */ - public ValueSpecificationToBooleanConverter() { - super(ValueSpecification.class, boolean.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Object convert(Object fromObject) { - return ((ValueSpecification)fromObject).booleanValue(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEENumConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEENumConverter.java deleted file mode 100644 index 5ba2b1c4302..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEENumConverter.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.uml2.uml.EnumerationLiteral; -import org.eclipse.uml2.uml.InstanceSpecification; -import org.eclipse.uml2.uml.InstanceValue; -import org.eclipse.uml2.uml.ValueSpecification; - - - -public class ValueSpecificationToEENumConverter extends Converter implements IConverter { - - /** - * @param fromType - * @param toType - */ - public ValueSpecificationToEENumConverter() { - super(ValueSpecification.class, EEnum.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Object convert(Object fromObject) { - if (fromObject instanceof InstanceValue) { - InstanceSpecification instanceSpecification = ((InstanceValue) fromObject).getInstance(); - if (instanceSpecification instanceof EnumerationLiteral) { - - - Class eclass = ((EnumerationLiteral) instanceSpecification).getEnumeration().eClass().getInstanceClass(); - - - // final EEnumLiteral literal = eenum.getEEnumLiteral(umlLiteral.getName()); - // if(literal != null) { - // return literal.getInstance(); - // } - // return null; - // - - // return ((EnumerationLiteral)instanceSpecification).; - } - } - - return fromObject; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEnumerationConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEnumerationConverter.java deleted file mode 100644 index 536fe3efd62..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToEnumerationConverter.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; -import org.eclipse.uml2.uml.Enumeration; -import org.eclipse.uml2.uml.EnumerationLiteral; -import org.eclipse.uml2.uml.InstanceSpecification; -import org.eclipse.uml2.uml.InstanceValue; -import org.eclipse.uml2.uml.ValueSpecification; - - -/** - * Converter for enumeration values - */ -public class ValueSpecificationToEnumerationConverter extends Converter implements IConverter { - - /** - * @param fromType - * @param toType - */ - public ValueSpecificationToEnumerationConverter() { - super(ValueSpecification.class, Enumeration.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Object convert(Object fromObject) { - if(fromObject instanceof InstanceValue) { - InstanceSpecification instanceSpecification = ((InstanceValue)fromObject).getInstance(); - if(instanceSpecification instanceof EnumerationLiteral) { - return (instanceSpecification); - } - } - - return fromObject; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToIntegerConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToIntegerConverter.java deleted file mode 100644 index 9b7072b21b4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToIntegerConverter.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * Converter from a {@link ValueSpecification} to an {@link Integer}. - */ -public class ValueSpecificationToIntegerConverter extends Converter implements IConverter { - - /** - * Creates a new {@link ValueSpecificationToIntegerConverter}. - */ - public ValueSpecificationToIntegerConverter() { - super(ValueSpecification.class, int.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Object convert(Object fromObject) { - return ((ValueSpecification)fromObject).integerValue(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToStringConverter.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToStringConverter.java deleted file mode 100644 index 37148dc0109..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/converter/ValueSpecificationToStringConverter.java +++ /dev/null @@ -1,39 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter; - -import org.eclipse.core.databinding.conversion.Converter; -import org.eclipse.core.databinding.conversion.IConverter; -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * Converter from a {@link ValueSpecification} to an {@link String}. - */ -public class ValueSpecificationToStringConverter extends Converter implements IConverter { - - /** - * Creates a new {@link ValueSpecificationToStringConverter}. - */ - public ValueSpecificationToStringConverter() { - super(ValueSpecification.class, String.class); - } - - /** - * {@inheritDoc} - */ - @Override - public Object convert(Object fromObject) { - return ((ValueSpecification)fromObject).stringValue(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerconfiguration/InvariantContainerRule.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerconfiguration/InvariantContainerRule.java deleted file mode 100644 index ded8bac568b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/invariantcontainerconfiguration/InvariantContainerRule.java +++ /dev/null @@ -1,131 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerconfiguration; - -import java.util.Arrays; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType; -import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; -import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.HierarchyPermission; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.invariantcontainerruleconfiguration.InvariantContainerRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.AbstractInvariantRule; -import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; - -@SuppressWarnings("restriction") -public class InvariantContainerRule extends AbstractInvariantRule { - - protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType typeToCreate, CreateElementRequest request) { - EObject newContainer = request.getContainer(); - return canContain(newContainer); - } - - protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType typeToMove, SetRequest request) { - EObject newContainer = request.getElementToEdit(); - return canContain(newContainer); - } - - protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType typeToMove, MoveRequest request) { - EObject newContainer = request.getTargetContainer(); - return canContain(newContainer); - } - - protected boolean canContain(EObject container) { - if (container == null) { - return false; - } - boolean isValid = false; - try { - IElementType newContainerElementType = ElementTypeRegistry.getInstance().getElementType(container, TypeContext.getContext()); - - for (HierarchyPermission permission : invariantRuleConfiguration.getPermissions()) { // for each permission, get the matcher and matches directly - boolean isPermitted = permission.isPermitted(); - String permissionContainerTypeID = permission.getContainerType(); - boolean isStrict = permission.isStrict(); - IElementType permissionContainerType = ElementTypeRegistry.getInstance().getType(permissionContainerTypeID); - - // check is the permission type is a specialization type or a metamodel type, to enhance performances - // if this is a metamodel type and strict, a simple equals can match or not if it is permitted or not - // if this is a metamodel type and not strict, we only compare the list of supertypes of the eObject type with the permission Type - if (permissionContainerType instanceof IMetamodelType) { - if (isStrict) { - isValid = permissionContainerType.equals(newContainerElementType) ? isPermitted : !isPermitted; - } else { - // this is not strict - // so any super metamodeltype of permission type that matches newContainerElementType is OK - // the type itself can also match... - if (newContainerElementType.equals(permissionContainerType)) { - isValid = isPermitted; - } else { - isValid = Arrays.asList(newContainerElementType.getAllSuperTypes()).contains(permissionContainerType) ? isPermitted : !isPermitted; - } - - } - } else if (permissionContainerType instanceof ISpecializationType) { - IElementMatcher matcher = ((ISpecializationType) permissionContainerType).getMatcher(); - if (matcher != null) { - boolean matchesSpecialization = matcher.matches(container) && newContainerElementType.equals(((ISpecializationType) permissionContainerType).getMetamodelType()); // the eObject matches the specializations type that is permitted. - if (matchesSpecialization) { - // test the isStrict now... It will be false if it matches one of the sub-specialization type - if (isStrict) { - ISpecializationType[] subtypes = ElementTypeRegistry.getInstance().getSpecializationsOf(permissionContainerTypeID); - if (subtypes != null && subtypes.length > 0) { - for (ISpecializationType subType : subtypes) { - isValid = subType.getMatcher().matches(container) ? isPermitted : !isPermitted; // the isStrict is not verified (one of the subtypes is matched whereas it should not) - } - } else { // there are no further sub specialization types. - isValid = isPermitted; - } - } else { - // not strict - isValid = isPermitted; - } - } else { // eObject type does not match the permission type - isValid = !isPermitted; - - } - } - } - } - - } catch (ServiceException e) { - Activator.log.error(e); - } - - return isValid; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.IInvariantRule#matches(org.eclipse.emf.ecore.EObject) - * - * @param eObject - * @return - */ - @Override - public boolean matches(EObject eObject) { - EObject container = eObject.eContainer(); - - return canContain(container); - } - - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValueUtils.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValueUtils.java deleted file mode 100644 index e6298035cf7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/FeatureValueUtils.java +++ /dev/null @@ -1,133 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter.ConverterNotfoundException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter.ConverterRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration.util.SetValuesAdviceConfigurationSwitch; -import org.eclipse.uml2.uml.DataType; -import org.eclipse.uml2.uml.InstanceValue; -import org.eclipse.uml2.uml.ValueSpecification; - - -/** - * Utility class to get values from a {@link FeatureValue} - */ -public class FeatureValueUtils { - - protected FeatureValueUtils() { - // no instanciation, helper class - } - - /** - * Returns the value to set for a given feature of a given element - * - * @param elementToConfigure - * eobject for which feature is set. This must not be null - * @param feature - * {@link EStructuralFeature} to set. This must not be null - * @param valueModel - * configuration of the value, stored in the model - * @return the real value that will be set to the object or null if none could be computed - */ - public static Object getValue(final EObject elementToConfigure, final EStructuralFeature feature, final FeatureValue featureValue) { - - Object result = new SetValuesAdviceConfigurationSwitch() { - /** - * {@inheritDoc} - */ - @Override - public Object caseConstantValue(ConstantValue object) { - ValueSpecification valueSpecification = object.getValueInstance(); - - if (valueSpecification == null) { - return null; - } - - try { - EClassifier type = feature.getEType(); - if (type instanceof EEnum) { - String value = ((InstanceValue) valueSpecification).getInstance().getName(); - return ((EEnum) type).getEEnumLiteral(value).getInstance(); - // return ConverterRegistry.getSingleton().convert(EEnum.class, valueSpecification); - } else if (type instanceof EDataType) { - final EDataType pType = (EDataType) type; - final String name = pType.getName(); - if ("Boolean".equals(name)) { - return ConverterRegistry.getSingleton().convert(boolean.class, valueSpecification); - } else if ("Integer".equals(name)) { - return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); - } else if ("Real".equals(name)) { - return ConverterRegistry.getSingleton().convert(double.class, valueSpecification); - } else if ("String".equals(name)) { - return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); - } else if ("UnlimitedNatural".equals(name)) { - return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); - } else { // custom PrimitiveType - return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); - } - } else if (type instanceof DataType) {// FIXME manage the data type - return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); - } - return ConverterRegistry.getSingleton().convert(feature.getEType().getInstanceClass(), valueSpecification); - } catch (ConverterNotfoundException e) { - Activator.log.error("Impossible to convert " + valueSpecification + " to fit feature type :" + feature, e); - } - return super.caseConstantValue(object); - } - - /** - * {@inheritDoc} - */ - @Override - public Object caseQueryExecutionValue(QueryExecutionValue object) { - throw new UnsupportedOperationException("Query execution values resolution has not been implemented yet"); - }; - - /** - * {@inheritDoc} - */ - @Override - public Object caseDynamicValue(DynamicValue object) { - throw new UnsupportedOperationException("Dynamic values resolution has not been implemented yet"); - }; - - /** - * {@inheritDoc} - */ - @Override - public Object caseListValue(ListValue object) { - // resolve one by one all features in the values list of this listvalue - List results = new ArrayList(); - for (FeatureValue value : object.getValues()) { - Object singleResult = getValue(elementToConfigure, feature, value); - results.add(singleResult); - } - return results; - }; - - }.doSwitch(featureValue); - return result; - } - - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdvice.java deleted file mode 100644 index 3a2b92fb5e7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdvice.java +++ /dev/null @@ -1,172 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import java.util.HashMap; -import java.util.Map; -import java.util.Map.Entry; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.Activator; -import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; -import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; - -/** - * advice for the {@link SetValuesAdviceConfiguration} - */ -public class SetValuesAdviceEditHelperAdvice extends AbstractEditHelperAdvice { - - /** list of the features to set */ - // protected Map featuresToValues = null; - /** list of runtime defined features */ - // protected Map featuresToRuntimeDefinitions = null; - - /** list of static defined features */ - protected Map featuresToStaticDefinitions = null; - - - /** - * Default Constructor - */ - public SetValuesAdviceEditHelperAdvice(SetValuesAdviceConfiguration configuration) { - // featuresToRuntimeDefinitions = new HashMap(); - featuresToStaticDefinitions = new HashMap(); - if (configuration == null) { - return; - } - for (FeatureToSet featureToSet : configuration.getFeaturesToSet()) { - featuresToStaticDefinitions.put(featureToSet.getFeatureName(), featureToSet.getValue()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public boolean approveRequest(IEditCommandRequest request) { - return super.approveRequest(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getBeforeCreateCommand(CreateElementRequest request) { - return super.getBeforeCreateCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getAfterCreateCommand(CreateElementRequest request) { - return super.getAfterCreateCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { - return super.getBeforeConfigureCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getAfterConfigureCommand(ConfigureRequest request) { - ICommand resultCommand = null; - - // retrieve eobject - EObject elementToConfigure = request.getElementToConfigure(); - if (elementToConfigure == null) { - return null; - } - // retrieve edit service to get features from configure command - IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure); - if (service == null) { - Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null); - return null; - } - - for (Entry featureEntry : featuresToStaticDefinitions.entrySet()) { - // retrieve feature value - ICommand command = getSetFeatureValueCommand(elementToConfigure, featureEntry.getKey(), featureEntry.getValue(), service, request); - if (command != null) { - if (resultCommand == null) { - resultCommand = command; - } else { - resultCommand = resultCommand.compose(command); - } - } - } - - // if(!featuresToRuntimeDefinitions.isEmpty()) { - // ICommand command = getDynamicSetFeatureValueCommand(elementToConfigure, featuresToRuntimeDefinitions, service, request); - // if(command !=null) { - // if(resultCommand == null) { - // resultCommand = command; - // } else { - // resultCommand = resultCommand.compose(command); - // } - // } - // } - - - if (resultCommand != null) { - return resultCommand.reduce(); - } - - - return super.getAfterConfigureCommand(request); - } - - - /** - * @param elementToConfigure - * the eobject to configure - * @param name - * the name of the feature to set - * @param value - * the new value of the feature - */ - protected ICommand getSetFeatureValueCommand(EObject elementToConfigure, String name, FeatureValue featureValue, IElementEditService service, ConfigureRequest configureRequest) { - if (name == null) { - Activator.log.debug("No feature name has been set."); - return null; - } - if (elementToConfigure.eClass() == null) { - Activator.log.error("Impossible to find EClass from EObject: " + elementToConfigure, null); - return null; - } - // retrieve structural feature for the element to configure - EStructuralFeature feature = elementToConfigure.eClass().getEStructuralFeature(name); - if (feature == null) { - Activator.log.error("Impossible to find feature " + name + " for eobject " + elementToConfigure, null); - return null; - } - Object value = FeatureValueUtils.getValue(elementToConfigure, feature, featureValue); - SetRequest request = new SetRequest(elementToConfigure, feature, value); - // duplicate parameters from configure request? - request.addParameters(configureRequest.getParameters()); - return service.getEditCommand(request); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdviceFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdviceFactory.java deleted file mode 100644 index 85f7146e0fa..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf/src/org/eclipse/papyrus/infra/elementtypesconfigurations/emf/setvaluesadviceconfiguration/SetValuesAdviceEditHelperAdviceFactory.java +++ /dev/null @@ -1,31 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.emf.setvaluesadviceconfiguration; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractAdviceBindingFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.NullEditHelperAdvice; - -public class SetValuesAdviceEditHelperAdviceFactory extends AbstractAdviceBindingFactory { - - @Override - protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { - if (adviceConfiguration instanceof SetValuesAdviceConfiguration) { - IEditHelperAdvice editHelperAdvice = new SetValuesAdviceEditHelperAdvice((SetValuesAdviceConfiguration) adviceConfiguration); - return editHelperAdvice; - } - return NullEditHelperAdvice.getInstance(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.classpath deleted file mode 100644 index 6cc5414644b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.project deleted file mode 100644 index 3f5b1548373..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 9ca8e68231b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/META-INF/MANIFEST.MF deleted file mode 100644 index a3a1a27be20..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/META-INF/MANIFEST.MF +++ /dev/null @@ -1,28 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", - org.eclipse.emf.ecore;bundle-version="2.7.0";visibility:=reexport, - org.eclipse.emf.ecore.xmi;bundle-version="2.6.0";visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.emf.edit;visibility:=reexport, - org.eclipse.emf.ecore.edit;visibility:=reexport, - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.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.elementtypesconfigurations.edit;bundle-version="1.2.0";visibility:=reexport -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration, - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl, - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider, - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util, - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes, - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider.InvariantTypeConfigurationEditPlugin$Implementation -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/build.properties deleted file mode 100644 index 32af9fa1c65..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/build.properties +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation -# Christian W. Damus - bug 451230 -# - -output..=bin/ -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - schema/,\ - icons/,\ - about.html -jars.compile.order=. -source.. = src-gen/,\ - src/ -bin..=bin/ -src.includes = about.html diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif deleted file mode 100644 index 1295f5216ee..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif deleted file mode 100644 index 96a3cb79d20..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif deleted file mode 100644 index 889f3af917f..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif deleted file mode 100644 index 6f6c92e3feb..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif deleted file mode 100644 index 4fa1d3e6761..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif deleted file mode 100644 index 052b213d0c0..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif deleted file mode 100644 index 5777ba5f48d..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif deleted file mode 100644 index 1e6c63ceb46..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif deleted file mode 100644 index 86ec735a156..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif deleted file mode 100644 index 7ca3215e5f4..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif deleted file mode 100644 index 99df60b4709..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif deleted file mode 100644 index 8c3d85f7383..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif deleted file mode 100644 index e06d6105a5c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif deleted file mode 100644 index 7402e2232e3..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif deleted file mode 100644 index 1295f5216ee..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif deleted file mode 100644 index ca9cabaa91c..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif deleted file mode 100644 index 6f6c92e3feb..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif deleted file mode 100644 index 4fa1d3e6761..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif deleted file mode 100644 index 1295f5216ee..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif deleted file mode 100644 index 6f6c92e3feb..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif deleted file mode 100644 index 4fa1d3e6761..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/AndInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/AndInvariantRuleConfiguration.gif deleted file mode 100644 index 1295f5216ee..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/AndInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/HierarchyPermission.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/HierarchyPermission.gif deleted file mode 100644 index c4a8af41844..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/HierarchyPermission.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerConfiguration.gif deleted file mode 100644 index 134551bff7e..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerRuleConfiguration.gif deleted file mode 100644 index 89ad5da38ab..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerTypeConfiguration.gif deleted file mode 100644 index cdd3b76e3c0..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantContainerTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantSemanticTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantSemanticTypeConfiguration.gif deleted file mode 100644 index ef56c140853..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantSemanticTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantTypeConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantTypeConfiguration.gif deleted file mode 100644 index 1e6c63ceb46..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/InvariantTypeConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/NotInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/NotInvariantRuleConfiguration.gif deleted file mode 100644 index 6f6c92e3feb..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/NotInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/OrInvariantRuleConfiguration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/OrInvariantRuleConfiguration.gif deleted file mode 100644 index 4fa1d3e6761..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/icons/full/obj16/OrInvariantRuleConfiguration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.ecore b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.ecore deleted file mode 100644 index 9ea45aa16a5..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.ecore +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.genmodel b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.genmodel deleted file mode 100644 index 993392db2e0..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/InvariantTypeConfiguration.genmodel +++ /dev/null @@ -1,31 +0,0 @@ - - - InvariantTypeConfiguration.ecore - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/invarianttype.elementtypesconfigurations b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/invarianttype.elementtypesconfigurations deleted file mode 100644 index 4c77694c3bc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/model/invarianttype.elementtypesconfigurations +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.properties deleted file mode 100644 index 7d5c1f7a9d6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.properties +++ /dev/null @@ -1,37 +0,0 @@ -# -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - Initial API and implementation - -pluginName = Papyrus InvariantContainerConfiguration Model -providerName = Eclipse Modeling Project -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} | {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - -_UI_PropertyDescriptor_description = The {0} of the {1} - -_UI_InvariantTypeConfiguration_type = Invariant Type Configuration -_UI_InvariantRuleConfiguration_type = Invariant Rule Configuration -_UI_CompositeInvariantRuleConfiguration_type = Composite Invariant Rule Configuration -_UI_NotInvariantRuleConfiguration_type = Not Invariant Rule Configuration -_UI_AndInvariantRuleConfiguration_type = And Invariant Rule Configuration -_UI_OrInvariantRuleConfiguration_type = Or Invariant Rule Configuration -_UI_Unknown_type = Object - -_UI_Unknown_datatype= Value - -_UI_InvariantTypeConfiguration_invariantRuleConfiguration_feature = Invariant Rule Configuration -_UI_CompositeInvariantRuleConfiguration_composedRules_feature = Composed Rules -_UI_NotInvariantRuleConfiguration_composedRule_feature = Composed Rule -_UI_Unknown_feature = Unspecified - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.xml deleted file mode 100644 index b535ce1fc47..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/plugin.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/pom.xml deleted file mode 100644 index 61cae9899c1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/schema/invariantRule.exsd b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/schema/invariantRule.exsd deleted file mode 100644 index 86b70d34e41..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/schema/invariantRule.exsd +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - Extension point to describe new invariant rules. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Enter the first release in which this extension point appears.] - - - - - - - - - [Enter extension point usage example here.] - - - - - - - - - [Enter API information here.] - - - - - - - - - [Enter information about supplied implementation of this extension point.] - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/AndInvariantRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/AndInvariantRuleConfiguration.java deleted file mode 100644 index 403621e05e6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/AndInvariantRuleConfiguration.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - - -/** - * - * A representation of the model object 'And Invariant Rule Configuration'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getAndInvariantRuleConfiguration() - * @model - * @generated - */ -public interface AndInvariantRuleConfiguration extends CompositeInvariantRuleConfiguration { -} // AndInvariantRuleConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/CompositeInvariantRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/CompositeInvariantRuleConfiguration.java deleted file mode 100644 index e739db406a8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/CompositeInvariantRuleConfiguration.java +++ /dev/null @@ -1,50 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Composite Invariant Rule Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration#getComposedRules Composed Rules}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getCompositeInvariantRuleConfiguration() - * @model abstract="true" - * @generated - */ -public interface CompositeInvariantRuleConfiguration extends InvariantRuleConfiguration { - /** - * Returns the value of the 'Composed Rules' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration}. - * - *

- * If the meaning of the 'Composed Rules' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Composed Rules' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getCompositeInvariantRuleConfiguration_ComposedRules() - * @model containment="true" lower="2" - * @generated - */ - EList getComposedRules(); - -} // CompositeInvariantRuleConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantRuleConfiguration.java deleted file mode 100644 index 126c80ef971..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantRuleConfiguration.java +++ /dev/null @@ -1,28 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Invariant Rule Configuration'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getInvariantRuleConfiguration() - * @model abstract="true" - * @generated - */ -public interface InvariantRuleConfiguration extends EObject { -} // InvariantRuleConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfiguration.java deleted file mode 100644 index 9abb9cac3dd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfiguration.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -/** - * - * A representation of the model object 'Invariant Type Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration#getInvariantRuleConfiguration Invariant Rule Configuration}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getInvariantTypeConfiguration() - * @model - * @generated - */ -public interface InvariantTypeConfiguration extends SpecializationTypeConfiguration { - /** - * Returns the value of the 'Invariant Rule Configuration' containment reference. - * - *

- * If the meaning of the 'Invariant Rule Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Invariant Rule Configuration' containment reference. - * @see #setInvariantRuleConfiguration(InvariantRuleConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getInvariantTypeConfiguration_InvariantRuleConfiguration() - * @model containment="true" required="true" - * @generated - */ - InvariantRuleConfiguration getInvariantRuleConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration#getInvariantRuleConfiguration Invariant Rule Configuration}' containment reference. - * - * - * @param value the new value of the 'Invariant Rule Configuration' containment reference. - * @see #getInvariantRuleConfiguration() - * @generated - */ - void setInvariantRuleConfiguration(InvariantRuleConfiguration value); - -} // InvariantTypeConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationFactory.java deleted file mode 100644 index c0d45beff39..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationFactory.java +++ /dev/null @@ -1,79 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage - * @generated - */ -public interface InvariantTypeConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - InvariantTypeConfigurationFactory eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Invariant Type Configuration'. - * - * - * @return a new object of class 'Invariant Type Configuration'. - * @generated - */ - InvariantTypeConfiguration createInvariantTypeConfiguration(); - - /** - * Returns a new object of class 'Not Invariant Rule Configuration'. - * - * - * @return a new object of class 'Not Invariant Rule Configuration'. - * @generated - */ - NotInvariantRuleConfiguration createNotInvariantRuleConfiguration(); - - /** - * Returns a new object of class 'And Invariant Rule Configuration'. - * - * - * @return a new object of class 'And Invariant Rule Configuration'. - * @generated - */ - AndInvariantRuleConfiguration createAndInvariantRuleConfiguration(); - - /** - * Returns a new object of class 'Or Invariant Rule Configuration'. - * - * - * @return a new object of class 'Or Invariant Rule Configuration'. - * @generated - */ - OrInvariantRuleConfiguration createOrInvariantRuleConfiguration(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - InvariantTypeConfigurationPackage getInvariantTypeConfigurationPackage(); - -} //InvariantTypeConfigurationFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationPackage.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationPackage.java deleted file mode 100644 index 25e1c9d4409..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/InvariantTypeConfigurationPackage.java +++ /dev/null @@ -1,576 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationFactory - * @model kind="package" - * @generated - */ -public interface InvariantTypeConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "invarianttypeconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/invarianttype/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "invarianttypeconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - InvariantTypeConfigurationPackage eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationImpl Invariant Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getInvariantTypeConfiguration() - * @generated - */ - int INVARIANT_TYPE_CONFIGURATION = 0; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__DESCRIPTION = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__IDENTIFIER = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__NAME = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__NAME; - - /** - * The feature id for the 'Hint' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__HINT = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__HINT; - - /** - * The feature id for the 'Kind' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__KIND = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__KIND; - - /** - * The feature id for the 'Icon Entry' containment reference. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__ICON_ENTRY = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__ICON_ENTRY; - - /** - * The feature id for the 'Specialized Types ID' attribute list. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID; - - /** - * The feature id for the 'Edit Helper Advice Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION; - - /** - * The feature id for the 'Invariant Rule Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Invariant Type Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION_FEATURE_COUNT = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Invariant Type Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_TYPE_CONFIGURATION_OPERATION_COUNT = ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantRuleConfigurationImpl Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getInvariantRuleConfiguration() - * @generated - */ - int INVARIANT_RULE_CONFIGURATION = 1; - - /** - * The number of structural features of the 'Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT = 0; - - /** - * The number of operations of the 'Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.CompositeInvariantRuleConfigurationImpl Composite Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.CompositeInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getCompositeInvariantRuleConfiguration() - * @generated - */ - int COMPOSITE_INVARIANT_RULE_CONFIGURATION = 2; - - /** - * The feature id for the 'Composed Rules' containment reference list. - * - * - * @generated - * @ordered - */ - int COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES = INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Composite Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int COMPOSITE_INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT = INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Composite Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int COMPOSITE_INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT = INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.NotInvariantRuleConfigurationImpl Not Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.NotInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getNotInvariantRuleConfiguration() - * @generated - */ - int NOT_INVARIANT_RULE_CONFIGURATION = 3; - - /** - * The feature id for the 'Composed Rule' reference. - * - * - * @generated - * @ordered - */ - int NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE = INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Not Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int NOT_INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT = INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Not Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int NOT_INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT = INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.AndInvariantRuleConfigurationImpl And Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.AndInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getAndInvariantRuleConfiguration() - * @generated - */ - int AND_INVARIANT_RULE_CONFIGURATION = 4; - - /** - * The feature id for the 'Composed Rules' containment reference list. - * - * - * @generated - * @ordered - */ - int AND_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES = COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES; - - /** - * The number of structural features of the 'And Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int AND_INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT = COMPOSITE_INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'And Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int AND_INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT = COMPOSITE_INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.OrInvariantRuleConfigurationImpl Or Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.OrInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getOrInvariantRuleConfiguration() - * @generated - */ - int OR_INVARIANT_RULE_CONFIGURATION = 5; - - /** - * The feature id for the 'Composed Rules' containment reference list. - * - * - * @generated - * @ordered - */ - int OR_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES = COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES; - - /** - * The number of structural features of the 'Or Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int OR_INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT = COMPOSITE_INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Or Invariant Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int OR_INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT = COMPOSITE_INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration Invariant Type Configuration}'. - * - * - * @return the meta object for class 'Invariant Type Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration - * @generated - */ - EClass getInvariantTypeConfiguration(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration#getInvariantRuleConfiguration Invariant Rule Configuration}'. - * - * - * @return the meta object for the containment reference 'Invariant Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration#getInvariantRuleConfiguration() - * @see #getInvariantTypeConfiguration() - * @generated - */ - EReference getInvariantTypeConfiguration_InvariantRuleConfiguration(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration Invariant Rule Configuration}'. - * - * - * @return the meta object for class 'Invariant Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration - * @generated - */ - EClass getInvariantRuleConfiguration(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration Composite Invariant Rule Configuration}'. - * - * - * @return the meta object for class 'Composite Invariant Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration - * @generated - */ - EClass getCompositeInvariantRuleConfiguration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration#getComposedRules Composed Rules}'. - * - * - * @return the meta object for the containment reference list 'Composed Rules'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration#getComposedRules() - * @see #getCompositeInvariantRuleConfiguration() - * @generated - */ - EReference getCompositeInvariantRuleConfiguration_ComposedRules(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration Not Invariant Rule Configuration}'. - * - * - * @return the meta object for class 'Not Invariant Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration - * @generated - */ - EClass getNotInvariantRuleConfiguration(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration#getComposedRule Composed Rule}'. - * - * - * @return the meta object for the reference 'Composed Rule'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration#getComposedRule() - * @see #getNotInvariantRuleConfiguration() - * @generated - */ - EReference getNotInvariantRuleConfiguration_ComposedRule(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration And Invariant Rule Configuration}'. - * - * - * @return the meta object for class 'And Invariant Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration - * @generated - */ - EClass getAndInvariantRuleConfiguration(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration Or Invariant Rule Configuration}'. - * - * - * @return the meta object for class 'Or Invariant Rule Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration - * @generated - */ - EClass getOrInvariantRuleConfiguration(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - InvariantTypeConfigurationFactory getInvariantTypeConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationImpl Invariant Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getInvariantTypeConfiguration() - * @generated - */ - EClass INVARIANT_TYPE_CONFIGURATION = eINSTANCE.getInvariantTypeConfiguration(); - - /** - * The meta object literal for the 'Invariant Rule Configuration' containment reference feature. - * - * - * @generated - */ - EReference INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION = eINSTANCE.getInvariantTypeConfiguration_InvariantRuleConfiguration(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantRuleConfigurationImpl Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getInvariantRuleConfiguration() - * @generated - */ - EClass INVARIANT_RULE_CONFIGURATION = eINSTANCE.getInvariantRuleConfiguration(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.CompositeInvariantRuleConfigurationImpl Composite Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.CompositeInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getCompositeInvariantRuleConfiguration() - * @generated - */ - EClass COMPOSITE_INVARIANT_RULE_CONFIGURATION = eINSTANCE.getCompositeInvariantRuleConfiguration(); - - /** - * The meta object literal for the 'Composed Rules' containment reference list feature. - * - * - * @generated - */ - EReference COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES = eINSTANCE.getCompositeInvariantRuleConfiguration_ComposedRules(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.NotInvariantRuleConfigurationImpl Not Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.NotInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getNotInvariantRuleConfiguration() - * @generated - */ - EClass NOT_INVARIANT_RULE_CONFIGURATION = eINSTANCE.getNotInvariantRuleConfiguration(); - - /** - * The meta object literal for the 'Composed Rule' reference feature. - * - * - * @generated - */ - EReference NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE = eINSTANCE.getNotInvariantRuleConfiguration_ComposedRule(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.AndInvariantRuleConfigurationImpl And Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.AndInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getAndInvariantRuleConfiguration() - * @generated - */ - EClass AND_INVARIANT_RULE_CONFIGURATION = eINSTANCE.getAndInvariantRuleConfiguration(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.OrInvariantRuleConfigurationImpl Or Invariant Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.OrInvariantRuleConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationPackageImpl#getOrInvariantRuleConfiguration() - * @generated - */ - EClass OR_INVARIANT_RULE_CONFIGURATION = eINSTANCE.getOrInvariantRuleConfiguration(); - - } - -} //InvariantTypeConfigurationPackage diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/NotInvariantRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/NotInvariantRuleConfiguration.java deleted file mode 100644 index 9edf5db1eb9..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/NotInvariantRuleConfiguration.java +++ /dev/null @@ -1,59 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - - -/** - * - * A representation of the model object 'Not Invariant Rule Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration#getComposedRule Composed Rule}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getNotInvariantRuleConfiguration() - * @model - * @generated - */ -public interface NotInvariantRuleConfiguration extends InvariantRuleConfiguration { - /** - * Returns the value of the 'Composed Rule' reference. - * - *

- * If the meaning of the 'Composed Rule' reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Composed Rule' reference. - * @see #setComposedRule(InvariantRuleConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getNotInvariantRuleConfiguration_ComposedRule() - * @model required="true" - * @generated - */ - InvariantRuleConfiguration getComposedRule(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration#getComposedRule Composed Rule}' reference. - * - * - * @param value the new value of the 'Composed Rule' reference. - * @see #getComposedRule() - * @generated - */ - void setComposedRule(InvariantRuleConfiguration value); - -} // NotInvariantRuleConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/OrInvariantRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/OrInvariantRuleConfiguration.java deleted file mode 100644 index 762e7fde3e6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/OrInvariantRuleConfiguration.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration; - - -/** - * - * A representation of the model object 'Or Invariant Rule Configuration'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#getOrInvariantRuleConfiguration() - * @model - * @generated - */ -public interface OrInvariantRuleConfiguration extends CompositeInvariantRuleConfiguration { -} // OrInvariantRuleConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/AndInvariantRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/AndInvariantRuleConfigurationImpl.java deleted file mode 100644 index 81c1b369b05..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/AndInvariantRuleConfigurationImpl.java +++ /dev/null @@ -1,47 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * An implementation of the model object 'And Invariant Rule Configuration'. - * - * - * @generated - */ -public class AndInvariantRuleConfigurationImpl extends CompositeInvariantRuleConfigurationImpl implements AndInvariantRuleConfiguration { - /** - * - * - * @generated - */ - protected AndInvariantRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantTypeConfigurationPackage.Literals.AND_INVARIANT_RULE_CONFIGURATION; - } - -} //AndInvariantRuleConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/CompositeInvariantRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/CompositeInvariantRuleConfigurationImpl.java deleted file mode 100644 index 89ff5932ff2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/CompositeInvariantRuleConfigurationImpl.java +++ /dev/null @@ -1,160 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.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.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * An implementation of the model object 'Composite Invariant Rule Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.CompositeInvariantRuleConfigurationImpl#getComposedRules Composed Rules}
  • - *
- * - * @generated - */ -public abstract class CompositeInvariantRuleConfigurationImpl extends InvariantRuleConfigurationImpl implements CompositeInvariantRuleConfiguration { - /** - * The cached value of the '{@link #getComposedRules() Composed Rules}' containment reference list. - * - * - * @see #getComposedRules() - * @generated - * @ordered - */ - protected EList composedRules; - - /** - * - * - * @generated - */ - protected CompositeInvariantRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getComposedRules() { - if (composedRules == null) { - composedRules = new EObjectContainmentEList(InvariantRuleConfiguration.class, this, InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES); - } - return composedRules; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES: - return ((InternalEList)getComposedRules()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES: - return getComposedRules(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES: - getComposedRules().clear(); - getComposedRules().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES: - getComposedRules().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES: - return composedRules != null && !composedRules.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //CompositeInvariantRuleConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantRuleConfigurationImpl.java deleted file mode 100644 index 1ccad7a276e..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantRuleConfigurationImpl.java +++ /dev/null @@ -1,49 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * An implementation of the model object 'Invariant Rule Configuration'. - * - * - * @generated - */ -public abstract class InvariantRuleConfigurationImpl extends MinimalEObjectImpl.Container implements InvariantRuleConfiguration { - /** - * - * - * @generated - */ - protected InvariantRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantTypeConfigurationPackage.Literals.INVARIANT_RULE_CONFIGURATION; - } - -} //InvariantRuleConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationFactoryImpl.java deleted file mode 100644 index 1db3ddcc49b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationFactoryImpl.java +++ /dev/null @@ -1,138 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.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.elementtypesconfigurations.invarianttypeconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class InvariantTypeConfigurationFactoryImpl extends EFactoryImpl implements InvariantTypeConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static InvariantTypeConfigurationFactory init() { - try { - InvariantTypeConfigurationFactory theInvariantTypeConfigurationFactory = (InvariantTypeConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(InvariantTypeConfigurationPackage.eNS_URI); - if (theInvariantTypeConfigurationFactory != null) { - return theInvariantTypeConfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new InvariantTypeConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public InvariantTypeConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION: return createInvariantTypeConfiguration(); - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION: return createNotInvariantRuleConfiguration(); - case InvariantTypeConfigurationPackage.AND_INVARIANT_RULE_CONFIGURATION: return createAndInvariantRuleConfiguration(); - case InvariantTypeConfigurationPackage.OR_INVARIANT_RULE_CONFIGURATION: return createOrInvariantRuleConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public InvariantTypeConfiguration createInvariantTypeConfiguration() { - InvariantTypeConfigurationImpl invariantTypeConfiguration = new InvariantTypeConfigurationImpl(); - return invariantTypeConfiguration; - } - - /** - * - * - * @generated - */ - public NotInvariantRuleConfiguration createNotInvariantRuleConfiguration() { - NotInvariantRuleConfigurationImpl notInvariantRuleConfiguration = new NotInvariantRuleConfigurationImpl(); - return notInvariantRuleConfiguration; - } - - /** - * - * - * @generated - */ - public AndInvariantRuleConfiguration createAndInvariantRuleConfiguration() { - AndInvariantRuleConfigurationImpl andInvariantRuleConfiguration = new AndInvariantRuleConfigurationImpl(); - return andInvariantRuleConfiguration; - } - - /** - * - * - * @generated - */ - public OrInvariantRuleConfiguration createOrInvariantRuleConfiguration() { - OrInvariantRuleConfigurationImpl orInvariantRuleConfiguration = new OrInvariantRuleConfigurationImpl(); - return orInvariantRuleConfiguration; - } - - /** - * - * - * @generated - */ - public InvariantTypeConfigurationPackage getInvariantTypeConfigurationPackage() { - return (InvariantTypeConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static InvariantTypeConfigurationPackage getPackage() { - return InvariantTypeConfigurationPackage.eINSTANCE; - } - -} //InvariantTypeConfigurationFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationImpl.java deleted file mode 100644 index e2c84e0537d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationImpl.java +++ /dev/null @@ -1,187 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * An implementation of the model object 'Invariant Type Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantTypeConfigurationImpl#getInvariantRuleConfiguration Invariant Rule Configuration}
  • - *
- * - * @generated - */ -public class InvariantTypeConfigurationImpl extends SpecializationTypeConfigurationImpl implements InvariantTypeConfiguration { - /** - * The cached value of the '{@link #getInvariantRuleConfiguration() Invariant Rule Configuration}' containment reference. - * - * - * @see #getInvariantRuleConfiguration() - * @generated - * @ordered - */ - protected InvariantRuleConfiguration invariantRuleConfiguration; - - /** - * - * - * @generated - */ - protected InvariantTypeConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public InvariantRuleConfiguration getInvariantRuleConfiguration() { - return invariantRuleConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetInvariantRuleConfiguration(InvariantRuleConfiguration newInvariantRuleConfiguration, NotificationChain msgs) { - InvariantRuleConfiguration oldInvariantRuleConfiguration = invariantRuleConfiguration; - invariantRuleConfiguration = newInvariantRuleConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, oldInvariantRuleConfiguration, newInvariantRuleConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setInvariantRuleConfiguration(InvariantRuleConfiguration newInvariantRuleConfiguration) { - if (newInvariantRuleConfiguration != invariantRuleConfiguration) { - NotificationChain msgs = null; - if (invariantRuleConfiguration != null) - msgs = ((InternalEObject)invariantRuleConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, null, msgs); - if (newInvariantRuleConfiguration != null) - msgs = ((InternalEObject)newInvariantRuleConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, null, msgs); - msgs = basicSetInvariantRuleConfiguration(newInvariantRuleConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, newInvariantRuleConfiguration, newInvariantRuleConfiguration)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION: - return basicSetInvariantRuleConfiguration(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION: - return getInvariantRuleConfiguration(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION: - setInvariantRuleConfiguration((InvariantRuleConfiguration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION: - setInvariantRuleConfiguration((InvariantRuleConfiguration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION: - return invariantRuleConfiguration != null; - } - return super.eIsSet(featureID); - } - -} //InvariantTypeConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationPackageImpl.java deleted file mode 100644 index e9217295cd4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/InvariantTypeConfigurationPackageImpl.java +++ /dev/null @@ -1,329 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl; - -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.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class InvariantTypeConfigurationPackageImpl extends EPackageImpl implements InvariantTypeConfigurationPackage { - /** - * - * - * @generated - */ - private EClass invariantTypeConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass invariantRuleConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass compositeInvariantRuleConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass notInvariantRuleConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass andInvariantRuleConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass orInvariantRuleConfigurationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private InvariantTypeConfigurationPackageImpl() { - super(eNS_URI, InvariantTypeConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link InvariantTypeConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static InvariantTypeConfigurationPackage init() { - if (isInited) return (InvariantTypeConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(InvariantTypeConfigurationPackage.eNS_URI); - - // Obtain or create and register package - InvariantTypeConfigurationPackageImpl theInvariantTypeConfigurationPackage = (InvariantTypeConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantTypeConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantTypeConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - ElementtypesconfigurationsPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theInvariantTypeConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theInvariantTypeConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theInvariantTypeConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(InvariantTypeConfigurationPackage.eNS_URI, theInvariantTypeConfigurationPackage); - return theInvariantTypeConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getInvariantTypeConfiguration() { - return invariantTypeConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getInvariantTypeConfiguration_InvariantRuleConfiguration() { - return (EReference)invariantTypeConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getInvariantRuleConfiguration() { - return invariantRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EClass getCompositeInvariantRuleConfiguration() { - return compositeInvariantRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositeInvariantRuleConfiguration_ComposedRules() { - return (EReference)compositeInvariantRuleConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getNotInvariantRuleConfiguration() { - return notInvariantRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getNotInvariantRuleConfiguration_ComposedRule() { - return (EReference)notInvariantRuleConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAndInvariantRuleConfiguration() { - return andInvariantRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EClass getOrInvariantRuleConfiguration() { - return orInvariantRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public InvariantTypeConfigurationFactory getInvariantTypeConfigurationFactory() { - return (InvariantTypeConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - invariantTypeConfigurationEClass = createEClass(INVARIANT_TYPE_CONFIGURATION); - createEReference(invariantTypeConfigurationEClass, INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION); - - invariantRuleConfigurationEClass = createEClass(INVARIANT_RULE_CONFIGURATION); - - compositeInvariantRuleConfigurationEClass = createEClass(COMPOSITE_INVARIANT_RULE_CONFIGURATION); - createEReference(compositeInvariantRuleConfigurationEClass, COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES); - - notInvariantRuleConfigurationEClass = createEClass(NOT_INVARIANT_RULE_CONFIGURATION); - createEReference(notInvariantRuleConfigurationEClass, NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE); - - andInvariantRuleConfigurationEClass = createEClass(AND_INVARIANT_RULE_CONFIGURATION); - - orInvariantRuleConfigurationEClass = createEClass(OR_INVARIANT_RULE_CONFIGURATION); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ElementtypesconfigurationsPackage theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - invariantTypeConfigurationEClass.getESuperTypes().add(theElementtypesconfigurationsPackage.getSpecializationTypeConfiguration()); - compositeInvariantRuleConfigurationEClass.getESuperTypes().add(this.getInvariantRuleConfiguration()); - notInvariantRuleConfigurationEClass.getESuperTypes().add(this.getInvariantRuleConfiguration()); - andInvariantRuleConfigurationEClass.getESuperTypes().add(this.getCompositeInvariantRuleConfiguration()); - orInvariantRuleConfigurationEClass.getESuperTypes().add(this.getCompositeInvariantRuleConfiguration()); - - // Initialize classes, features, and operations; add parameters - initEClass(invariantTypeConfigurationEClass, InvariantTypeConfiguration.class, "InvariantTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getInvariantTypeConfiguration_InvariantRuleConfiguration(), this.getInvariantRuleConfiguration(), null, "invariantRuleConfiguration", null, 1, 1, InvariantTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(invariantRuleConfigurationEClass, InvariantRuleConfiguration.class, "InvariantRuleConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(compositeInvariantRuleConfigurationEClass, CompositeInvariantRuleConfiguration.class, "CompositeInvariantRuleConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositeInvariantRuleConfiguration_ComposedRules(), this.getInvariantRuleConfiguration(), null, "composedRules", null, 2, -1, CompositeInvariantRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(notInvariantRuleConfigurationEClass, NotInvariantRuleConfiguration.class, "NotInvariantRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getNotInvariantRuleConfiguration_ComposedRule(), this.getInvariantRuleConfiguration(), null, "composedRule", null, 1, 1, NotInvariantRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(andInvariantRuleConfigurationEClass, AndInvariantRuleConfiguration.class, "AndInvariantRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(orInvariantRuleConfigurationEClass, OrInvariantRuleConfiguration.class, "OrInvariantRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //InvariantTypeConfigurationPackageImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/NotInvariantRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/NotInvariantRuleConfigurationImpl.java deleted file mode 100644 index 686a074d39f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/NotInvariantRuleConfigurationImpl.java +++ /dev/null @@ -1,166 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; - -/** - * - * An implementation of the model object 'Not Invariant Rule Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl.NotInvariantRuleConfigurationImpl#getComposedRule Composed Rule}
  • - *
- * - * @generated - */ -public class NotInvariantRuleConfigurationImpl extends InvariantRuleConfigurationImpl implements NotInvariantRuleConfiguration { - /** - * The cached value of the '{@link #getComposedRule() Composed Rule}' reference. - * - * - * @see #getComposedRule() - * @generated - * @ordered - */ - protected InvariantRuleConfiguration composedRule; - - /** - * - * - * @generated - */ - protected NotInvariantRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public InvariantRuleConfiguration getComposedRule() { - if (composedRule != null && composedRule.eIsProxy()) { - InternalEObject oldComposedRule = (InternalEObject)composedRule; - composedRule = (InvariantRuleConfiguration)eResolveProxy(oldComposedRule); - if (composedRule != oldComposedRule) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, oldComposedRule, composedRule)); - } - } - return composedRule; - } - - /** - * - * - * @generated - */ - public InvariantRuleConfiguration basicGetComposedRule() { - return composedRule; - } - - /** - * - * - * @generated - */ - public void setComposedRule(InvariantRuleConfiguration newComposedRule) { - InvariantRuleConfiguration oldComposedRule = composedRule; - composedRule = newComposedRule; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, oldComposedRule, composedRule)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE: - if (resolve) return getComposedRule(); - return basicGetComposedRule(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE: - setComposedRule((InvariantRuleConfiguration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE: - setComposedRule((InvariantRuleConfiguration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE: - return composedRule != null; - } - return super.eIsSet(featureID); - } - -} //NotInvariantRuleConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/OrInvariantRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/OrInvariantRuleConfigurationImpl.java deleted file mode 100644 index 0db6f33e674..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/impl/OrInvariantRuleConfigurationImpl.java +++ /dev/null @@ -1,47 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration; - -/** - * - * An implementation of the model object 'Or Invariant Rule Configuration'. - * - * - * @generated - */ -public class OrInvariantRuleConfigurationImpl extends CompositeInvariantRuleConfigurationImpl implements OrInvariantRuleConfiguration { - /** - * - * - * @generated - */ - protected OrInvariantRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantTypeConfigurationPackage.Literals.OR_INVARIANT_RULE_CONFIGURATION; - } - -} //OrInvariantRuleConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/AndInvariantRuleConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/AndInvariantRuleConfigurationItemProvider.java deleted file mode 100644 index 3f34476d1e4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/AndInvariantRuleConfigurationItemProvider.java +++ /dev/null @@ -1,104 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration} object. - * - * - * @generated - */ -public class AndInvariantRuleConfigurationItemProvider extends CompositeInvariantRuleConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AndInvariantRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns AndInvariantRuleConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/AndInvariantRuleConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_AndInvariantRuleConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/CompositeInvariantRuleConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/CompositeInvariantRuleConfigurationItemProvider.java deleted file mode 100644 index 11a47f0f30e..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/CompositeInvariantRuleConfigurationItemProvider.java +++ /dev/null @@ -1,151 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration} object. - * - * - * @generated - */ -public class CompositeInvariantRuleConfigurationItemProvider extends InvariantRuleConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public CompositeInvariantRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_CompositeInvariantRuleConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(CompositeInvariantRuleConfiguration.class)) { - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES, - InvariantTypeConfigurationFactory.eINSTANCE.createNotInvariantRuleConfiguration())); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES, - InvariantTypeConfigurationFactory.eINSTANCE.createAndInvariantRuleConfiguration())); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES, - InvariantTypeConfigurationFactory.eINSTANCE.createOrInvariantRuleConfiguration())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantRuleConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantRuleConfigurationItemProvider.java deleted file mode 100644 index bd0dad2f75b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantRuleConfigurationItemProvider.java +++ /dev/null @@ -1,120 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration} object. - * - * - * @generated - */ -public class InvariantRuleConfigurationItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public InvariantRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_InvariantRuleConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationEditPlugin.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationEditPlugin.java deleted file mode 100644 index 654d6447c5d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationEditPlugin.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -/** - * This is the central singleton for the InvariantTypeConfiguration edit plugin. - * - * - * @generated - */ -public final class InvariantTypeConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final InvariantTypeConfigurationEditPlugin INSTANCE = new InvariantTypeConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public InvariantTypeConfigurationEditPlugin() { - super - (new ResourceLocator [] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProvider.java deleted file mode 100644 index 6206716bea6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProvider.java +++ /dev/null @@ -1,167 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.SpecializationTypeConfigurationItemProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration} object. - * - * - * @generated - */ -public class InvariantTypeConfigurationItemProvider extends SpecializationTypeConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public InvariantTypeConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns InvariantTypeConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/InvariantTypeConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((InvariantTypeConfiguration)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_InvariantTypeConfiguration_type") : - getString("_UI_InvariantTypeConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(InvariantTypeConfiguration.class)) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, - InvariantTypeConfigurationFactory.eINSTANCE.createNotInvariantRuleConfiguration())); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, - InvariantTypeConfigurationFactory.eINSTANCE.createAndInvariantRuleConfiguration())); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, - InvariantTypeConfigurationFactory.eINSTANCE.createOrInvariantRuleConfiguration())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProviderAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index 9a09ee82245..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/InvariantTypeConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,422 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util.InvariantTypeConfigurationAdapterFactory; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsSwitch; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class InvariantTypeConfigurationItemProviderAdapterFactory extends InvariantTypeConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. - * - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager(InvariantTypeConfigurationEditPlugin.INSTANCE, InvariantTypeConfigurationPackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public InvariantTypeConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration} instances. - * - * - * @generated - */ - protected InvariantTypeConfigurationItemProvider invariantTypeConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createInvariantTypeConfigurationAdapter() { - if (invariantTypeConfigurationItemProvider == null) { - invariantTypeConfigurationItemProvider = new InvariantTypeConfigurationItemProvider(this); - } - - return invariantTypeConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration} instances. - * - * - * @generated - */ - protected NotInvariantRuleConfigurationItemProvider notInvariantRuleConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createNotInvariantRuleConfigurationAdapter() { - if (notInvariantRuleConfigurationItemProvider == null) { - notInvariantRuleConfigurationItemProvider = new NotInvariantRuleConfigurationItemProvider(this); - } - - return notInvariantRuleConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration} instances. - * - * - * @generated - */ - protected AndInvariantRuleConfigurationItemProvider andInvariantRuleConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createAndInvariantRuleConfigurationAdapter() { - if (andInvariantRuleConfigurationItemProvider == null) { - andInvariantRuleConfigurationItemProvider = new AndInvariantRuleConfigurationItemProvider(this); - } - - return andInvariantRuleConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration} instances. - * - * - * @generated - */ - protected OrInvariantRuleConfigurationItemProvider orInvariantRuleConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createOrInvariantRuleConfigurationAdapter() { - if (orInvariantRuleConfigurationItemProvider == null) { - orInvariantRuleConfigurationItemProvider = new OrInvariantRuleConfigurationItemProvider(this); - } - - return orInvariantRuleConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * - * - * @generated - */ - public List getChildCreationExtenders() { - return childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return childCreationExtenderManager; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (invariantTypeConfigurationItemProvider != null) invariantTypeConfigurationItemProvider.dispose(); - if (notInvariantRuleConfigurationItemProvider != null) notInvariantRuleConfigurationItemProvider.dispose(); - if (andInvariantRuleConfigurationItemProvider != null) andInvariantRuleConfigurationItemProvider.dispose(); - if (orInvariantRuleConfigurationItemProvider != null) orInvariantRuleConfigurationItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link ElementtypesconfigurationsPackage}. - * - * - * @generated - */ - public static class ElementtypesconfigurationsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends ElementtypesconfigurationsSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS, - InvariantTypeConfigurationFactory.eINSTANCE.createInvariantTypeConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return InvariantTypeConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/NotInvariantRuleConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/NotInvariantRuleConfigurationItemProvider.java deleted file mode 100644 index 75403891bcf..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/NotInvariantRuleConfigurationItemProvider.java +++ /dev/null @@ -1,185 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration} object. - * - * - * @generated - */ -public class NotInvariantRuleConfigurationItemProvider extends InvariantRuleConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public NotInvariantRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addComposedRulePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Composed Rule feature. - * - * - * @generated - */ - protected void addComposedRulePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_NotInvariantRuleConfiguration_composedRule_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_NotInvariantRuleConfiguration_composedRule_feature", "_UI_NotInvariantRuleConfiguration_type"), - InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, - true, - false, - false, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns NotInvariantRuleConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/NotInvariantRuleConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_NotInvariantRuleConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(NotInvariantRuleConfiguration.class)) { - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, - InvariantTypeConfigurationFactory.eINSTANCE.createNotInvariantRuleConfiguration())); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, - InvariantTypeConfigurationFactory.eINSTANCE.createAndInvariantRuleConfiguration())); - - newChildDescriptors.add - (createChildParameter - (InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, - InvariantTypeConfigurationFactory.eINSTANCE.createOrInvariantRuleConfiguration())); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/OrInvariantRuleConfigurationItemProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/OrInvariantRuleConfigurationItemProvider.java deleted file mode 100644 index 6f4604c9291..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/provider/OrInvariantRuleConfigurationItemProvider.java +++ /dev/null @@ -1,104 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration} object. - * - * - * @generated - */ -public class OrInvariantRuleConfigurationItemProvider extends CompositeInvariantRuleConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public OrInvariantRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns OrInvariantRuleConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/OrInvariantRuleConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_OrInvariantRuleConfiguration_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationAdapterFactory.java deleted file mode 100644 index 9a657332b20..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationAdapterFactory.java +++ /dev/null @@ -1,316 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.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.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage - * @generated - */ -public class InvariantTypeConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static InvariantTypeConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public InvariantTypeConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = InvariantTypeConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected InvariantTypeConfigurationSwitch modelSwitch = - new InvariantTypeConfigurationSwitch() { - @Override - public Adapter caseInvariantTypeConfiguration(InvariantTypeConfiguration object) { - return createInvariantTypeConfigurationAdapter(); - } - @Override - public Adapter caseInvariantRuleConfiguration(InvariantRuleConfiguration object) { - return createInvariantRuleConfigurationAdapter(); - } - @Override - public Adapter caseCompositeInvariantRuleConfiguration(CompositeInvariantRuleConfiguration object) { - return createCompositeInvariantRuleConfigurationAdapter(); - } - @Override - public Adapter caseNotInvariantRuleConfiguration(NotInvariantRuleConfiguration object) { - return createNotInvariantRuleConfigurationAdapter(); - } - @Override - public Adapter caseAndInvariantRuleConfiguration(AndInvariantRuleConfiguration object) { - return createAndInvariantRuleConfigurationAdapter(); - } - @Override - public Adapter caseOrInvariantRuleConfiguration(OrInvariantRuleConfiguration object) { - return createOrInvariantRuleConfigurationAdapter(); - } - @Override - public Adapter caseConfigurationElement(ConfigurationElement object) { - return createConfigurationElementAdapter(); - } - @Override - public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return createIdentifiedConfigurationAdapter(); - } - @Override - public Adapter caseNamedConfiguration(NamedConfiguration object) { - return createNamedConfigurationAdapter(); - } - @Override - public Adapter caseElementTypeConfiguration(ElementTypeConfiguration object) { - return createElementTypeConfigurationAdapter(); - } - @Override - public Adapter caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { - return createSpecializationTypeConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration Invariant Type Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration - * @generated - */ - public Adapter createInvariantTypeConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration - * @generated - */ - public Adapter createInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration Composite Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration - * @generated - */ - public Adapter createCompositeInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration Not Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration - * @generated - */ - public Adapter createNotInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration And Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration - * @generated - */ - public Adapter createAndInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration Or Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration - * @generated - */ - public Adapter createOrInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - public Adapter createConfigurationElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - public Adapter createIdentifiedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration Named Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration - * @generated - */ - public Adapter createNamedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration Element Type Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration - * @generated - */ - public Adapter createElementTypeConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration Specialization Type Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration - * @generated - */ - public Adapter createSpecializationTypeConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //InvariantTypeConfigurationAdapterFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceFactoryImpl.java deleted file mode 100644 index 14faaffcf0f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util.InvariantTypeConfigurationResourceImpl - * @generated - */ -public class InvariantTypeConfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public InvariantTypeConfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new InvariantTypeConfigurationResourceImpl(uri); - return result; - } - -} //InvariantTypeConfigurationResourceFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceImpl.java deleted file mode 100644 index ffe2ee8e958..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util.InvariantTypeConfigurationResourceFactoryImpl - * @generated - */ -public class InvariantTypeConfigurationResourceImpl extends XMIResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public InvariantTypeConfigurationResourceImpl(URI uri) { - super(uri); - } - -} //InvariantTypeConfigurationResourceImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationSwitch.java deleted file mode 100644 index 7b2516affad..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypeconfiguration/util/InvariantTypeConfigurationSwitch.java +++ /dev/null @@ -1,317 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.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.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage - * @generated - */ -public class InvariantTypeConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static InvariantTypeConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public InvariantTypeConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = InvariantTypeConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case InvariantTypeConfigurationPackage.INVARIANT_TYPE_CONFIGURATION: { - InvariantTypeConfiguration invariantTypeConfiguration = (InvariantTypeConfiguration)theEObject; - T result = caseInvariantTypeConfiguration(invariantTypeConfiguration); - if (result == null) result = caseSpecializationTypeConfiguration(invariantTypeConfiguration); - if (result == null) result = caseElementTypeConfiguration(invariantTypeConfiguration); - if (result == null) result = caseConfigurationElement(invariantTypeConfiguration); - if (result == null) result = caseIdentifiedConfiguration(invariantTypeConfiguration); - if (result == null) result = caseNamedConfiguration(invariantTypeConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION: { - InvariantRuleConfiguration invariantRuleConfiguration = (InvariantRuleConfiguration)theEObject; - T result = caseInvariantRuleConfiguration(invariantRuleConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case InvariantTypeConfigurationPackage.COMPOSITE_INVARIANT_RULE_CONFIGURATION: { - CompositeInvariantRuleConfiguration compositeInvariantRuleConfiguration = (CompositeInvariantRuleConfiguration)theEObject; - T result = caseCompositeInvariantRuleConfiguration(compositeInvariantRuleConfiguration); - if (result == null) result = caseInvariantRuleConfiguration(compositeInvariantRuleConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case InvariantTypeConfigurationPackage.NOT_INVARIANT_RULE_CONFIGURATION: { - NotInvariantRuleConfiguration notInvariantRuleConfiguration = (NotInvariantRuleConfiguration)theEObject; - T result = caseNotInvariantRuleConfiguration(notInvariantRuleConfiguration); - if (result == null) result = caseInvariantRuleConfiguration(notInvariantRuleConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case InvariantTypeConfigurationPackage.AND_INVARIANT_RULE_CONFIGURATION: { - AndInvariantRuleConfiguration andInvariantRuleConfiguration = (AndInvariantRuleConfiguration)theEObject; - T result = caseAndInvariantRuleConfiguration(andInvariantRuleConfiguration); - if (result == null) result = caseCompositeInvariantRuleConfiguration(andInvariantRuleConfiguration); - if (result == null) result = caseInvariantRuleConfiguration(andInvariantRuleConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case InvariantTypeConfigurationPackage.OR_INVARIANT_RULE_CONFIGURATION: { - OrInvariantRuleConfiguration orInvariantRuleConfiguration = (OrInvariantRuleConfiguration)theEObject; - T result = caseOrInvariantRuleConfiguration(orInvariantRuleConfiguration); - if (result == null) result = caseCompositeInvariantRuleConfiguration(orInvariantRuleConfiguration); - if (result == null) result = caseInvariantRuleConfiguration(orInvariantRuleConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Invariant Type Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Invariant Type Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInvariantTypeConfiguration(InvariantTypeConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInvariantRuleConfiguration(InvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composite Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composite Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositeInvariantRuleConfiguration(CompositeInvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Not Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Not Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNotInvariantRuleConfiguration(NotInvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'And Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'And Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAndInvariantRuleConfiguration(AndInvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Or Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Or Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOrInvariantRuleConfiguration(OrInvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Configuration Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Configuration Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConfigurationElement(ConfigurationElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identified Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Identified Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Named Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Named Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNamedConfiguration(NamedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Element Type Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Element Type Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseElementTypeConfiguration(ElementTypeConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Specialization Type Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Specialization Type Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //InvariantTypeConfigurationSwitch diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/Activator.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/Activator.java deleted file mode 100644 index c699672337c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/Activator.java +++ /dev/null @@ -1,74 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 485220 - * - /*****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes; - -import org.eclipse.core.runtime.Plugin; -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends Plugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** Logging helper */ - 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 { - log = null; - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/AbstractInvariantRule.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/AbstractInvariantRule.java deleted file mode 100644 index 8b8844c2480..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/AbstractInvariantRule.java +++ /dev/null @@ -1,101 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -public abstract class AbstractInvariantRule implements IInvariantRule { - protected T invariantRuleConfiguration; - - @Override - public boolean approveRequest(IEditCommandRequest request) { - if (request instanceof CreateElementRequest) { - IElementType typeToCreate = ((CreateElementRequest) request).getElementType(); - - if (!approveCreationRequest(((ConfiguredHintedSpecializationElementType) typeToCreate), (CreateElementRequest) request)) { - return false; - } - - } else if (request instanceof SetRequest) { - EStructuralFeature feature = ((SetRequest) request).getFeature(); - if (feature instanceof EReference) { - - // containment. Check the kind of element to edit - Object value = ((SetRequest) request).getValue(); - List values = new ArrayList(); - // value = single object or list ? - if (value instanceof EObject) { - values.add(value); - } else if (value instanceof List) { - values.addAll((List) value); - } - - for (Object object : values) { - if (object instanceof EObject) { - IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) object, request.getClientContext()); - for (IElementType type : types) { - if (type instanceof ConfiguredHintedSpecializationElementType) { - if (!approveSetRequest((ConfiguredHintedSpecializationElementType) type, (SetRequest) request)) { - return false; - } - } - } - } - } - } - } else if (request instanceof MoveRequest) { - - Map objectsToMove = ((MoveRequest) request).getElementsToMove(); - - for (EObject movedElement : objectsToMove.keySet()) { - - IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(movedElement, request.getClientContext()); - for (IElementType type : types) { - if (type instanceof ConfiguredHintedSpecializationElementType) { - if (!approveMoveRequest((ConfiguredHintedSpecializationElementType) type, (MoveRequest) request)) { - return false; - } - } - } - } - return true; - } - return true; - } - - - abstract protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType type, MoveRequest request); - - abstract protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType type, SetRequest request); - - abstract protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType type, CreateElementRequest request); - - @Override - public void init(T invariantRuleConfiguration) { - this.invariantRuleConfiguration = invariantRuleConfiguration; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantEditHelperAdvice.java deleted file mode 100644 index ecb8635ea12..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantEditHelperAdvice.java +++ /dev/null @@ -1,230 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.Activator; - - -public class DefaultInvariantEditHelperAdvice extends AbstractEditHelperAdvice { - - - @Override - public boolean approveRequest(IEditCommandRequest request) { - List types = getInvariantTypes(request); - - // Must approve from the whole hierarchy - for (ConfiguredHintedSpecializationElementType configuredHintedSpecializationElementType : types) { - if (!approveRequest(configuredHintedSpecializationElementType, request)) { - return false; - } - } - - return true; - } - - /** - * @param request - * - */ - protected List getInvariantTypes(IEditCommandRequest request) { - List result = new ArrayList(); - if (request instanceof CreateElementRequest) { - IElementType typeToCreate = ((CreateElementRequest) request).getElementType(); - List superConfiguredTypes = getAllInvariantTypes(typeToCreate); - result.addAll(superConfiguredTypes); - } else if (request instanceof SetRequest) { - // check the feature to set is a containment feature and element to move is an extended element type - EStructuralFeature feature = ((SetRequest) request).getFeature(); - if (feature instanceof EReference) { - if (((EReference) feature).isContainment()) { - - // containment. Check the kind of element to edit - Object value = ((SetRequest) request).getValue(); - List values = new ArrayList(); - // value = single object or list ? - if (value instanceof EObject) { - values.add(value); - } else if (value instanceof List) { - values.addAll((List) value); - } - - for (Object object : values) { - if (object instanceof EObject) { - IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) object, request.getClientContext()); - for (IElementType type : types) { - if (type instanceof ConfiguredHintedSpecializationElementType) { - if (((ConfiguredHintedSpecializationElementType) type).getConfiguration() instanceof InvariantTypeConfiguration) { - result.add((ConfiguredHintedSpecializationElementType) type); - - List superConfiguredTypes = getAllSuperConfiguredTypes((ConfiguredHintedSpecializationElementType) type); - result.addAll(superConfiguredTypes); - } - } - } - } - } - } - } - } else if (request instanceof MoveRequest) { - // check the feature to set is a containment feature and element to move is an extended element type - Map objectsToMove = ((MoveRequest) request).getElementsToMove(); - for (Entry movedElement : objectsToMove.entrySet()) { - // do not compute with reference, this can be null. This could be interesting to check... - IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(movedElement.getKey(), request.getClientContext()); - for (IElementType type : types) { - if (type instanceof ConfiguredHintedSpecializationElementType) { - if (((ConfiguredHintedSpecializationElementType) type).getConfiguration() instanceof InvariantTypeConfiguration) { - result.add((ConfiguredHintedSpecializationElementType) type); - - List superConfiguredTypes = getAllSuperConfiguredTypes((ConfiguredHintedSpecializationElementType) type); - result.addAll(superConfiguredTypes); - } - } - } - } - } - - return result; - - } - - /** - * Returns the list of types (this one and supers) that are configuredTypes. - * - * @param type - * the type from which all invariants are retrieved - * @return the list of invariant types in the hierarchy of specified type, including type itself if matching. Returns an empty list if none is matching - */ - protected List getAllInvariantTypes(IElementType type) { - List result = new ArrayList(); - - if (!(type instanceof ConfiguredHintedSpecializationElementType)) { - // no need to take care of metamodel types yet - return result; - } - - if (((ConfiguredHintedSpecializationElementType) type).getConfiguration() instanceof InvariantTypeConfiguration) { - result.add((ConfiguredHintedSpecializationElementType) type); - } - - IElementType[] superTypes = type.getAllSuperTypes(); - if (superTypes.length == 0) { - return result; - } - // get the reverse order - for (int i = superTypes.length - 1; i >= 0; i--) { - if (superTypes[i] instanceof ConfiguredHintedSpecializationElementType) { - if (((ConfiguredHintedSpecializationElementType) superTypes[i]).getConfiguration() instanceof InvariantTypeConfiguration) { - result.add((ConfiguredHintedSpecializationElementType) superTypes[i]); - } - } - } - - return result; - } - - protected List getAllSuperConfiguredTypes(ConfiguredHintedSpecializationElementType type) { - IElementType[] superTypes = type.getAllSuperTypes(); - if (superTypes.length == 0) { - return Collections.emptyList(); - } - List superExtendedTypes = new ArrayList(); - // get the reverse order - for (int i = superTypes.length - 1; i >= 0; i--) { - if (superTypes[i] instanceof ConfiguredHintedSpecializationElementType) { - if (((ConfiguredHintedSpecializationElementType) superTypes[i]).getConfiguration() instanceof InvariantTypeConfiguration) { - superExtendedTypes.add((ConfiguredHintedSpecializationElementType) superTypes[i]); - } - } - } - return superExtendedTypes; - } - - - protected boolean processCompositeRule(CompositeInvariantRuleConfiguration compositeRule, IEditCommandRequest request) { - Iterator iterator = compositeRule.getComposedRules().iterator(); - InvariantRuleConfiguration nextComposedRuleConfiguration = iterator.next(); - boolean result = processInvariantRule(nextComposedRuleConfiguration, request); - - while (iterator.hasNext()) { - nextComposedRuleConfiguration = iterator.next(); - - boolean resultNextComposedRuleConfiguration = processInvariantRule(nextComposedRuleConfiguration, request); - - if (compositeRule instanceof OrInvariantRuleConfiguration) { - if (result == false && resultNextComposedRuleConfiguration) { - result = true; - } - } else if (compositeRule instanceof AndInvariantRuleConfiguration) { - if (result == true && !resultNextComposedRuleConfiguration) { - result = false; - } - } - } - - return result; - } - - protected boolean processInvariantRule(InvariantRuleConfiguration invariantRuleConfiguration, IEditCommandRequest request) { - if (invariantRuleConfiguration instanceof CompositeInvariantRuleConfiguration) { - return processCompositeRule((CompositeInvariantRuleConfiguration) invariantRuleConfiguration, request); - } else if (invariantRuleConfiguration instanceof NotInvariantRuleConfiguration) { - InvariantRuleConfiguration composedRule = ((NotInvariantRuleConfiguration) invariantRuleConfiguration).getComposedRule(); - return !processInvariantRule(composedRule, request); - } else { - return InvariantRuleConfigurationTypeRegistry.getInstance().getInvariantRule(invariantRuleConfiguration).approveRequest(request); - } - } - - protected boolean approveRequest(ConfiguredHintedSpecializationElementType elementType, IEditCommandRequest request) { - - ElementTypeConfiguration configuration = ((ConfiguredHintedSpecializationElementType) elementType).getConfiguration(); - if (configuration instanceof InvariantTypeConfiguration) { - InvariantRuleConfiguration invariantRuleConfiguration = ((InvariantTypeConfiguration) configuration).getInvariantRuleConfiguration(); - - return processInvariantRule(invariantRuleConfiguration, request); - } else { - Activator.log.warn("Expected InvariantRuleConfiguration as configuration type for : " + elementType); - } - - return true; - } - - - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantElementMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantElementMatcher.java deleted file mode 100644 index ff94e4b6fd8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantElementMatcher.java +++ /dev/null @@ -1,97 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import java.util.Iterator; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.AndInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.OrInvariantRuleConfiguration; - - -public class DefaultInvariantElementMatcher implements IElementMatcher { - - - InvariantTypeConfiguration configuration; - - public DefaultInvariantElementMatcher(InvariantTypeConfiguration configuration) { - this.configuration = configuration; - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.IElementMatcher#matches(org.eclipse.emf.ecore.EObject) - * - * @param eObject - * @return - */ - @Override - public boolean matches(EObject eObject) { - InvariantRuleConfiguration invariantRuleConfiguration = configuration.getInvariantRuleConfiguration(); - - return processInvariantRule(invariantRuleConfiguration, eObject); - } - - /** - * @param invariantRuleConfiguration - * @param eObject - * @return - */ - protected boolean processInvariantRule(InvariantRuleConfiguration invariantRuleConfiguration, EObject eObject) { - if (invariantRuleConfiguration instanceof CompositeInvariantRuleConfiguration) { - return processCompositeRule((CompositeInvariantRuleConfiguration) invariantRuleConfiguration, eObject); - } else if (invariantRuleConfiguration instanceof NotInvariantRuleConfiguration) { - InvariantRuleConfiguration composedRule = ((NotInvariantRuleConfiguration) invariantRuleConfiguration).getComposedRule(); - return !processInvariantRule(composedRule, eObject); - } else { - return InvariantRuleConfigurationTypeRegistry.getInstance().getInvariantRule(invariantRuleConfiguration).matches(eObject); - } - } - - /** - * @param compositeRule - * @param eObject - * @return - */ - protected boolean processCompositeRule(CompositeInvariantRuleConfiguration compositeRule, EObject eObject) { - Iterator iterator = compositeRule.getComposedRules().iterator(); - InvariantRuleConfiguration nextComposedRuleConfiguration = iterator.next(); - boolean result = processInvariantRule(nextComposedRuleConfiguration, eObject); - - while (iterator.hasNext()) { - nextComposedRuleConfiguration = iterator.next(); - - boolean resultNextComposedRuleConfiguration = processInvariantRule(nextComposedRuleConfiguration, eObject); - - if (compositeRule instanceof OrInvariantRuleConfiguration) { - if (result == false && resultNextComposedRuleConfiguration) { - result = true; - } - } else if (compositeRule instanceof AndInvariantRuleConfiguration) { - if (result == true && !resultNextComposedRuleConfiguration) { - result = false; - } - } - } - - return result; - } - - - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantRule.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantRule.java deleted file mode 100644 index c90bb9b2571..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/DefaultInvariantRule.java +++ /dev/null @@ -1,57 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -public class DefaultInvariantRule implements IInvariantRule { - - - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.IInvariantRule#approveRequest(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) - * - * @param request - * @return - */ - @Override - public boolean approveRequest(IEditCommandRequest request) { - // TODO Auto-generated method stub - return true; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.IInvariantRule#init(org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration) - * - * @param invariantRuleConfiguration - */ - @Override - public void init(InvariantRuleConfiguration invariantRuleConfiguration) { - - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.IInvariantRule#matches(org.eclipse.emf.ecore.EObject) - * - * @param eObject - * @return - */ - @Override - public boolean matches(EObject eObject) { - return true; - } - - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRule.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRule.java deleted file mode 100644 index 332cb6abf05..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRule.java +++ /dev/null @@ -1,25 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -public interface IInvariantRule { - public void init(T invariantRuleConfiguration); - - public boolean approveRequest(IEditCommandRequest request); - - public boolean matches(EObject eObject); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRuleExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRuleExtensionPoint.java deleted file mode 100644 index 97a8c7126f8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/IInvariantRuleExtensionPoint.java +++ /dev/null @@ -1,28 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.Activator; - - - - -public interface IInvariantRuleExtensionPoint { - - /** ID of the extension point */ - public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".invariantRule"; - - public static final String CONFIGURATION_CLASS = "configurationClass"; - - public static final String INVARIANT_RULE_CLASS = "invariantRuleClass"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantElementTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantElementTypeFactory.java deleted file mode 100644 index 5be9767d285..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantElementTypeFactory.java +++ /dev/null @@ -1,30 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.SpecializationTypeFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; - -public class InvariantElementTypeFactory extends SpecializationTypeFactory { - - @Override - protected IElementMatcher createElementMatcher(SpecializationTypeConfiguration configuration) { - if (configuration instanceof InvariantTypeConfiguration) { - return new DefaultInvariantElementMatcher((InvariantTypeConfiguration) configuration); - } - return null; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantRuleConfigurationTypeRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantRuleConfigurationTypeRegistry.java deleted file mode 100644 index 34a335ff5c3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes/src/org/eclipse/papyrus/infra/elementtypesconfigurations/invarianttypes/invarianttypeconfiguration/InvariantRuleConfigurationTypeRegistry.java +++ /dev/null @@ -1,77 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -public class InvariantRuleConfigurationTypeRegistry { - - /** private singleton instance */ - private static InvariantRuleConfigurationTypeRegistry registry; - - /** map configuration type to invariantRule */ - protected Map> invariantRuleConfigurationTypeToInvariantRule = null; - - /** - * returns the singleton instance of this registry - * - * @return the singleton instance of this registry - */ - public static synchronized InvariantRuleConfigurationTypeRegistry getInstance() { - if (registry == null) { - registry = new InvariantRuleConfigurationTypeRegistry(); - registry.init(); - } - return registry; - } - - /** - * Inits the registry. - */ - protected void init() { - invariantRuleConfigurationTypeToInvariantRule = new HashMap>(); - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IInvariantRuleExtensionPoint.EXTENSION_POINT_ID); - for (IConfigurationElement configurationElement : elements) { - String configurationClass = configurationElement.getAttribute(IInvariantRuleExtensionPoint.CONFIGURATION_CLASS); - - try { - Object invariantRuleClass = configurationElement.createExecutableExtension(IInvariantRuleExtensionPoint.INVARIANT_RULE_CLASS); - if (invariantRuleClass instanceof IInvariantRule) { - invariantRuleConfigurationTypeToInvariantRule.put(configurationClass, (IInvariantRule) invariantRuleClass); - } - } catch (CoreException e) { - Activator.log.error(e); - } - } - } - - public IInvariantRule getInvariantRule(T invariantRuleConfiguration) { - String invariantRuleConfigurationType = invariantRuleConfiguration.eClass().getInstanceTypeName(); - // We assume here that the right invariantType is registered for the right InvariantRuleConfiguration - @SuppressWarnings("unchecked") - IInvariantRule invariantRule = (IInvariantRule) invariantRuleConfigurationTypeToInvariantRule.get(invariantRuleConfigurationType); - if (invariantRule != null) { - invariantRule.init(invariantRuleConfiguration); - return invariantRule; - } else { - return new DefaultInvariantRule(); - } - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.classpath deleted file mode 100644 index b277a8ac870..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.project deleted file mode 100644 index 22eaa266dec..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.ui - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f08be2b06c4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/META-INF/MANIFEST.MF deleted file mode 100644 index 39f9853294d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/META-INF/MANIFEST.MF +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", - org.eclipse.ui;bundle-version="3.100.0", - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0" -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui;x-internal:=true, - org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui.handlers;x-internal:=true -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Localization: plugin -Bundle-Name: %pluginName -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.ui;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/build.properties deleted file mode 100644 index 96f31b73bf1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/build.properties +++ /dev/null @@ -1,13 +0,0 @@ -# -#Mon Sep 12 09:29:52 CEST 2011 -output..=bin/ -bin.includes = .,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html,\ - icons/ -jars.compile.order=. -src.includes = about.html -source.. = src/ -bin..=bin/ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/configuration.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/configuration.gif deleted file mode 100644 index 0b1be97b8cf..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/configuration.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/error.gif b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/error.gif deleted file mode 100644 index 9b048d60532..00000000000 Binary files a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/icons/error.gif and /dev/null differ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.properties deleted file mode 100644 index 25f1ec0ac97..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# CEA LIST - initial API and implementation -# Christian W. Damus - bug 485220 -# -############################################################################### -pluginName=Papyrus Element Types Configurations UI -providerName=Eclipse Modeling Project diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.xml deleted file mode 100644 index 489d2c6f44e..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/plugin.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/pom.xml deleted file mode 100644 index 13dc0825cbb..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations.ui - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/LogUtil.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/LogUtil.java deleted file mode 100644 index 7c24fcc4a4f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/LogUtil.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.papyrus.infra.core.log.LogHelper; - -/** - * Logging utility. - */ -public class LogUtil extends LogHelper { - - public static final LogHelper LOG = new LogUtil(); - - /** - * Not instantiable by clients. - */ - private LogUtil() { - super(Platform.getBundle("org.eclipse.papyrus.infra.elementtypesconfigurations.ui")); //$NON-NLS-1$ - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java deleted file mode 100644 index af47bcf7fa9..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java +++ /dev/null @@ -1,155 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui.handlers; - -import java.util.Iterator; - -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.commands.IHandler; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.MultiStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.jobs.IJobChangeEvent; -import org.eclipse.core.runtime.jobs.Job; -import org.eclipse.core.runtime.jobs.JobChangeAdapter; -import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui.providers.ClientContextContentProvider; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.dialogs.ListSelectionDialog; -import org.eclipse.ui.handlers.HandlerUtil; -import org.eclipse.ui.statushandlers.StatusManager; - -/** - * Handler to deploy new configuration - */ -public class DeployElementTypeSetConfigurationHandler extends AbstractHandler implements IHandler { - - protected IClientContext clientContext; - - - /** - * {@inheritDoc} - */ - public Object execute(ExecutionEvent event) throws ExecutionException { - ISelection currentSelection = HandlerUtil.getCurrentSelection(event); - if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { - return null; - } - final IStructuredSelection selection = (IStructuredSelection) currentSelection; - final Shell activeShell = HandlerUtil.getActiveShell(event); - - activeShell.getDisplay().syncExec(new Runnable() { - - @Override - public void run() { - ListSelectionDialog dialog = new ListSelectionDialog(activeShell, ClientContextManager.getInstance().getClientContexts(), new ClientContextContentProvider(), new LabelProvider(), - "Select the clientContext you want to register the elementtypesconfiguration to"); - dialog.open(); - Object[] clientContextSelection = dialog.getResult(); - - - - if (clientContextSelection != null) { - if (clientContextSelection.length > 0) { - Object selectedClientContext = clientContextSelection[0]; - if (selectedClientContext instanceof IClientContext) { - clientContext = (IClientContext) selectedClientContext; - } - } - } - } - }); - - if (clientContext == null) { - StatusManager.getManager().handle(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The elementTypes configuration has not been loaded"), StatusManager.SHOW); - } - - Job job = new Job("Deploy elementTypes set configuration") { - - @Override - protected IStatus run(IProgressMonitor monitor) { - monitor.beginTask("Deploying selected configurations", selection.size()); - return doExecute(selection, monitor); - } - }; - job.addJobChangeListener(new JobChangeAdapter() { - - @Override - public void done(final IJobChangeEvent event) { - activeShell.getDisplay().asyncExec(new Runnable() { - - public void run() { - if (event.getResult().isOK()) { - MessageDialog.openInformation(activeShell, "Success", event.getResult().getMessage()); - } else if (event.getResult().getSeverity() < IStatus.ERROR) { // Errors are already logged - StatusManager.getManager().handle(event.getResult(), StatusManager.SHOW); - } - } - }); - } - }); - job.setUser(true); - job.schedule(); - return null; - } - - - protected IStatus doExecute(IStructuredSelection selection, IProgressMonitor monitor) { - Iterator selectionIterator = selection.iterator(); - MultiStatus result = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "The elementTypes configuration has been successfully deployed and activated", null); - while (selectionIterator.hasNext()) { - Object selectedElement = selectionIterator.next(); - if (selectedElement instanceof IAdaptable) { - IFile selectedFile = (IFile) ((IAdaptable) selectedElement).getAdapter(IFile.class); - if (selectedFile == null) { - monitor.worked(1); - result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a file")); - continue; - } - String fileName = selectedFile.getFullPath().removeFileExtension().lastSegment(); - monitor.subTask("Deploy " + fileName); - - - - ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(clientContext.getId(), selectedFile.getFullPath().toString()); - - monitor.worked(1); - - result.add(new Status(IStatus.OK, Activator.PLUGIN_ID, "The elementTypes configuration has been loaded")); - } - } - if (result.getChildren().length == 1) { - return result.getChildren()[0]; - } else { // Merge the result and specify an appropriate message based on the result - if (result.isOK()) { - return result; - } else { - MultiStatus actualResult = new MultiStatus(Activator.PLUGIN_ID, result.getCode(), "Some errors occurred during the deployment", result.getException()); - actualResult.merge(result); - return actualResult; - } - } - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java deleted file mode 100644 index 0fa15eff03c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java +++ /dev/null @@ -1,174 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui.handlers; - -import java.util.Iterator; - -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.MultiStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.jobs.IJobChangeEvent; -import org.eclipse.core.runtime.jobs.Job; -import org.eclipse.core.runtime.jobs.JobChangeAdapter; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -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.gmf.runtime.emf.type.core.ClientContextManager; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui.providers.ClientContextContentProvider; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.dialogs.ListSelectionDialog; -import org.eclipse.ui.handlers.HandlerUtil; -import org.eclipse.ui.statushandlers.StatusManager; - - -public class UndeployElementTypeSetConfigurationHandler extends AbstractHandler { - - protected IClientContext clientContext; - - /** - * {@inheritDoc} - */ - public Object execute(ExecutionEvent event) throws ExecutionException { - ISelection currentSelection = HandlerUtil.getCurrentSelection(event); - if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { - return null; - } - final IStructuredSelection selection = (IStructuredSelection) currentSelection; - final Shell activeShell = HandlerUtil.getActiveShell(event); - - activeShell.getDisplay().syncExec(new Runnable() { - - @Override - public void run() { - ListSelectionDialog dialog = new ListSelectionDialog(activeShell, ClientContextManager.getInstance().getClientContexts(), new ClientContextContentProvider(), new LabelProvider(), - "Select the clientContext you want to register the elementtypesconfiguration to"); - dialog.open(); - Object[] clientContextSelection = dialog.getResult(); - - if (clientContextSelection != null) { - if (clientContextSelection.length > 0) { - Object selectedClientContext = clientContextSelection[0]; - if (selectedClientContext instanceof IClientContext) { - clientContext = (IClientContext) selectedClientContext; - } - } - } - } - }); - - if (clientContext == null) { - StatusManager.getManager().handle(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The elementTypes configuration has not been undeployed"), StatusManager.SHOW); - } - - - Job job = new Job("Undeploy elementTypes set configuration") { - - @Override - protected IStatus run(IProgressMonitor monitor) { - monitor.beginTask("Undeploying selected configurations", selection.size()); - return doExecute(selection, monitor, activeShell); - } - }; - job.addJobChangeListener(new JobChangeAdapter() { - - @Override - public void done(final IJobChangeEvent event) { - activeShell.getDisplay().asyncExec(new Runnable() { - - public void run() { - if (event.getResult().isOK()) { - MessageDialog.openInformation(activeShell, "Success", event.getResult().getMessage()); - } else if (event.getResult().getSeverity() < IStatus.ERROR) { // Errors are already logged - StatusManager.getManager().handle(event.getResult(), StatusManager.SHOW); - } - } - }); - } - }); - job.setUser(true); - job.schedule(); - return null; - } - - protected IStatus doExecute(IStructuredSelection selection, IProgressMonitor monitor, Shell shell) { - Iterator selectionIterator = selection.iterator(); - MultiStatus result = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "The elementTypes configuration has been successfully undeployed", null); - while (selectionIterator.hasNext()) { - Object selectedElement = selectionIterator.next(); - if (selectedElement instanceof IAdaptable) { - IFile selectedFile = (IFile) ((IAdaptable) selectedElement).getAdapter(IFile.class); - if (selectedFile == null) { - monitor.worked(1); - result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a file")); - continue; - } - String fileName = selectedFile.getFullPath().removeFileExtension().lastSegment(); - monitor.subTask("Deploy " + fileName); - URI emfURI = null; - if (selectedFile.getFullPath() != null) { - emfURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true); - } else if (selectedFile.getRawLocation() != null) { - emfURI = URI.createFileURI(selectedFile.getRawLocation().toString()); - } - if (emfURI == null) { - monitor.worked(1); - result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a valid configuration file")); - continue; - } - monitor.subTask("Reset elementTypes Registry"); - - ResourceSet resourceSet = new ResourceSetImpl(); - Resource resource = resourceSet.getResource(emfURI, true); - - EObject root = resource.getContents().get(0); - if (!(root instanceof ElementTypeSetConfiguration)) { - result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a valid configuration file")); - continue; - } - - ElementTypeSetConfigurationRegistry.getInstance().unload(clientContext.getId(), ((ElementTypeSetConfiguration) root).getIdentifier()); - - monitor.worked(1); - - result.add(new Status(IStatus.OK, Activator.PLUGIN_ID, "The elementTypes configuration has been successfully undeployed")); - } - } - if (result.getChildren().length == 1) { - return result.getChildren()[0]; - } else { // Merge the result and specify an appropriate message based on the result - if (result.isOK()) { - return result; - } else { - MultiStatus actualResult = new MultiStatus(Activator.PLUGIN_ID, result.getCode(), "Some errors occurred during the undeployment", result.getException()); - actualResult.merge(result); - return actualResult; - } - } - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/providers/ClientContextContentProvider.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/providers/ClientContextContentProvider.java deleted file mode 100644 index 292ba0a6588..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.ui/src/org/eclipse/papyrus/infra/elementtypesconfigurations/internal/ui/providers/ClientContextContentProvider.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.eclipse.papyrus.infra.elementtypesconfigurations.internal.ui.providers; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.jface.viewers.IStructuredContentProvider; -import org.eclipse.jface.viewers.Viewer; - -public class ClientContextContentProvider implements IStructuredContentProvider { - - @Override - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - - } - - @Override - public void dispose() { - } - - @Override - public Object[] getElements(Object inputElement) { - List result = new ArrayList(); - if (inputElement instanceof Collection) { - for (Object item : (Collection) inputElement) { - if (item instanceof IClientContext) { - result.add((IClientContext) item); - } - } - - } - return result.toArray(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.classpath b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.classpath deleted file mode 100644 index 50aae142c50..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.project b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.project deleted file mode 100644 index 510c4f7ec96..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.core.resources.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index b5f4245b1fe..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding//model/ElementTypesConfigurations.ecore=UTF-8 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 62a08f4494d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.8 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/META-INF/MANIFEST.MF b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/META-INF/MANIFEST.MF deleted file mode 100644 index 3d917c000d5..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/META-INF/MANIFEST.MF +++ /dev/null @@ -1,30 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.emf.ecore.xmi;visibility:=reexport, - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.infra.tools;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" -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations, - org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints, - org.eclipse.papyrus.infra.elementtypesconfigurations.factories, - org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl, - org.eclipse.papyrus.infra.elementtypesconfigurations.impl, - org.eclipse.papyrus.infra.elementtypesconfigurations.notification, - org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events, - org.eclipse.papyrus.infra.elementtypesconfigurations.registries, - org.eclipse.papyrus.infra.elementtypesconfigurations.resource, - org.eclipse.papyrus.infra.elementtypesconfigurations.util, - org.eclipse.papyrus.infra.elementtypesconfigurations.utils -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Localization: plugin -Bundle-Name: %pluginName -Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.Activator -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/about.html b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/build.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/build.properties deleted file mode 100644 index 9e8f4164078..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -# -#Mon Sep 12 09:29:52 CEST 2011 -output..=bin/ -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - schema/,\ - about.html -jars.compile.order=. -src.includes = about.html -source.. = src-gen/,\ - src/ -bin..=bin/ diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore deleted file mode 100644 index a436cfb25f6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore_diagram b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore_diagram deleted file mode 100644 index dc08b8fc59d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.ecore_diagram +++ /dev/null @@ -1,555 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.genmodel b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.genmodel deleted file mode 100644 index 19bcc69c64c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/model/ElementTypesConfigurations.genmodel +++ /dev/null @@ -1,81 +0,0 @@ - - - ElementTypesConfigurations.ecore - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.properties b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.properties deleted file mode 100644 index 546874c1e51..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.properties +++ /dev/null @@ -1,13 +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: -# CEA LIST - initial API and implementation -############################################################################### -pluginName=Papyrus elementTypes configurations plugin -providerName=Eclipse Modeling Project -_UI_Elementtypesconfigurations_content_type = Elementtypesconfigurations File diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.xml deleted file mode 100644 index 1370cb96765..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/plugin.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/pom.xml b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/pom.xml deleted file mode 100644 index ad940a8e9dd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.infra - org.eclipse.papyrus - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.infra.elementtypesconfigurations - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/adviceConfigurationType.exsd b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/adviceConfigurationType.exsd deleted file mode 100644 index 8ac0b4648fb..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/adviceConfigurationType.exsd +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - Extension point to describe new kind of Pre/Post actions in the elementTypesConfigurations framework. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.10.1 - - - - - - - - - See examples in the emf or uml elementTypes configurations - - - - - - - - - [Enter API information here.] - - - - - - - - - [Enter information about supplied implementation of this extension point.] - - - - - - - - - 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: -CEA LIST - initial API and implementation - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/containerConfigurationType.exsd b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/containerConfigurationType.exsd deleted file mode 100644 index 21200a47281..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/containerConfigurationType.exsd +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - This extension point is used to registered new kind of container configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.10.2 - - - - - - - - - - - - Copyright (c) 2010-2013 CEA LIST -All rights reserved. This program and the accompanying materials -are made available under the terms of the Eclipse Public License -v1.0 which accompanies this distribution, and is available at -http://www.eclipse.org/legal/epl-v10.html -Contributors: -CEA LIST - initial API and implementation - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeConfigurationType.exsd b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeConfigurationType.exsd deleted file mode 100644 index 2fcad02d588..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeConfigurationType.exsd +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - This extension point is used to registered new kind of elementTypes configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - define a new configuration for an elementTypes set - - - - - - - - - - - - - - - - - Configuration class of the elementType. - - - - - - - - - - - - - - - 0.10.2 - - - - - - - - - - - - Copyright (c) 2010-2013 CEA LIST -All rights reserved. This program and the accompanying materials -are made available under the terms of the Eclipse Public License -v1.0 which accompanies this distribution, and is available at -http://www.eclipse.org/legal/epl-v10.html -Contributors: -CEA LIST - initial API and implementation - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeSetConfiguration.exsd b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeSetConfiguration.exsd deleted file mode 100644 index d5a290b5ad3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/elementTypeSetConfiguration.exsd +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - This extension point is used to registered elementType sets configuration models - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - define a new configuration for an elementType set - - - - - - - The unique identifier of the clientContext this elementTypeSet must be registreted to. - - - - - - - Path to the model file in the bundle. - -Note: Do not forget to add the file in the binary build of the plugin! - - - - - - - - - - - - - - - 0.10.2 - - - - - - - - - - - - Copyright (c) 2010-2013 CEA LIST -All rights reserved. This program and the accompanying materials -are made available under the terms of the Eclipse Public License -v1.0 which accompanies this distribution, and is available at -http://www.eclipse.org/legal/epl-v10.html -Contributors: -CEA LIST - initial API and implementation - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/matcherConfigurationType.exsd b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/matcherConfigurationType.exsd deleted file mode 100644 index 8f34af56c0f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/schema/matcherConfigurationType.exsd +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - This extension point is used to registered new kind of matcher configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.10.2 - - - - - - - - - - - - Copyright (c) 2010-2013 CEA LIST -All rights reserved. This program and the accompanying materials -are made available under the terms of the Eclipse Public License -v1.0 which accompanies this distribution, and is available at -http://www.eclipse.org/legal/epl-v10.html -Contributors: -CEA LIST - initial API and implementation - - - - diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractAdviceBindingConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractAdviceBindingConfiguration.java deleted file mode 100644 index de9beb191c2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractAdviceBindingConfiguration.java +++ /dev/null @@ -1,143 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - - -/** - * - * A representation of the model object 'Abstract Advice Binding Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getTarget Target}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getContainerConfiguration Container Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getMatcherConfiguration Matcher Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getInheritance Inheritance}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractAdviceBindingConfiguration() - * @model abstract="true" - * @generated - */ -public interface AbstractAdviceBindingConfiguration extends AdviceConfiguration, IdentifiedConfiguration { - /** - * Returns the value of the 'Target' reference. - * - *

- * If the meaning of the 'Target' reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Target' reference. - * @see #setTarget(ElementTypeConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractAdviceBindingConfiguration_Target() - * @model required="true" - * @generated - */ - ElementTypeConfiguration getTarget(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getTarget Target}' reference. - * - * - * @param value the new value of the 'Target' reference. - * @see #getTarget() - * @generated - */ - void setTarget(ElementTypeConfiguration value); - - /** - * Returns the value of the 'Container Configuration' containment reference. - * - *

- * If the meaning of the 'Container Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Container Configuration' containment reference. - * @see #setContainerConfiguration(ContainerConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractAdviceBindingConfiguration_ContainerConfiguration() - * @model containment="true" - * @generated - */ - ContainerConfiguration getContainerConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getContainerConfiguration Container Configuration}' containment reference. - * - * - * @param value the new value of the 'Container Configuration' containment reference. - * @see #getContainerConfiguration() - * @generated - */ - void setContainerConfiguration(ContainerConfiguration value); - - /** - * Returns the value of the 'Matcher Configuration' containment reference. - * - *

- * If the meaning of the 'Matcher Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Matcher Configuration' containment reference. - * @see #setMatcherConfiguration(AbstractMatcherConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractAdviceBindingConfiguration_MatcherConfiguration() - * @model containment="true" - * @generated - */ - AbstractMatcherConfiguration getMatcherConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getMatcherConfiguration Matcher Configuration}' containment reference. - * - * - * @param value the new value of the 'Matcher Configuration' containment reference. - * @see #getMatcherConfiguration() - * @generated - */ - void setMatcherConfiguration(AbstractMatcherConfiguration value); - - /** - * Returns the value of the 'Inheritance' attribute. - * The literals are from the enumeration {@link org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind}. - * - *

- * If the meaning of the 'Inheritance' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Inheritance' attribute. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind - * @see #setInheritance(InheritanceKind) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractAdviceBindingConfiguration_Inheritance() - * @model required="true" - * @generated - */ - InheritanceKind getInheritance(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getInheritance Inheritance}' attribute. - * - * - * @param value the new value of the 'Inheritance' attribute. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind - * @see #getInheritance() - * @generated - */ - void setInheritance(InheritanceKind value); - -} // AbstractAdviceBindingConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractEditHelperAdviceConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractEditHelperAdviceConfiguration.java deleted file mode 100644 index e79ea12bd55..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractEditHelperAdviceConfiguration.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - - -/** - * - * A representation of the model object 'Abstract Edit Helper Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration#getTarget Target}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractEditHelperAdviceConfiguration() - * @model abstract="true" - * @generated - */ -public interface AbstractEditHelperAdviceConfiguration extends AdviceConfiguration { - /** - * Returns the value of the 'Target' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}'. - * - *

- * If the meaning of the 'Target' container reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Target' container reference. - * @see #setTarget(SpecializationTypeConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractEditHelperAdviceConfiguration_Target() - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration - * @model opposite="editHelperAdviceConfiguration" required="true" transient="false" - * @generated - */ - SpecializationTypeConfiguration getTarget(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration#getTarget Target}' container reference. - * - * - * @param value the new value of the 'Target' container reference. - * @see #getTarget() - * @generated - */ - void setTarget(SpecializationTypeConfiguration value); - -} // AbstractEditHelperAdviceConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractMatcherConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractMatcherConfiguration.java deleted file mode 100644 index be4d45ee431..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AbstractMatcherConfiguration.java +++ /dev/null @@ -1,28 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Abstract Matcher Configuration'. - * - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAbstractMatcherConfiguration() - * @model abstract="true" - * @generated - */ -public interface AbstractMatcherConfiguration extends EObject { -} // AbstractMatcherConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceBindingConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceBindingConfiguration.java deleted file mode 100644 index a6367d8dc13..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceBindingConfiguration.java +++ /dev/null @@ -1,59 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - - -/** - * - * A representation of the model object 'Advice Binding Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAdviceBindingConfiguration() - * @model - * @generated - */ -public interface AdviceBindingConfiguration extends AbstractAdviceBindingConfiguration { - /** - * Returns the value of the 'Edit Helper Advice Class Name' attribute. - * - *

- * If the meaning of the 'Edit Helper Advice Class Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Edit Helper Advice Class Name' attribute. - * @see #setEditHelperAdviceClassName(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAdviceBindingConfiguration_EditHelperAdviceClassName() - * @model required="true" - * @generated - */ - String getEditHelperAdviceClassName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}' attribute. - * - * - * @param value the new value of the 'Edit Helper Advice Class Name' attribute. - * @see #getEditHelperAdviceClassName() - * @generated - */ - void setEditHelperAdviceClassName(String value); - -} // AdviceBindingConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceConfiguration.java deleted file mode 100644 index e0d662673be..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/AdviceConfiguration.java +++ /dev/null @@ -1,67 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration#getBefore Before}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration#getAfter After}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAdviceConfiguration() - * @model abstract="true" - * @generated - */ -public interface AdviceConfiguration extends ConfigurationElement { - /** - * Returns the value of the 'Before' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'Before' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Before' attribute list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAdviceConfiguration_Before() - * @model - * @generated - */ - EList getBefore(); - - /** - * Returns the value of the 'After' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'After' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'After' attribute list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getAdviceConfiguration_After() - * @model - * @generated - */ - EList getAfter(); - -} // AdviceConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ConfigurationElement.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ConfigurationElement.java deleted file mode 100644 index d455b78e963..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ConfigurationElement.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Configuration Element'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement#getDescription Description}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getConfigurationElement() - * @model abstract="true" - * @generated - */ -public interface ConfigurationElement extends EObject { - /** - * Returns the value of the 'Description' attribute. - * - *

- * If the meaning of the 'Description' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getConfigurationElement_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - -} // ConfigurationElement diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ContainerConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ContainerConfiguration.java deleted file mode 100644 index 6a85cf1b529..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ContainerConfiguration.java +++ /dev/null @@ -1,80 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; - -/** - * - * A representation of the model object 'Container Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getContainerMatcherConfiguration Container Matcher Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getEContainmentFeatures EContainment Features}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getContainerConfiguration() - * @model - * @generated - */ -public interface ContainerConfiguration extends EObject { - /** - * Returns the value of the 'Container Matcher Configuration' containment reference. - * - *

- * If the meaning of the 'Container Matcher Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Container Matcher Configuration' containment reference. - * @see #setContainerMatcherConfiguration(AbstractMatcherConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getContainerConfiguration_ContainerMatcherConfiguration() - * @model containment="true" - * @generated - */ - AbstractMatcherConfiguration getContainerMatcherConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getContainerMatcherConfiguration Container Matcher Configuration}' containment reference. - * - * - * @param value the new value of the 'Container Matcher Configuration' containment reference. - * @see #getContainerMatcherConfiguration() - * @generated - */ - void setContainerMatcherConfiguration(AbstractMatcherConfiguration value); - - /** - * Returns the value of the 'EContainment Features' reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.EReference}. - * - *

- * If the meaning of the 'EContainment Features' reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'EContainment Features' reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getContainerConfiguration_EContainmentFeatures() - * @model - * @generated - */ - EList getEContainmentFeatures(); - -} // ContainerConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/EditHelperAdviceConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/EditHelperAdviceConfiguration.java deleted file mode 100644 index 7f40b356e16..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/EditHelperAdviceConfiguration.java +++ /dev/null @@ -1,59 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - - -/** - * - * A representation of the model object 'Edit Helper Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getEditHelperAdviceConfiguration() - * @model - * @generated - */ -public interface EditHelperAdviceConfiguration extends AbstractEditHelperAdviceConfiguration { - /** - * Returns the value of the 'Edit Helper Advice Class Name' attribute. - * - *

- * If the meaning of the 'Edit Helper Advice Class Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Edit Helper Advice Class Name' attribute. - * @see #setEditHelperAdviceClassName(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getEditHelperAdviceConfiguration_EditHelperAdviceClassName() - * @model required="true" - * @generated - */ - String getEditHelperAdviceClassName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}' attribute. - * - * - * @param value the new value of the 'Edit Helper Advice Class Name' attribute. - * @see #getEditHelperAdviceClassName() - * @generated - */ - void setEditHelperAdviceClassName(String value); - -} // EditHelperAdviceConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeConfiguration.java deleted file mode 100644 index 111d05ec07d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeConfiguration.java +++ /dev/null @@ -1,115 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - - -/** - * - * A representation of the model object 'Element Type Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getHint Hint}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getKind Kind}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getIconEntry Icon Entry}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeConfiguration() - * @model abstract="true" - * @generated - */ -public interface ElementTypeConfiguration extends ConfigurationElement, IdentifiedConfiguration, NamedConfiguration { - /** - * Returns the value of the 'Hint' attribute. - * The default value is "". - * - *

- * If the meaning of the 'Hint' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Hint' attribute. - * @see #setHint(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeConfiguration_Hint() - * @model default="" - * @generated - */ - String getHint(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getHint Hint}' attribute. - * - * - * @param value the new value of the 'Hint' attribute. - * @see #getHint() - * @generated - */ - void setHint(String value); - - /** - * Returns the value of the 'Kind' attribute. - * The default value is "org.eclipse.gmf.runtime.emf.type.core.IHintedType". - * - *

- * If the meaning of the 'Kind' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Kind' attribute. - * @see #setKind(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeConfiguration_Kind() - * @model default="org.eclipse.gmf.runtime.emf.type.core.IHintedType" - * @generated - */ - String getKind(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getKind Kind}' attribute. - * - * - * @param value the new value of the 'Kind' attribute. - * @see #getKind() - * @generated - */ - void setKind(String value); - - /** - * Returns the value of the 'Icon Entry' containment reference. - * - *

- * If the meaning of the 'Icon Entry' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Icon Entry' containment reference. - * @see #setIconEntry(IconEntry) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeConfiguration_IconEntry() - * @model containment="true" - * @generated - */ - IconEntry getIconEntry(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getIconEntry Icon Entry}' containment reference. - * - * - * @param value the new value of the 'Icon Entry' containment reference. - * @see #getIconEntry() - * @generated - */ - void setIconEntry(IconEntry value); - -} // ElementTypeConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeSetConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeSetConfiguration.java deleted file mode 100644 index f036e3464d4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypeSetConfiguration.java +++ /dev/null @@ -1,94 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Element Type Set Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getElementTypeConfigurations Element Type Configurations}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getAdviceBindingsConfigurations Advice Bindings Configurations}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getMetamodelNsURI Metamodel Ns URI}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeSetConfiguration() - * @model - * @generated - */ -public interface ElementTypeSetConfiguration extends ConfigurationElement, IdentifiedConfiguration, NamedConfiguration { - /** - * Returns the value of the 'Element Type Configurations' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration}. - * - *

- * If the meaning of the 'Element Type Configurations' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Element Type Configurations' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeSetConfiguration_ElementTypeConfigurations() - * @model containment="true" - * @generated - */ - EList getElementTypeConfigurations(); - - /** - * Returns the value of the 'Advice Bindings Configurations' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration}. - * - *

- * If the meaning of the 'Advice Bindings Configurations' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Advice Bindings Configurations' containment reference list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeSetConfiguration_AdviceBindingsConfigurations() - * @model containment="true" - * @generated - */ - EList getAdviceBindingsConfigurations(); - - /** - * Returns the value of the 'Metamodel Ns URI' attribute. - * - *

- * If the meaning of the 'Metamodel Ns URI' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Metamodel Ns URI' attribute. - * @see #setMetamodelNsURI(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getElementTypeSetConfiguration_MetamodelNsURI() - * @model required="true" - * @generated - */ - String getMetamodelNsURI(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getMetamodelNsURI Metamodel Ns URI}' attribute. - * - * - * @param value the new value of the 'Metamodel Ns URI' attribute. - * @see #getMetamodelNsURI() - * @generated - */ - void setMetamodelNsURI(String value); - -} // ElementTypeSetConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsFactory.java deleted file mode 100644 index e4cb47f4ed4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsFactory.java +++ /dev/null @@ -1,115 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage - * @generated - */ -public interface ElementtypesconfigurationsFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - ElementtypesconfigurationsFactory eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsFactoryImpl.init(); - - /** - * Returns a new object of class 'Element Type Set Configuration'. - * - * - * @return a new object of class 'Element Type Set Configuration'. - * @generated - */ - ElementTypeSetConfiguration createElementTypeSetConfiguration(); - - /** - * Returns a new object of class 'Icon Entry'. - * - * - * @return a new object of class 'Icon Entry'. - * @generated - */ - IconEntry createIconEntry(); - - /** - * Returns a new object of class 'Specialization Type Configuration'. - * - * - * @return a new object of class 'Specialization Type Configuration'. - * @generated - */ - SpecializationTypeConfiguration createSpecializationTypeConfiguration(); - - /** - * Returns a new object of class 'Container Configuration'. - * - * - * @return a new object of class 'Container Configuration'. - * @generated - */ - ContainerConfiguration createContainerConfiguration(); - - /** - * Returns a new object of class 'Metamodel Type Configuration'. - * - * - * @return a new object of class 'Metamodel Type Configuration'. - * @generated - */ - MetamodelTypeConfiguration createMetamodelTypeConfiguration(); - - /** - * Returns a new object of class 'Edit Helper Advice Configuration'. - * - * - * @return a new object of class 'Edit Helper Advice Configuration'. - * @generated - */ - EditHelperAdviceConfiguration createEditHelperAdviceConfiguration(); - - /** - * Returns a new object of class 'Advice Binding Configuration'. - * - * - * @return a new object of class 'Advice Binding Configuration'. - * @generated - */ - AdviceBindingConfiguration createAdviceBindingConfiguration(); - - /** - * Returns a new object of class 'Matcher Configuration'. - * - * - * @return a new object of class 'Matcher Configuration'. - * @generated - */ - MatcherConfiguration createMatcherConfiguration(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - ElementtypesconfigurationsPackage getElementtypesconfigurationsPackage(); - -} //ElementtypesconfigurationsFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsPackage.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsPackage.java deleted file mode 100644 index 23de7d497f8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementtypesconfigurationsPackage.java +++ /dev/null @@ -1,2056 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -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; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory - * @model kind="package" - * @generated - */ -public interface ElementtypesconfigurationsPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "elementtypesconfigurations"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "elementtypesconfigurations"; - - /** - * The package content type ID. - * - * - * @generated - */ - String eCONTENT_TYPE = "org.eclipse.papyrus.infra.elementtypesconfigurations"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - ElementtypesconfigurationsPackage eINSTANCE = org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfigurationElementImpl Configuration Element}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfigurationElementImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getConfigurationElement() - * @generated - */ - int CONFIGURATION_ELEMENT = 3; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int CONFIGURATION_ELEMENT__DESCRIPTION = 0; - - /** - * The number of structural features of the 'Configuration Element' class. - * - * - * @generated - * @ordered - */ - int CONFIGURATION_ELEMENT_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Configuration Element' class. - * - * - * @generated - * @ordered - */ - int CONFIGURATION_ELEMENT_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl Element Type Set Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getElementTypeSetConfiguration() - * @generated - */ - int ELEMENT_TYPE_SET_CONFIGURATION = 0; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION__DESCRIPTION = CONFIGURATION_ELEMENT__DESCRIPTION; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION__NAME = CONFIGURATION_ELEMENT_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Element Type Configurations' containment reference list. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS = CONFIGURATION_ELEMENT_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Advice Bindings Configurations' containment reference list. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS = CONFIGURATION_ELEMENT_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Metamodel Ns URI' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI = CONFIGURATION_ELEMENT_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Element Type Set Configuration' class. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 5; - - /** - * The number of operations of the 'Element Type Set Configuration' class. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_SET_CONFIGURATION_OPERATION_COUNT = CONFIGURATION_ELEMENT_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl Element Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getElementTypeConfiguration() - * @generated - */ - int ELEMENT_TYPE_CONFIGURATION = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION__DESCRIPTION = CONFIGURATION_ELEMENT__DESCRIPTION; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION__IDENTIFIER = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION__NAME = CONFIGURATION_ELEMENT_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Hint' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION__HINT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Kind' attribute. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION__KIND = CONFIGURATION_ELEMENT_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Icon Entry' containment reference. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY = CONFIGURATION_ELEMENT_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Element Type Configuration' class. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 5; - - /** - * The number of operations of the 'Element Type Configuration' class. - * - * - * @generated - * @ordered - */ - int ELEMENT_TYPE_CONFIGURATION_OPERATION_COUNT = CONFIGURATION_ELEMENT_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.IconEntryImpl Icon Entry}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.IconEntryImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getIconEntry() - * @generated - */ - int ICON_ENTRY = 2; - - /** - * The feature id for the 'Icon Path' attribute. - * - * - * @generated - * @ordered - */ - int ICON_ENTRY__ICON_PATH = 0; - - /** - * The feature id for the 'Bundle Id' attribute. - * - * - * @generated - * @ordered - */ - int ICON_ENTRY__BUNDLE_ID = 1; - - /** - * The number of structural features of the 'Icon Entry' class. - * - * - * @generated - * @ordered - */ - int ICON_ENTRY_FEATURE_COUNT = 2; - - /** - * The number of operations of the 'Icon Entry' class. - * - * - * @generated - * @ordered - */ - int ICON_ENTRY_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractMatcherConfigurationImpl Abstract Matcher Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractMatcherConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAbstractMatcherConfiguration() - * @generated - */ - int ABSTRACT_MATCHER_CONFIGURATION = 4; - - /** - * The number of structural features of the 'Abstract Matcher Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT = 0; - - /** - * The number of operations of the 'Abstract Matcher Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_MATCHER_CONFIGURATION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceConfigurationImpl Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAdviceConfiguration() - * @generated - */ - int ADVICE_CONFIGURATION = 5; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int ADVICE_CONFIGURATION__DESCRIPTION = CONFIGURATION_ELEMENT__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int ADVICE_CONFIGURATION__BEFORE = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int ADVICE_CONFIGURATION__AFTER = CONFIGURATION_ELEMENT_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int ADVICE_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int ADVICE_CONFIGURATION_OPERATION_COUNT = CONFIGURATION_ELEMENT_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl Abstract Advice Binding Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAbstractAdviceBindingConfiguration() - * @generated - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION = 6; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION = ADVICE_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE = ADVICE_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER = ADVICE_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER = ADVICE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Target' reference. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET = ADVICE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION = ADVICE_CONFIGURATION_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION = ADVICE_CONFIGURATION_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Inheritance' attribute. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE = ADVICE_CONFIGURATION_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Abstract Advice Binding Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT = ADVICE_CONFIGURATION_FEATURE_COUNT + 5; - - /** - * The number of operations of the 'Abstract Advice Binding Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT = ADVICE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl Specialization Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getSpecializationTypeConfiguration() - * @generated - */ - int SPECIALIZATION_TYPE_CONFIGURATION = 7; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__DESCRIPTION = ELEMENT_TYPE_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__IDENTIFIER = ELEMENT_TYPE_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__NAME = ELEMENT_TYPE_CONFIGURATION__NAME; - - /** - * The feature id for the 'Hint' attribute. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__HINT = ELEMENT_TYPE_CONFIGURATION__HINT; - - /** - * The feature id for the 'Kind' attribute. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__KIND = ELEMENT_TYPE_CONFIGURATION__KIND; - - /** - * The feature id for the 'Icon Entry' containment reference. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__ICON_ENTRY = ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY; - - /** - * The feature id for the 'Specialized Types ID' attribute list. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Edit Helper Advice Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 3; - - /** - * The number of structural features of the 'Specialization Type Configuration' class. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION_FEATURE_COUNT = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 4; - - /** - * The number of operations of the 'Specialization Type Configuration' class. - * - * - * @generated - * @ordered - */ - int SPECIALIZATION_TYPE_CONFIGURATION_OPERATION_COUNT = ELEMENT_TYPE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ContainerConfigurationImpl Container Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ContainerConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getContainerConfiguration() - * @generated - */ - int CONTAINER_CONFIGURATION = 8; - - /** - * The feature id for the 'Container Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION = 0; - - /** - * The feature id for the 'EContainment Features' reference list. - * - * - * @generated - * @ordered - */ - int CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES = 1; - - /** - * The number of structural features of the 'Container Configuration' class. - * - * - * @generated - * @ordered - */ - int CONTAINER_CONFIGURATION_FEATURE_COUNT = 2; - - /** - * The number of operations of the 'Container Configuration' class. - * - * - * @generated - * @ordered - */ - int CONTAINER_CONFIGURATION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MetamodelTypeConfigurationImpl Metamodel Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MetamodelTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getMetamodelTypeConfiguration() - * @generated - */ - int METAMODEL_TYPE_CONFIGURATION = 9; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__DESCRIPTION = ELEMENT_TYPE_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__IDENTIFIER = ELEMENT_TYPE_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__NAME = ELEMENT_TYPE_CONFIGURATION__NAME; - - /** - * The feature id for the 'Hint' attribute. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__HINT = ELEMENT_TYPE_CONFIGURATION__HINT; - - /** - * The feature id for the 'Kind' attribute. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__KIND = ELEMENT_TYPE_CONFIGURATION__KIND; - - /** - * The feature id for the 'Icon Entry' containment reference. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__ICON_ENTRY = ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY; - - /** - * The feature id for the 'EClass' reference. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__ECLASS = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Edit Helper Class Name' attribute. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Metamodel Type Configuration' class. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION_FEATURE_COUNT = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Metamodel Type Configuration' class. - * - * - * @generated - * @ordered - */ - int METAMODEL_TYPE_CONFIGURATION_OPERATION_COUNT = ELEMENT_TYPE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractEditHelperAdviceConfigurationImpl Abstract Edit Helper Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractEditHelperAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAbstractEditHelperAdviceConfiguration() - * @generated - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION = 10; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__DESCRIPTION = ADVICE_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__BEFORE = ADVICE_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__AFTER = ADVICE_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Target' container reference. - * - * - * @generated - * @ordered - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET = ADVICE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Abstract Edit Helper Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT = ADVICE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Abstract Edit Helper Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_OPERATION_COUNT = ADVICE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.EditHelperAdviceConfigurationImpl Edit Helper Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.EditHelperAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getEditHelperAdviceConfiguration() - * @generated - */ - int EDIT_HELPER_ADVICE_CONFIGURATION = 11; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION__DESCRIPTION = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION__BEFORE = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION__AFTER = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Target' container reference. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION__TARGET = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET; - - /** - * The feature id for the 'Edit Helper Advice Class Name' attribute. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Edit Helper Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Edit Helper Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int EDIT_HELPER_ADVICE_CONFIGURATION_OPERATION_COUNT = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceBindingConfigurationImpl Advice Binding Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceBindingConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAdviceBindingConfiguration() - * @generated - */ - int ADVICE_BINDING_CONFIGURATION = 12; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__DESCRIPTION = ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__BEFORE = ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__AFTER = ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__IDENTIFIER = ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Target' reference. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__TARGET = ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION = ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION = ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; - - /** - * The feature id for the 'Inheritance' attribute. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__INHERITANCE = ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; - - /** - * The feature id for the 'Edit Helper Advice Class Name' attribute. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Advice Binding Configuration' class. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT = ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Advice Binding Configuration' class. - * - * - * @generated - * @ordered - */ - int ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT = ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MatcherConfigurationImpl Matcher Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MatcherConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getMatcherConfiguration() - * @generated - */ - int MATCHER_CONFIGURATION = 13; - - /** - * The feature id for the 'Matcher Class Name' attribute. - * - * - * @generated - * @ordered - */ - int MATCHER_CONFIGURATION__MATCHER_CLASS_NAME = ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Matcher Configuration' class. - * - * - * @generated - * @ordered - */ - int MATCHER_CONFIGURATION_FEATURE_COUNT = ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Matcher Configuration' class. - * - * - * @generated - * @ordered - */ - int MATCHER_CONFIGURATION_OPERATION_COUNT = ABSTRACT_MATCHER_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getIdentifiedConfiguration() - * @generated - */ - int IDENTIFIED_CONFIGURATION = 14; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int IDENTIFIED_CONFIGURATION__IDENTIFIER = 0; - - /** - * The number of structural features of the 'Identified Configuration' class. - * - * - * @generated - * @ordered - */ - int IDENTIFIED_CONFIGURATION_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Identified Configuration' class. - * - * - * @generated - * @ordered - */ - int IDENTIFIED_CONFIGURATION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration Named Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getNamedConfiguration() - * @generated - */ - int NAMED_CONFIGURATION = 15; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int NAMED_CONFIGURATION__NAME = 0; - - /** - * The number of structural features of the 'Named Configuration' class. - * - * - * @generated - * @ordered - */ - int NAMED_CONFIGURATION_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Named Configuration' class. - * - * - * @generated - * @ordered - */ - int NAMED_CONFIGURATION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind Inheritance Kind}' enum. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getInheritanceKind() - * @generated - */ - int INHERITANCE_KIND = 16; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration Element Type Set Configuration}'. - * - * - * @return the meta object for class 'Element Type Set Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration - * @generated - */ - EClass getElementTypeSetConfiguration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getElementTypeConfigurations Element Type Configurations}'. - * - * - * @return the meta object for the containment reference list 'Element Type Configurations'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getElementTypeConfigurations() - * @see #getElementTypeSetConfiguration() - * @generated - */ - EReference getElementTypeSetConfiguration_ElementTypeConfigurations(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getAdviceBindingsConfigurations Advice Bindings Configurations}'. - * - * - * @return the meta object for the containment reference list 'Advice Bindings Configurations'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getAdviceBindingsConfigurations() - * @see #getElementTypeSetConfiguration() - * @generated - */ - EReference getElementTypeSetConfiguration_AdviceBindingsConfigurations(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getMetamodelNsURI Metamodel Ns URI}'. - * - * - * @return the meta object for the attribute 'Metamodel Ns URI'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration#getMetamodelNsURI() - * @see #getElementTypeSetConfiguration() - * @generated - */ - EAttribute getElementTypeSetConfiguration_MetamodelNsURI(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration Element Type Configuration}'. - * - * - * @return the meta object for class 'Element Type Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration - * @generated - */ - EClass getElementTypeConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getHint Hint}'. - * - * - * @return the meta object for the attribute 'Hint'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getHint() - * @see #getElementTypeConfiguration() - * @generated - */ - EAttribute getElementTypeConfiguration_Hint(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getKind Kind}'. - * - * - * @return the meta object for the attribute 'Kind'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getKind() - * @see #getElementTypeConfiguration() - * @generated - */ - EAttribute getElementTypeConfiguration_Kind(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getIconEntry Icon Entry}'. - * - * - * @return the meta object for the containment reference 'Icon Entry'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration#getIconEntry() - * @see #getElementTypeConfiguration() - * @generated - */ - EReference getElementTypeConfiguration_IconEntry(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry Icon Entry}'. - * - * - * @return the meta object for class 'Icon Entry'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry - * @generated - */ - EClass getIconEntry(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getIconPath Icon Path}'. - * - * - * @return the meta object for the attribute 'Icon Path'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getIconPath() - * @see #getIconEntry() - * @generated - */ - EAttribute getIconEntry_IconPath(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getBundleId Bundle Id}'. - * - * - * @return the meta object for the attribute 'Bundle Id'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getBundleId() - * @see #getIconEntry() - * @generated - */ - EAttribute getIconEntry_BundleId(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * - * @return the meta object for class 'Configuration Element'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - EClass getConfigurationElement(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement#getDescription() - * @see #getConfigurationElement() - * @generated - */ - EAttribute getConfigurationElement_Description(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration Abstract Matcher Configuration}'. - * - * - * @return the meta object for class 'Abstract Matcher Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration - * @generated - */ - EClass getAbstractMatcherConfiguration(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration Advice Configuration}'. - * - * - * @return the meta object for class 'Advice Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration - * @generated - */ - EClass getAdviceConfiguration(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration#getBefore Before}'. - * - * - * @return the meta object for the attribute list 'Before'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration#getBefore() - * @see #getAdviceConfiguration() - * @generated - */ - EAttribute getAdviceConfiguration_Before(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration#getAfter After}'. - * - * - * @return the meta object for the attribute list 'After'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration#getAfter() - * @see #getAdviceConfiguration() - * @generated - */ - EAttribute getAdviceConfiguration_After(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. - * - * - * @return the meta object for class 'Abstract Advice Binding Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration - * @generated - */ - EClass getAbstractAdviceBindingConfiguration(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getTarget Target}'. - * - * - * @return the meta object for the reference 'Target'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getTarget() - * @see #getAbstractAdviceBindingConfiguration() - * @generated - */ - EReference getAbstractAdviceBindingConfiguration_Target(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getContainerConfiguration Container Configuration}'. - * - * - * @return the meta object for the containment reference 'Container Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getContainerConfiguration() - * @see #getAbstractAdviceBindingConfiguration() - * @generated - */ - EReference getAbstractAdviceBindingConfiguration_ContainerConfiguration(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getMatcherConfiguration Matcher Configuration}'. - * - * - * @return the meta object for the containment reference 'Matcher Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getMatcherConfiguration() - * @see #getAbstractAdviceBindingConfiguration() - * @generated - */ - EReference getAbstractAdviceBindingConfiguration_MatcherConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getInheritance Inheritance}'. - * - * - * @return the meta object for the attribute 'Inheritance'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration#getInheritance() - * @see #getAbstractAdviceBindingConfiguration() - * @generated - */ - EAttribute getAbstractAdviceBindingConfiguration_Inheritance(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration Specialization Type Configuration}'. - * - * - * @return the meta object for class 'Specialization Type Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration - * @generated - */ - EClass getSpecializationTypeConfiguration(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getSpecializedTypesID Specialized Types ID}'. - * - * - * @return the meta object for the attribute list 'Specialized Types ID'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getSpecializedTypesID() - * @see #getSpecializationTypeConfiguration() - * @generated - */ - EAttribute getSpecializationTypeConfiguration_SpecializedTypesID(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}'. - * - * - * @return the meta object for the containment reference 'Edit Helper Advice Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration() - * @see #getSpecializationTypeConfiguration() - * @generated - */ - EReference getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getContainerConfiguration Container Configuration}'. - * - * - * @return the meta object for the containment reference 'Container Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getContainerConfiguration() - * @see #getSpecializationTypeConfiguration() - * @generated - */ - EReference getSpecializationTypeConfiguration_ContainerConfiguration(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getMatcherConfiguration Matcher Configuration}'. - * - * - * @return the meta object for the containment reference 'Matcher Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getMatcherConfiguration() - * @see #getSpecializationTypeConfiguration() - * @generated - */ - EReference getSpecializationTypeConfiguration_MatcherConfiguration(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration Container Configuration}'. - * - * - * @return the meta object for class 'Container Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration - * @generated - */ - EClass getContainerConfiguration(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getContainerMatcherConfiguration Container Matcher Configuration}'. - * - * - * @return the meta object for the containment reference 'Container Matcher Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getContainerMatcherConfiguration() - * @see #getContainerConfiguration() - * @generated - */ - EReference getContainerConfiguration_ContainerMatcherConfiguration(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getEContainmentFeatures EContainment Features}'. - * - * - * @return the meta object for the reference list 'EContainment Features'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration#getEContainmentFeatures() - * @see #getContainerConfiguration() - * @generated - */ - EReference getContainerConfiguration_EContainmentFeatures(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration Metamodel Type Configuration}'. - * - * - * @return the meta object for class 'Metamodel Type Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration - * @generated - */ - EClass getMetamodelTypeConfiguration(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEClass EClass}'. - * - * - * @return the meta object for the reference 'EClass'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEClass() - * @see #getMetamodelTypeConfiguration() - * @generated - */ - EReference getMetamodelTypeConfiguration_EClass(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEditHelperClassName Edit Helper Class Name}'. - * - * - * @return the meta object for the attribute 'Edit Helper Class Name'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEditHelperClassName() - * @see #getMetamodelTypeConfiguration() - * @generated - */ - EAttribute getMetamodelTypeConfiguration_EditHelperClassName(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration Abstract Edit Helper Advice Configuration}'. - * - * - * @return the meta object for class 'Abstract Edit Helper Advice Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration - * @generated - */ - EClass getAbstractEditHelperAdviceConfiguration(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration#getTarget Target}'. - * - * - * @return the meta object for the container reference 'Target'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration#getTarget() - * @see #getAbstractEditHelperAdviceConfiguration() - * @generated - */ - EReference getAbstractEditHelperAdviceConfiguration_Target(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration Edit Helper Advice Configuration}'. - * - * - * @return the meta object for class 'Edit Helper Advice Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration - * @generated - */ - EClass getEditHelperAdviceConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}'. - * - * - * @return the meta object for the attribute 'Edit Helper Advice Class Name'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration#getEditHelperAdviceClassName() - * @see #getEditHelperAdviceConfiguration() - * @generated - */ - EAttribute getEditHelperAdviceConfiguration_EditHelperAdviceClassName(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration Advice Binding Configuration}'. - * - * - * @return the meta object for class 'Advice Binding Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration - * @generated - */ - EClass getAdviceBindingConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}'. - * - * - * @return the meta object for the attribute 'Edit Helper Advice Class Name'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration#getEditHelperAdviceClassName() - * @see #getAdviceBindingConfiguration() - * @generated - */ - EAttribute getAdviceBindingConfiguration_EditHelperAdviceClassName(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration Matcher Configuration}'. - * - * - * @return the meta object for class 'Matcher Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration - * @generated - */ - EClass getMatcherConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration#getMatcherClassName Matcher Class Name}'. - * - * - * @return the meta object for the attribute 'Matcher Class Name'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration#getMatcherClassName() - * @see #getMatcherConfiguration() - * @generated - */ - EAttribute getMatcherConfiguration_MatcherClassName(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * - * @return the meta object for class 'Identified Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - EClass getIdentifiedConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration#getIdentifier() - * @see #getIdentifiedConfiguration() - * @generated - */ - EAttribute getIdentifiedConfiguration_Identifier(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration Named Configuration}'. - * - * - * @return the meta object for class 'Named Configuration'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration - * @generated - */ - EClass getNamedConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration#getName() - * @see #getNamedConfiguration() - * @generated - */ - EAttribute getNamedConfiguration_Name(); - - /** - * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind Inheritance Kind}'. - * - * - * @return the meta object for enum 'Inheritance Kind'. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind - * @generated - */ - EEnum getInheritanceKind(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ElementtypesconfigurationsFactory getElementtypesconfigurationsFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl Element Type Set Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getElementTypeSetConfiguration() - * @generated - */ - EClass ELEMENT_TYPE_SET_CONFIGURATION = eINSTANCE.getElementTypeSetConfiguration(); - - /** - * The meta object literal for the 'Element Type Configurations' containment reference list feature. - * - * - * @generated - */ - EReference ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS = eINSTANCE.getElementTypeSetConfiguration_ElementTypeConfigurations(); - - /** - * The meta object literal for the 'Advice Bindings Configurations' containment reference list feature. - * - * - * @generated - */ - EReference ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS = eINSTANCE.getElementTypeSetConfiguration_AdviceBindingsConfigurations(); - - /** - * The meta object literal for the 'Metamodel Ns URI' attribute feature. - * - * - * @generated - */ - EAttribute ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI = eINSTANCE.getElementTypeSetConfiguration_MetamodelNsURI(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl Element Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getElementTypeConfiguration() - * @generated - */ - EClass ELEMENT_TYPE_CONFIGURATION = eINSTANCE.getElementTypeConfiguration(); - - /** - * The meta object literal for the 'Hint' attribute feature. - * - * - * @generated - */ - EAttribute ELEMENT_TYPE_CONFIGURATION__HINT = eINSTANCE.getElementTypeConfiguration_Hint(); - - /** - * The meta object literal for the 'Kind' attribute feature. - * - * - * @generated - */ - EAttribute ELEMENT_TYPE_CONFIGURATION__KIND = eINSTANCE.getElementTypeConfiguration_Kind(); - - /** - * The meta object literal for the 'Icon Entry' containment reference feature. - * - * - * @generated - */ - EReference ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY = eINSTANCE.getElementTypeConfiguration_IconEntry(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.IconEntryImpl Icon Entry}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.IconEntryImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getIconEntry() - * @generated - */ - EClass ICON_ENTRY = eINSTANCE.getIconEntry(); - - /** - * The meta object literal for the 'Icon Path' attribute feature. - * - * - * @generated - */ - EAttribute ICON_ENTRY__ICON_PATH = eINSTANCE.getIconEntry_IconPath(); - - /** - * The meta object literal for the 'Bundle Id' attribute feature. - * - * - * @generated - */ - EAttribute ICON_ENTRY__BUNDLE_ID = eINSTANCE.getIconEntry_BundleId(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfigurationElementImpl Configuration Element}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfigurationElementImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getConfigurationElement() - * @generated - */ - EClass CONFIGURATION_ELEMENT = eINSTANCE.getConfigurationElement(); - - /** - * The meta object literal for the 'Description' attribute feature. - * - * - * @generated - */ - EAttribute CONFIGURATION_ELEMENT__DESCRIPTION = eINSTANCE.getConfigurationElement_Description(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractMatcherConfigurationImpl Abstract Matcher Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractMatcherConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAbstractMatcherConfiguration() - * @generated - */ - EClass ABSTRACT_MATCHER_CONFIGURATION = eINSTANCE.getAbstractMatcherConfiguration(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceConfigurationImpl Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAdviceConfiguration() - * @generated - */ - EClass ADVICE_CONFIGURATION = eINSTANCE.getAdviceConfiguration(); - - /** - * The meta object literal for the 'Before' attribute list feature. - * - * - * @generated - */ - EAttribute ADVICE_CONFIGURATION__BEFORE = eINSTANCE.getAdviceConfiguration_Before(); - - /** - * The meta object literal for the 'After' attribute list feature. - * - * - * @generated - */ - EAttribute ADVICE_CONFIGURATION__AFTER = eINSTANCE.getAdviceConfiguration_After(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl Abstract Advice Binding Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAbstractAdviceBindingConfiguration() - * @generated - */ - EClass ABSTRACT_ADVICE_BINDING_CONFIGURATION = eINSTANCE.getAbstractAdviceBindingConfiguration(); - - /** - * The meta object literal for the 'Target' reference feature. - * - * - * @generated - */ - EReference ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET = eINSTANCE.getAbstractAdviceBindingConfiguration_Target(); - - /** - * The meta object literal for the 'Container Configuration' containment reference feature. - * - * - * @generated - */ - EReference ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION = eINSTANCE.getAbstractAdviceBindingConfiguration_ContainerConfiguration(); - - /** - * The meta object literal for the 'Matcher Configuration' containment reference feature. - * - * - * @generated - */ - EReference ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION = eINSTANCE.getAbstractAdviceBindingConfiguration_MatcherConfiguration(); - - /** - * The meta object literal for the 'Inheritance' attribute feature. - * - * - * @generated - */ - EAttribute ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE = eINSTANCE.getAbstractAdviceBindingConfiguration_Inheritance(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl Specialization Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getSpecializationTypeConfiguration() - * @generated - */ - EClass SPECIALIZATION_TYPE_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration(); - - /** - * The meta object literal for the 'Specialized Types ID' attribute list feature. - * - * - * @generated - */ - EAttribute SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID = eINSTANCE.getSpecializationTypeConfiguration_SpecializedTypesID(); - - /** - * The meta object literal for the 'Edit Helper Advice Configuration' containment reference feature. - * - * - * @generated - */ - EReference SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(); - - /** - * The meta object literal for the 'Container Configuration' containment reference feature. - * - * - * @generated - */ - EReference SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration_ContainerConfiguration(); - - /** - * The meta object literal for the 'Matcher Configuration' containment reference feature. - * - * - * @generated - */ - EReference SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration_MatcherConfiguration(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ContainerConfigurationImpl Container Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ContainerConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getContainerConfiguration() - * @generated - */ - EClass CONTAINER_CONFIGURATION = eINSTANCE.getContainerConfiguration(); - - /** - * The meta object literal for the 'Container Matcher Configuration' containment reference feature. - * - * - * @generated - */ - EReference CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION = eINSTANCE.getContainerConfiguration_ContainerMatcherConfiguration(); - - /** - * The meta object literal for the 'EContainment Features' reference list feature. - * - * - * @generated - */ - EReference CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES = eINSTANCE.getContainerConfiguration_EContainmentFeatures(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MetamodelTypeConfigurationImpl Metamodel Type Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MetamodelTypeConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getMetamodelTypeConfiguration() - * @generated - */ - EClass METAMODEL_TYPE_CONFIGURATION = eINSTANCE.getMetamodelTypeConfiguration(); - - /** - * The meta object literal for the 'EClass' reference feature. - * - * - * @generated - */ - EReference METAMODEL_TYPE_CONFIGURATION__ECLASS = eINSTANCE.getMetamodelTypeConfiguration_EClass(); - - /** - * The meta object literal for the 'Edit Helper Class Name' attribute feature. - * - * - * @generated - */ - EAttribute METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME = eINSTANCE.getMetamodelTypeConfiguration_EditHelperClassName(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractEditHelperAdviceConfigurationImpl Abstract Edit Helper Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractEditHelperAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAbstractEditHelperAdviceConfiguration() - * @generated - */ - EClass ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION = eINSTANCE.getAbstractEditHelperAdviceConfiguration(); - - /** - * The meta object literal for the 'Target' container reference feature. - * - * - * @generated - */ - EReference ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET = eINSTANCE.getAbstractEditHelperAdviceConfiguration_Target(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.EditHelperAdviceConfigurationImpl Edit Helper Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.EditHelperAdviceConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getEditHelperAdviceConfiguration() - * @generated - */ - EClass EDIT_HELPER_ADVICE_CONFIGURATION = eINSTANCE.getEditHelperAdviceConfiguration(); - - /** - * The meta object literal for the 'Edit Helper Advice Class Name' attribute feature. - * - * - * @generated - */ - EAttribute EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = eINSTANCE.getEditHelperAdviceConfiguration_EditHelperAdviceClassName(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceBindingConfigurationImpl Advice Binding Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceBindingConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getAdviceBindingConfiguration() - * @generated - */ - EClass ADVICE_BINDING_CONFIGURATION = eINSTANCE.getAdviceBindingConfiguration(); - - /** - * The meta object literal for the 'Edit Helper Advice Class Name' attribute feature. - * - * - * @generated - */ - EAttribute ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = eINSTANCE.getAdviceBindingConfiguration_EditHelperAdviceClassName(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MatcherConfigurationImpl Matcher Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MatcherConfigurationImpl - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getMatcherConfiguration() - * @generated - */ - EClass MATCHER_CONFIGURATION = eINSTANCE.getMatcherConfiguration(); - - /** - * The meta object literal for the 'Matcher Class Name' attribute feature. - * - * - * @generated - */ - EAttribute MATCHER_CONFIGURATION__MATCHER_CLASS_NAME = eINSTANCE.getMatcherConfiguration_MatcherClassName(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getIdentifiedConfiguration() - * @generated - */ - EClass IDENTIFIED_CONFIGURATION = eINSTANCE.getIdentifiedConfiguration(); - - /** - * The meta object literal for the 'Identifier' attribute feature. - * - * - * @generated - */ - EAttribute IDENTIFIED_CONFIGURATION__IDENTIFIER = eINSTANCE.getIdentifiedConfiguration_Identifier(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration Named Configuration}' class. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getNamedConfiguration() - * @generated - */ - EClass NAMED_CONFIGURATION = eINSTANCE.getNamedConfiguration(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute NAMED_CONFIGURATION__NAME = eINSTANCE.getNamedConfiguration_Name(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind Inheritance Kind}' enum. - * - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementtypesconfigurationsPackageImpl#getInheritanceKind() - * @generated - */ - EEnum INHERITANCE_KIND = eINSTANCE.getInheritanceKind(); - - } - -} //ElementtypesconfigurationsPackage diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IconEntry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IconEntry.java deleted file mode 100644 index 821e2fac6fb..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IconEntry.java +++ /dev/null @@ -1,87 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Icon Entry'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getIconPath Icon Path}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getBundleId Bundle Id}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getIconEntry() - * @model - * @generated - */ -public interface IconEntry extends EObject { - /** - * Returns the value of the 'Icon Path' attribute. - * - *

- * If the meaning of the 'Icon Path' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Icon Path' attribute. - * @see #setIconPath(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getIconEntry_IconPath() - * @model - * @generated - */ - String getIconPath(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getIconPath Icon Path}' attribute. - * - * - * @param value the new value of the 'Icon Path' attribute. - * @see #getIconPath() - * @generated - */ - void setIconPath(String value); - - /** - * Returns the value of the 'Bundle Id' attribute. - * - *

- * If the meaning of the 'Bundle Id' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Bundle Id' attribute. - * @see #setBundleId(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getIconEntry_BundleId() - * @model - * @generated - */ - String getBundleId(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry#getBundleId Bundle Id}' attribute. - * - * - * @param value the new value of the 'Bundle Id' attribute. - * @see #getBundleId() - * @generated - */ - void setBundleId(String value); - -} // IconEntry diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IdentifiedConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IdentifiedConfiguration.java deleted file mode 100644 index 0119ff2f154..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/IdentifiedConfiguration.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Identified Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration#getIdentifier Identifier}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getIdentifiedConfiguration() - * @model interface="true" abstract="true" - * @generated - */ -public interface IdentifiedConfiguration extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - *

- * If the meaning of the 'Identifier' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getIdentifiedConfiguration_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - -} // IdentifiedConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/InheritanceKind.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/InheritanceKind.java deleted file mode 100644 index b097b47eb38..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/InheritanceKind.java +++ /dev/null @@ -1,224 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Inheritance Kind', - * and utility methods for working with them. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getInheritanceKind() - * @model - * @generated - */ -public enum InheritanceKind implements Enumerator { - /** - * The 'None' literal object. - * - * - * @see #NONE_VALUE - * @generated - * @ordered - */ - NONE(0, "none", "none"), - - /** - * The 'All' literal object. - * - * - * @see #ALL_VALUE - * @generated - * @ordered - */ - ALL(1, "all", "all"); - - /** - * The 'None' literal value. - * - *

- * If the meaning of 'None' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #NONE - * @model name="none" - * @generated - * @ordered - */ - public static final int NONE_VALUE = 0; - - /** - * The 'All' literal value. - * - *

- * If the meaning of 'All' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #ALL - * @model name="all" - * @generated - * @ordered - */ - public static final int ALL_VALUE = 1; - - /** - * An array of all the 'Inheritance Kind' enumerators. - * - * - * @generated - */ - private static final InheritanceKind[] VALUES_ARRAY = - new InheritanceKind[] { - NONE, - ALL, - }; - - /** - * A public read-only list of all the 'Inheritance Kind' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Inheritance Kind' literal with the specified literal value. - * - * - * @param literal the literal. - * @return the matching enumerator or null. - * @generated - */ - public static InheritanceKind get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - InheritanceKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Inheritance Kind' literal with the specified name. - * - * - * @param name the name. - * @return the matching enumerator or null. - * @generated - */ - public static InheritanceKind getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - InheritanceKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Inheritance Kind' literal with the specified integer value. - * - * - * @param value the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static InheritanceKind get(int value) { - switch (value) { - case NONE_VALUE: return NONE; - case ALL_VALUE: return ALL; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private InheritanceKind(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - public int getValue() { - return value; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public String getLiteral() { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() { - return literal; - } - -} //InheritanceKind diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MatcherConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MatcherConfiguration.java deleted file mode 100644 index fc367dce745..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MatcherConfiguration.java +++ /dev/null @@ -1,59 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - - -/** - * - * A representation of the model object 'Matcher Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration#getMatcherClassName Matcher Class Name}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getMatcherConfiguration() - * @model - * @generated - */ -public interface MatcherConfiguration extends AbstractMatcherConfiguration { - /** - * Returns the value of the 'Matcher Class Name' attribute. - * - *

- * If the meaning of the 'Matcher Class Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Matcher Class Name' attribute. - * @see #setMatcherClassName(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getMatcherConfiguration_MatcherClassName() - * @model required="true" - * @generated - */ - String getMatcherClassName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration#getMatcherClassName Matcher Class Name}' attribute. - * - * - * @param value the new value of the 'Matcher Class Name' attribute. - * @see #getMatcherClassName() - * @generated - */ - void setMatcherClassName(String value); - -} // MatcherConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MetamodelTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MetamodelTypeConfiguration.java deleted file mode 100644 index 74a8897911a..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/MetamodelTypeConfiguration.java +++ /dev/null @@ -1,87 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * A representation of the model object 'Metamodel Type Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEClass EClass}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEditHelperClassName Edit Helper Class Name}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getMetamodelTypeConfiguration() - * @model - * @generated - */ -public interface MetamodelTypeConfiguration extends ElementTypeConfiguration { - /** - * Returns the value of the 'EClass' reference. - * - *

- * If the meaning of the 'EClass' reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'EClass' reference. - * @see #setEClass(EClass) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getMetamodelTypeConfiguration_EClass() - * @model - * @generated - */ - EClass getEClass(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEClass EClass}' reference. - * - * - * @param value the new value of the 'EClass' reference. - * @see #getEClass() - * @generated - */ - void setEClass(EClass value); - - /** - * Returns the value of the 'Edit Helper Class Name' attribute. - * - *

- * If the meaning of the 'Edit Helper Class Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Edit Helper Class Name' attribute. - * @see #setEditHelperClassName(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getMetamodelTypeConfiguration_EditHelperClassName() - * @model - * @generated - */ - String getEditHelperClassName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration#getEditHelperClassName Edit Helper Class Name}' attribute. - * - * - * @param value the new value of the 'Edit Helper Class Name' attribute. - * @see #getEditHelperClassName() - * @generated - */ - void setEditHelperClassName(String value); - -} // MetamodelTypeConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/NamedConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/NamedConfiguration.java deleted file mode 100644 index 9ee7476ae17..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/NamedConfiguration.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Named Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration#getName Name}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getNamedConfiguration() - * @model interface="true" abstract="true" - * @generated - */ -public interface NamedConfiguration extends EObject { - /** - * Returns the value of the 'Name' attribute. - * - *

- * If the meaning of the 'Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getNamedConfiguration_Name() - * @model required="true" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // NamedConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/SpecializationTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/SpecializationTypeConfiguration.java deleted file mode 100644 index 9bb4bc4df42..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/SpecializationTypeConfiguration.java +++ /dev/null @@ -1,133 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Specialization Type Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getSpecializedTypesID Specialized Types ID}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getContainerConfiguration Container Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getMatcherConfiguration Matcher Configuration}
  • - *
- * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getSpecializationTypeConfiguration() - * @model - * @generated - */ -public interface SpecializationTypeConfiguration extends ElementTypeConfiguration { - /** - * Returns the value of the 'Specialized Types ID' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'Specialized Types ID' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Specialized Types ID' attribute list. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getSpecializationTypeConfiguration_SpecializedTypesID() - * @model required="true" - * @generated - */ - EList getSpecializedTypesID(); - - /** - * Returns the value of the 'Edit Helper Advice Configuration' containment reference. - * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration#getTarget Target}'. - * - *

- * If the meaning of the 'Edit Helper Advice Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Edit Helper Advice Configuration' containment reference. - * @see #setEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getSpecializationTypeConfiguration_EditHelperAdviceConfiguration() - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration#getTarget - * @model opposite="target" containment="true" - * @generated - */ - AbstractEditHelperAdviceConfiguration getEditHelperAdviceConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}' containment reference. - * - * - * @param value the new value of the 'Edit Helper Advice Configuration' containment reference. - * @see #getEditHelperAdviceConfiguration() - * @generated - */ - void setEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration value); - - /** - * Returns the value of the 'Container Configuration' containment reference. - * - *

- * If the meaning of the 'Container Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Container Configuration' containment reference. - * @see #setContainerConfiguration(ContainerConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getSpecializationTypeConfiguration_ContainerConfiguration() - * @model containment="true" - * @generated - */ - ContainerConfiguration getContainerConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getContainerConfiguration Container Configuration}' containment reference. - * - * - * @param value the new value of the 'Container Configuration' containment reference. - * @see #getContainerConfiguration() - * @generated - */ - void setContainerConfiguration(ContainerConfiguration value); - - /** - * Returns the value of the 'Matcher Configuration' containment reference. - * - *

- * If the meaning of the 'Matcher Configuration' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Matcher Configuration' containment reference. - * @see #setMatcherConfiguration(AbstractMatcherConfiguration) - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#getSpecializationTypeConfiguration_MatcherConfiguration() - * @model containment="true" - * @generated - */ - AbstractMatcherConfiguration getMatcherConfiguration(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration#getMatcherConfiguration Matcher Configuration}' containment reference. - * - * - * @param value the new value of the 'Matcher Configuration' containment reference. - * @see #getMatcherConfiguration() - * @generated - */ - void setMatcherConfiguration(AbstractMatcherConfiguration value); - -} // SpecializationTypeConfiguration diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractAdviceBindingConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractAdviceBindingConfigurationImpl.java deleted file mode 100644 index 2e85e40c09e..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractAdviceBindingConfigurationImpl.java +++ /dev/null @@ -1,469 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind; - -/** - * - * An implementation of the model object 'Abstract Advice Binding Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl#getTarget Target}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl#getContainerConfiguration Container Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl#getMatcherConfiguration Matcher Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl#getInheritance Inheritance}
  • - *
- * - * @generated - */ -public abstract class AbstractAdviceBindingConfigurationImpl extends AdviceConfigurationImpl implements AbstractAdviceBindingConfiguration { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected String identifier = IDENTIFIER_EDEFAULT; - - /** - * The cached value of the '{@link #getTarget() Target}' reference. - * - * - * @see #getTarget() - * @generated - * @ordered - */ - protected ElementTypeConfiguration target; - - /** - * The cached value of the '{@link #getContainerConfiguration() Container Configuration}' containment reference. - * - * - * @see #getContainerConfiguration() - * @generated - * @ordered - */ - protected ContainerConfiguration containerConfiguration; - - /** - * The cached value of the '{@link #getMatcherConfiguration() Matcher Configuration}' containment reference. - * - * - * @see #getMatcherConfiguration() - * @generated - * @ordered - */ - protected AbstractMatcherConfiguration matcherConfiguration; - - /** - * The default value of the '{@link #getInheritance() Inheritance}' attribute. - * - * - * @see #getInheritance() - * @generated - * @ordered - */ - protected static final InheritanceKind INHERITANCE_EDEFAULT = InheritanceKind.NONE; - - /** - * The cached value of the '{@link #getInheritance() Inheritance}' attribute. - * - * - * @see #getInheritance() - * @generated - * @ordered - */ - protected InheritanceKind inheritance = INHERITANCE_EDEFAULT; - - /** - * - * - * @generated - */ - protected AbstractAdviceBindingConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER, oldIdentifier, identifier)); - } - - /** - * - * - * @generated - */ - public ElementTypeConfiguration getTarget() { - if (target != null && target.eIsProxy()) { - InternalEObject oldTarget = (InternalEObject)target; - target = (ElementTypeConfiguration)eResolveProxy(oldTarget); - if (target != oldTarget) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET, oldTarget, target)); - } - } - return target; - } - - /** - * - * - * @generated - */ - public ElementTypeConfiguration basicGetTarget() { - return target; - } - - /** - * - * - * @generated - */ - public void setTarget(ElementTypeConfiguration newTarget) { - ElementTypeConfiguration oldTarget = target; - target = newTarget; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET, oldTarget, target)); - } - - /** - * - * - * @generated - */ - public ContainerConfiguration getContainerConfiguration() { - return containerConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetContainerConfiguration(ContainerConfiguration newContainerConfiguration, NotificationChain msgs) { - ContainerConfiguration oldContainerConfiguration = containerConfiguration; - containerConfiguration = newContainerConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, oldContainerConfiguration, newContainerConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setContainerConfiguration(ContainerConfiguration newContainerConfiguration) { - if (newContainerConfiguration != containerConfiguration) { - NotificationChain msgs = null; - if (containerConfiguration != null) - msgs = ((InternalEObject)containerConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); - if (newContainerConfiguration != null) - msgs = ((InternalEObject)newContainerConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); - msgs = basicSetContainerConfiguration(newContainerConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, newContainerConfiguration, newContainerConfiguration)); - } - - /** - * - * - * @generated - */ - public AbstractMatcherConfiguration getMatcherConfiguration() { - return matcherConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration, NotificationChain msgs) { - AbstractMatcherConfiguration oldMatcherConfiguration = matcherConfiguration; - matcherConfiguration = newMatcherConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, oldMatcherConfiguration, newMatcherConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration) { - if (newMatcherConfiguration != matcherConfiguration) { - NotificationChain msgs = null; - if (matcherConfiguration != null) - msgs = ((InternalEObject)matcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); - if (newMatcherConfiguration != null) - msgs = ((InternalEObject)newMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); - msgs = basicSetMatcherConfiguration(newMatcherConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, newMatcherConfiguration, newMatcherConfiguration)); - } - - /** - * - * - * @generated - */ - public InheritanceKind getInheritance() { - return inheritance; - } - - /** - * - * - * @generated - */ - public void setInheritance(InheritanceKind newInheritance) { - InheritanceKind oldInheritance = inheritance; - inheritance = newInheritance == null ? INHERITANCE_EDEFAULT : newInheritance; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE, oldInheritance, inheritance)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: - return basicSetContainerConfiguration(null, msgs); - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: - return basicSetMatcherConfiguration(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: - return getIdentifier(); - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: - if (resolve) return getTarget(); - return basicGetTarget(); - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: - return getContainerConfiguration(); - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: - return getMatcherConfiguration(); - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: - return getInheritance(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: - setIdentifier((String)newValue); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: - setTarget((ElementTypeConfiguration)newValue); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: - setContainerConfiguration((ContainerConfiguration)newValue); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: - setMatcherConfiguration((AbstractMatcherConfiguration)newValue); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: - setInheritance((InheritanceKind)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: - setTarget((ElementTypeConfiguration)null); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: - setContainerConfiguration((ContainerConfiguration)null); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: - setMatcherConfiguration((AbstractMatcherConfiguration)null); - return; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: - setInheritance(INHERITANCE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: - return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: - return target != null; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: - return containerConfiguration != null; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: - return matcherConfiguration != null; - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: - return inheritance != INHERITANCE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == IdentifiedConfiguration.class) { - switch (derivedFeatureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: return ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER; - default: return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == IdentifiedConfiguration.class) { - switch (baseFeatureID) { - case ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER: return ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; - default: return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (identifier: "); - result.append(identifier); - result.append(", inheritance: "); - result.append(inheritance); - result.append(')'); - return result.toString(); - } - -} //AbstractAdviceBindingConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractEditHelperAdviceConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractEditHelperAdviceConfigurationImpl.java deleted file mode 100644 index 0bb450384fa..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractEditHelperAdviceConfigurationImpl.java +++ /dev/null @@ -1,205 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EcoreUtil; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -/** - * - * An implementation of the model object 'Abstract Edit Helper Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractEditHelperAdviceConfigurationImpl#getTarget Target}
  • - *
- * - * @generated - */ -public abstract class AbstractEditHelperAdviceConfigurationImpl extends AdviceConfigurationImpl implements AbstractEditHelperAdviceConfiguration { - /** - * - * - * @generated - */ - protected AbstractEditHelperAdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public SpecializationTypeConfiguration getTarget() { - if (eContainerFeatureID() != ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET) return null; - return (SpecializationTypeConfiguration)eInternalContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTarget(SpecializationTypeConfiguration newTarget, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject)newTarget, ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - public void setTarget(SpecializationTypeConfiguration newTarget) { - if (newTarget != eInternalContainer() || (eContainerFeatureID() != ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET && newTarget != null)) { - if (EcoreUtil.isAncestor(this, newTarget)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newTarget != null) - msgs = ((InternalEObject)newTarget).eInverseAdd(this, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, SpecializationTypeConfiguration.class, msgs); - msgs = basicSetTarget(newTarget, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, newTarget, newTarget)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetTarget((SpecializationTypeConfiguration)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - return basicSetTarget(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - return eInternalContainer().eInverseRemove(this, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, SpecializationTypeConfiguration.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - return getTarget(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - setTarget((SpecializationTypeConfiguration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - setTarget((SpecializationTypeConfiguration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: - return getTarget() != null; - } - return super.eIsSet(featureID); - } - -} //AbstractEditHelperAdviceConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractMatcherConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractMatcherConfigurationImpl.java deleted file mode 100644 index 507c8f165b7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AbstractMatcherConfigurationImpl.java +++ /dev/null @@ -1,49 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * An implementation of the model object 'Abstract Matcher Configuration'. - * - * - * @generated - */ -public abstract class AbstractMatcherConfigurationImpl extends MinimalEObjectImpl.Container implements AbstractMatcherConfiguration { - /** - * - * - * @generated - */ - protected AbstractMatcherConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ABSTRACT_MATCHER_CONFIGURATION; - } - -} //AbstractMatcherConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceBindingConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceBindingConfigurationImpl.java deleted file mode 100644 index 147e3bfe083..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceBindingConfigurationImpl.java +++ /dev/null @@ -1,172 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.AdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * An implementation of the model object 'Advice Binding Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceBindingConfigurationImpl#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • - *
- * - * @generated - */ -public class AdviceBindingConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements AdviceBindingConfiguration { - /** - * The default value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. - * - * - * @see #getEditHelperAdviceClassName() - * @generated - * @ordered - */ - protected static final String EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. - * - * - * @see #getEditHelperAdviceClassName() - * @generated - * @ordered - */ - protected String editHelperAdviceClassName = EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected AdviceBindingConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ADVICE_BINDING_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getEditHelperAdviceClassName() { - return editHelperAdviceClassName; - } - - /** - * - * - * @generated - */ - public void setEditHelperAdviceClassName(String newEditHelperAdviceClassName) { - String oldEditHelperAdviceClassName = editHelperAdviceClassName; - editHelperAdviceClassName = newEditHelperAdviceClassName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, oldEditHelperAdviceClassName, editHelperAdviceClassName)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - return getEditHelperAdviceClassName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - setEditHelperAdviceClassName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - setEditHelperAdviceClassName(EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - return EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT == null ? editHelperAdviceClassName != null : !EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT.equals(editHelperAdviceClassName); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (editHelperAdviceClassName: "); - result.append(editHelperAdviceClassName); - result.append(')'); - return result.toString(); - } - -} //AdviceBindingConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceConfigurationImpl.java deleted file mode 100644 index c4a14cba724..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/AdviceConfigurationImpl.java +++ /dev/null @@ -1,193 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * An implementation of the model object 'Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceConfigurationImpl#getBefore Before}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AdviceConfigurationImpl#getAfter After}
  • - *
- * - * @generated - */ -public abstract class AdviceConfigurationImpl extends ConfigurationElementImpl implements AdviceConfiguration { - /** - * The cached value of the '{@link #getBefore() Before}' attribute list. - * - * - * @see #getBefore() - * @generated - * @ordered - */ - protected EList before; - - /** - * The cached value of the '{@link #getAfter() After}' attribute list. - * - * - * @see #getAfter() - * @generated - * @ordered - */ - protected EList after; - - /** - * - * - * @generated - */ - protected AdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getBefore() { - if (before == null) { - before = new EDataTypeUniqueEList(String.class, this, ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__BEFORE); - } - return before; - } - - /** - * - * - * @generated - */ - public EList getAfter() { - if (after == null) { - after = new EDataTypeUniqueEList(String.class, this, ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__AFTER); - } - return after; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: - return getBefore(); - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__AFTER: - return getAfter(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: - getBefore().clear(); - getBefore().addAll((Collection)newValue); - return; - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__AFTER: - getAfter().clear(); - getAfter().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: - getBefore().clear(); - return; - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__AFTER: - getAfter().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: - return before != null && !before.isEmpty(); - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION__AFTER: - return after != null && !after.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @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(')'); - return result.toString(); - } - -} //AdviceConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfigurationElementImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfigurationElementImpl.java deleted file mode 100644 index f86d35f1ff3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfigurationElementImpl.java +++ /dev/null @@ -1,173 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.MinimalEObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * An implementation of the model object 'Configuration Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfigurationElementImpl#getDescription Description}
  • - *
- * - * @generated - */ -public abstract class ConfigurationElementImpl extends MinimalEObjectImpl.Container implements ConfigurationElement { - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * - * - * @generated - */ - protected ConfigurationElementImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.CONFIGURATION_ELEMENT; - } - - /** - * - * - * @generated - */ - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION, oldDescription, description)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: - return getDescription(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: - setDescription((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} //ConfigurationElementImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ContainerConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ContainerConfigurationImpl.java deleted file mode 100644 index 30508f1438d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ContainerConfigurationImpl.java +++ /dev/null @@ -1,228 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.EReference; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectResolvingEList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * An implementation of the model object 'Container Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ContainerConfigurationImpl#getContainerMatcherConfiguration Container Matcher Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ContainerConfigurationImpl#getEContainmentFeatures EContainment Features}
  • - *
- * - * @generated - */ -public class ContainerConfigurationImpl extends MinimalEObjectImpl.Container implements ContainerConfiguration { - /** - * The cached value of the '{@link #getContainerMatcherConfiguration() Container Matcher Configuration}' containment reference. - * - * - * @see #getContainerMatcherConfiguration() - * @generated - * @ordered - */ - protected AbstractMatcherConfiguration containerMatcherConfiguration; - - /** - * The cached value of the '{@link #getEContainmentFeatures() EContainment Features}' reference list. - * - * - * @see #getEContainmentFeatures() - * @generated - * @ordered - */ - protected EList eContainmentFeatures; - - /** - * - * - * @generated - */ - protected ContainerConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.CONTAINER_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public AbstractMatcherConfiguration getContainerMatcherConfiguration() { - return containerMatcherConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetContainerMatcherConfiguration(AbstractMatcherConfiguration newContainerMatcherConfiguration, NotificationChain msgs) { - AbstractMatcherConfiguration oldContainerMatcherConfiguration = containerMatcherConfiguration; - containerMatcherConfiguration = newContainerMatcherConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, oldContainerMatcherConfiguration, newContainerMatcherConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setContainerMatcherConfiguration(AbstractMatcherConfiguration newContainerMatcherConfiguration) { - if (newContainerMatcherConfiguration != containerMatcherConfiguration) { - NotificationChain msgs = null; - if (containerMatcherConfiguration != null) - msgs = ((InternalEObject)containerMatcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, null, msgs); - if (newContainerMatcherConfiguration != null) - msgs = ((InternalEObject)newContainerMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, null, msgs); - msgs = basicSetContainerMatcherConfiguration(newContainerMatcherConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, newContainerMatcherConfiguration, newContainerMatcherConfiguration)); - } - - /** - * - * - * @generated - */ - public EList getEContainmentFeatures() { - if (eContainmentFeatures == null) { - eContainmentFeatures = new EObjectResolvingEList(EReference.class, this, ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES); - } - return eContainmentFeatures; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: - return basicSetContainerMatcherConfiguration(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: - return getContainerMatcherConfiguration(); - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: - return getEContainmentFeatures(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: - setContainerMatcherConfiguration((AbstractMatcherConfiguration)newValue); - return; - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: - getEContainmentFeatures().clear(); - getEContainmentFeatures().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: - setContainerMatcherConfiguration((AbstractMatcherConfiguration)null); - return; - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: - getEContainmentFeatures().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: - return containerMatcherConfiguration != null; - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: - return eContainmentFeatures != null && !eContainmentFeatures.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ContainerConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/EditHelperAdviceConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/EditHelperAdviceConfigurationImpl.java deleted file mode 100644 index 44accd06c92..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/EditHelperAdviceConfigurationImpl.java +++ /dev/null @@ -1,172 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.EditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * An implementation of the model object 'Edit Helper Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.EditHelperAdviceConfigurationImpl#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • - *
- * - * @generated - */ -public class EditHelperAdviceConfigurationImpl extends AbstractEditHelperAdviceConfigurationImpl implements EditHelperAdviceConfiguration { - /** - * The default value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. - * - * - * @see #getEditHelperAdviceClassName() - * @generated - * @ordered - */ - protected static final String EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. - * - * - * @see #getEditHelperAdviceClassName() - * @generated - * @ordered - */ - protected String editHelperAdviceClassName = EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected EditHelperAdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.EDIT_HELPER_ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getEditHelperAdviceClassName() { - return editHelperAdviceClassName; - } - - /** - * - * - * @generated - */ - public void setEditHelperAdviceClassName(String newEditHelperAdviceClassName) { - String oldEditHelperAdviceClassName = editHelperAdviceClassName; - editHelperAdviceClassName = newEditHelperAdviceClassName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, oldEditHelperAdviceClassName, editHelperAdviceClassName)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - return getEditHelperAdviceClassName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - setEditHelperAdviceClassName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - setEditHelperAdviceClassName(EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: - return EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT == null ? editHelperAdviceClassName != null : !EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT.equals(editHelperAdviceClassName); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (editHelperAdviceClassName: "); - result.append(editHelperAdviceClassName); - result.append(')'); - return result.toString(); - } - -} //EditHelperAdviceConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeConfigurationImpl.java deleted file mode 100644 index 053bd7e13d6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeConfigurationImpl.java +++ /dev/null @@ -1,461 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration; - -/** - * - * An implementation of the model object 'Element Type Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl#getName Name}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl#getHint Hint}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl#getKind Kind}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeConfigurationImpl#getIconEntry Icon Entry}
  • - *
- * - * @generated - */ -public abstract class ElementTypeConfigurationImpl extends ConfigurationElementImpl implements ElementTypeConfiguration { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getHint() Hint}' attribute. - * - * - * @see #getHint() - * @generated - * @ordered - */ - protected static final String HINT_EDEFAULT = ""; - - /** - * The cached value of the '{@link #getHint() Hint}' attribute. - * - * - * @see #getHint() - * @generated - * @ordered - */ - protected String hint = HINT_EDEFAULT; - - /** - * The default value of the '{@link #getKind() Kind}' attribute. - * - * - * @see #getKind() - * @generated - * @ordered - */ - protected static final String KIND_EDEFAULT = "org.eclipse.gmf.runtime.emf.type.core.IHintedType"; - - /** - * The cached value of the '{@link #getKind() Kind}' attribute. - * - * - * @see #getKind() - * @generated - * @ordered - */ - protected String kind = KIND_EDEFAULT; - - /** - * The cached value of the '{@link #getIconEntry() Icon Entry}' containment reference. - * - * - * @see #getIconEntry() - * @generated - * @ordered - */ - protected IconEntry iconEntry; - - /** - * - * - * @generated - */ - protected ElementTypeConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER, oldIdentifier, identifier)); - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - public String getHint() { - return hint; - } - - /** - * - * - * @generated - */ - public void setHint(String newHint) { - String oldHint = hint; - hint = newHint; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT, oldHint, hint)); - } - - /** - * - * - * @generated - */ - public String getKind() { - return kind; - } - - /** - * - * - * @generated - */ - public void setKind(String newKind) { - String oldKind = kind; - kind = newKind; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND, oldKind, kind)); - } - - /** - * - * - * @generated - */ - public IconEntry getIconEntry() { - return iconEntry; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetIconEntry(IconEntry newIconEntry, NotificationChain msgs) { - IconEntry oldIconEntry = iconEntry; - iconEntry = newIconEntry; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, oldIconEntry, newIconEntry); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setIconEntry(IconEntry newIconEntry) { - if (newIconEntry != iconEntry) { - NotificationChain msgs = null; - if (iconEntry != null) - msgs = ((InternalEObject)iconEntry).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, null, msgs); - if (newIconEntry != null) - msgs = ((InternalEObject)newIconEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, null, msgs); - msgs = basicSetIconEntry(newIconEntry, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, newIconEntry, newIconEntry)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: - return basicSetIconEntry(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: - return getIdentifier(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: - return getName(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: - return getHint(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: - return getKind(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: - return getIconEntry(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: - setIdentifier((String)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: - setName((String)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: - setHint((String)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: - setKind((String)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: - setIconEntry((IconEntry)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: - setName(NAME_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: - setHint(HINT_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: - setKind(KIND_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: - setIconEntry((IconEntry)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: - return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: - return HINT_EDEFAULT == null ? hint != null : !HINT_EDEFAULT.equals(hint); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: - return KIND_EDEFAULT == null ? kind != null : !KIND_EDEFAULT.equals(kind); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: - return iconEntry != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == IdentifiedConfiguration.class) { - switch (derivedFeatureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: return ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER; - default: return -1; - } - } - if (baseClass == NamedConfiguration.class) { - switch (derivedFeatureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: return ElementtypesconfigurationsPackage.NAMED_CONFIGURATION__NAME; - default: return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == IdentifiedConfiguration.class) { - switch (baseFeatureID) { - case ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER: return ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER; - default: return -1; - } - } - if (baseClass == NamedConfiguration.class) { - switch (baseFeatureID) { - case ElementtypesconfigurationsPackage.NAMED_CONFIGURATION__NAME: return ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME; - default: return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (identifier: "); - result.append(identifier); - result.append(", name: "); - result.append(name); - result.append(", hint: "); - result.append(hint); - result.append(", kind: "); - result.append(kind); - result.append(')'); - return result.toString(); - } - -} //ElementTypeConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeSetConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeSetConfigurationImpl.java deleted file mode 100644 index 5052d34ecab..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementTypeSetConfigurationImpl.java +++ /dev/null @@ -1,422 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration; - -/** - * - * An implementation of the model object 'Element Type Set Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl#getName Name}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl#getElementTypeConfigurations Element Type Configurations}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl#getAdviceBindingsConfigurations Advice Bindings Configurations}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl#getMetamodelNsURI Metamodel Ns URI}
  • - *
- * - * @generated - */ -public class ElementTypeSetConfigurationImpl extends ConfigurationElementImpl implements ElementTypeSetConfiguration { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getElementTypeConfigurations() Element Type Configurations}' containment reference list. - * - * - * @see #getElementTypeConfigurations() - * @generated - * @ordered - */ - protected EList elementTypeConfigurations; - - /** - * The cached value of the '{@link #getAdviceBindingsConfigurations() Advice Bindings Configurations}' containment reference list. - * - * - * @see #getAdviceBindingsConfigurations() - * @generated - * @ordered - */ - protected EList adviceBindingsConfigurations; - - /** - * The default value of the '{@link #getMetamodelNsURI() Metamodel Ns URI}' attribute. - * - * - * @see #getMetamodelNsURI() - * @generated - * @ordered - */ - protected static final String METAMODEL_NS_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMetamodelNsURI() Metamodel Ns URI}' attribute. - * - * - * @see #getMetamodelNsURI() - * @generated - * @ordered - */ - protected String metamodelNsURI = METAMODEL_NS_URI_EDEFAULT; - - /** - * - * - * @generated - */ - protected ElementTypeSetConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER, oldIdentifier, identifier)); - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - public EList getElementTypeConfigurations() { - if (elementTypeConfigurations == null) { - elementTypeConfigurations = new EObjectContainmentEList(ElementTypeConfiguration.class, this, ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS); - } - return elementTypeConfigurations; - } - - /** - * - * - * @generated - */ - public EList getAdviceBindingsConfigurations() { - if (adviceBindingsConfigurations == null) { - adviceBindingsConfigurations = new EObjectContainmentEList(AbstractAdviceBindingConfiguration.class, this, ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS); - } - return adviceBindingsConfigurations; - } - - /** - * - * - * @generated - */ - public String getMetamodelNsURI() { - return metamodelNsURI; - } - - /** - * - * - * @generated - */ - public void setMetamodelNsURI(String newMetamodelNsURI) { - String oldMetamodelNsURI = metamodelNsURI; - metamodelNsURI = newMetamodelNsURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI, oldMetamodelNsURI, metamodelNsURI)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: - return ((InternalEList)getElementTypeConfigurations()).basicRemove(otherEnd, msgs); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: - return ((InternalEList)getAdviceBindingsConfigurations()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: - return getIdentifier(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: - return getName(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: - return getElementTypeConfigurations(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: - return getAdviceBindingsConfigurations(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: - return getMetamodelNsURI(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: - setIdentifier((String)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: - setName((String)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: - getElementTypeConfigurations().clear(); - getElementTypeConfigurations().addAll((Collection)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: - getAdviceBindingsConfigurations().clear(); - getAdviceBindingsConfigurations().addAll((Collection)newValue); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: - setMetamodelNsURI((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: - setName(NAME_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: - getElementTypeConfigurations().clear(); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: - getAdviceBindingsConfigurations().clear(); - return; - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: - setMetamodelNsURI(METAMODEL_NS_URI_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: - return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: - return elementTypeConfigurations != null && !elementTypeConfigurations.isEmpty(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: - return adviceBindingsConfigurations != null && !adviceBindingsConfigurations.isEmpty(); - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: - return METAMODEL_NS_URI_EDEFAULT == null ? metamodelNsURI != null : !METAMODEL_NS_URI_EDEFAULT.equals(metamodelNsURI); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == IdentifiedConfiguration.class) { - switch (derivedFeatureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: return ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER; - default: return -1; - } - } - if (baseClass == NamedConfiguration.class) { - switch (derivedFeatureID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: return ElementtypesconfigurationsPackage.NAMED_CONFIGURATION__NAME; - default: return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == IdentifiedConfiguration.class) { - switch (baseFeatureID) { - case ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER: return ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER; - default: return -1; - } - } - if (baseClass == NamedConfiguration.class) { - switch (baseFeatureID) { - case ElementtypesconfigurationsPackage.NAMED_CONFIGURATION__NAME: return ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME; - default: return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (identifier: "); - result.append(identifier); - result.append(", name: "); - result.append(name); - result.append(", metamodelNsURI: "); - result.append(metamodelNsURI); - result.append(')'); - return result.toString(); - } - -} //ElementTypeSetConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsFactoryImpl.java deleted file mode 100644 index cc95ebb135b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsFactoryImpl.java +++ /dev/null @@ -1,233 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class ElementtypesconfigurationsFactoryImpl extends EFactoryImpl implements ElementtypesconfigurationsFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ElementtypesconfigurationsFactory init() { - try { - ElementtypesconfigurationsFactory theElementtypesconfigurationsFactory = (ElementtypesconfigurationsFactory)EPackage.Registry.INSTANCE.getEFactory(ElementtypesconfigurationsPackage.eNS_URI); - if (theElementtypesconfigurationsFactory != null) { - return theElementtypesconfigurationsFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ElementtypesconfigurationsFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ElementtypesconfigurationsFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION: return createElementTypeSetConfiguration(); - case ElementtypesconfigurationsPackage.ICON_ENTRY: return createIconEntry(); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION: return createSpecializationTypeConfiguration(); - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION: return createContainerConfiguration(); - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION: return createMetamodelTypeConfiguration(); - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION: return createEditHelperAdviceConfiguration(); - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION: return createAdviceBindingConfiguration(); - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION: return createMatcherConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case ElementtypesconfigurationsPackage.INHERITANCE_KIND: - return createInheritanceKindFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case ElementtypesconfigurationsPackage.INHERITANCE_KIND: - return convertInheritanceKindToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public ElementTypeSetConfiguration createElementTypeSetConfiguration() { - ElementTypeSetConfigurationImpl elementTypeSetConfiguration = new ElementTypeSetConfigurationImpl(); - return elementTypeSetConfiguration; - } - - /** - * - * - * @generated - */ - public IconEntry createIconEntry() { - IconEntryImpl iconEntry = new IconEntryImpl(); - return iconEntry; - } - - /** - * - * - * @generated - */ - public SpecializationTypeConfiguration createSpecializationTypeConfiguration() { - SpecializationTypeConfigurationImpl specializationTypeConfiguration = new SpecializationTypeConfigurationImpl(); - return specializationTypeConfiguration; - } - - /** - * - * - * @generated - */ - public ContainerConfiguration createContainerConfiguration() { - ContainerConfigurationImpl containerConfiguration = new ContainerConfigurationImpl(); - return containerConfiguration; - } - - /** - * - * - * @generated - */ - public MetamodelTypeConfiguration createMetamodelTypeConfiguration() { - MetamodelTypeConfigurationImpl metamodelTypeConfiguration = new MetamodelTypeConfigurationImpl(); - return metamodelTypeConfiguration; - } - - /** - * - * - * @generated - */ - public EditHelperAdviceConfiguration createEditHelperAdviceConfiguration() { - EditHelperAdviceConfigurationImpl editHelperAdviceConfiguration = new EditHelperAdviceConfigurationImpl(); - return editHelperAdviceConfiguration; - } - - /** - * - * - * @generated - */ - public AdviceBindingConfiguration createAdviceBindingConfiguration() { - AdviceBindingConfigurationImpl adviceBindingConfiguration = new AdviceBindingConfigurationImpl(); - return adviceBindingConfiguration; - } - - /** - * - * - * @generated - */ - public MatcherConfiguration createMatcherConfiguration() { - MatcherConfigurationImpl matcherConfiguration = new MatcherConfigurationImpl(); - return matcherConfiguration; - } - - /** - * - * - * @generated - */ - public InheritanceKind createInheritanceKindFromString(EDataType eDataType, String initialValue) { - InheritanceKind result = InheritanceKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertInheritanceKindToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public ElementtypesconfigurationsPackage getElementtypesconfigurationsPackage() { - return (ElementtypesconfigurationsPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ElementtypesconfigurationsPackage getPackage() { - return ElementtypesconfigurationsPackage.eINSTANCE; - } - -} //ElementtypesconfigurationsFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsPackageImpl.java deleted file mode 100644 index 9a63d44932f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ElementtypesconfigurationsPackageImpl.java +++ /dev/null @@ -1,852 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.impl.EPackageImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.InheritanceKind; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class ElementtypesconfigurationsPackageImpl extends EPackageImpl implements ElementtypesconfigurationsPackage { - /** - * - * - * @generated - */ - private EClass elementTypeSetConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass elementTypeConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass iconEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass configurationElementEClass = null; - - /** - * - * - * @generated - */ - private EClass abstractMatcherConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass adviceConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass abstractAdviceBindingConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass specializationTypeConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass containerConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass metamodelTypeConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass abstractEditHelperAdviceConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass editHelperAdviceConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass adviceBindingConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass matcherConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass identifiedConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass namedConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EEnum inheritanceKindEEnum = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage#eNS_URI - * @see #init() - * @generated - */ - private ElementtypesconfigurationsPackageImpl() { - super(eNS_URI, ElementtypesconfigurationsFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link ElementtypesconfigurationsPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ElementtypesconfigurationsPackage init() { - if (isInited) return (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - - // Obtain or create and register package - ElementtypesconfigurationsPackageImpl theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ElementtypesconfigurationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ElementtypesconfigurationsPackageImpl()); - - isInited = true; - - // Create package meta-data objects - theElementtypesconfigurationsPackage.createPackageContents(); - - // Initialize created meta-data - theElementtypesconfigurationsPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theElementtypesconfigurationsPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ElementtypesconfigurationsPackage.eNS_URI, theElementtypesconfigurationsPackage); - return theElementtypesconfigurationsPackage; - } - - /** - * - * - * @generated - */ - public EClass getElementTypeSetConfiguration() { - return elementTypeSetConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getElementTypeSetConfiguration_ElementTypeConfigurations() { - return (EReference)elementTypeSetConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getElementTypeSetConfiguration_AdviceBindingsConfigurations() { - return (EReference)elementTypeSetConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getElementTypeSetConfiguration_MetamodelNsURI() { - return (EAttribute)elementTypeSetConfigurationEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getElementTypeConfiguration() { - return elementTypeConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getElementTypeConfiguration_Hint() { - return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getElementTypeConfiguration_Kind() { - return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getElementTypeConfiguration_IconEntry() { - return (EReference)elementTypeConfigurationEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getIconEntry() { - return iconEntryEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getIconEntry_IconPath() { - return (EAttribute)iconEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getIconEntry_BundleId() { - return (EAttribute)iconEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getConfigurationElement() { - return configurationElementEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getConfigurationElement_Description() { - return (EAttribute)configurationElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAbstractMatcherConfiguration() { - return abstractMatcherConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EClass getAdviceConfiguration() { - return adviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAdviceConfiguration_Before() { - return (EAttribute)adviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getAdviceConfiguration_After() { - return (EAttribute)adviceConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAbstractAdviceBindingConfiguration() { - return abstractAdviceBindingConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getAbstractAdviceBindingConfiguration_Target() { - return (EReference)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getAbstractAdviceBindingConfiguration_ContainerConfiguration() { - return (EReference)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getAbstractAdviceBindingConfiguration_MatcherConfiguration() { - return (EReference)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getAbstractAdviceBindingConfiguration_Inheritance() { - return (EAttribute)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getSpecializationTypeConfiguration() { - return specializationTypeConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getSpecializationTypeConfiguration_SpecializedTypesID() { - return (EAttribute)specializationTypeConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getSpecializationTypeConfiguration_EditHelperAdviceConfiguration() { - return (EReference)specializationTypeConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getSpecializationTypeConfiguration_ContainerConfiguration() { - return (EReference)specializationTypeConfigurationEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getSpecializationTypeConfiguration_MatcherConfiguration() { - return (EReference)specializationTypeConfigurationEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getContainerConfiguration() { - return containerConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getContainerConfiguration_ContainerMatcherConfiguration() { - return (EReference)containerConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getContainerConfiguration_EContainmentFeatures() { - return (EReference)containerConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getMetamodelTypeConfiguration() { - return metamodelTypeConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getMetamodelTypeConfiguration_EClass() { - return (EReference)metamodelTypeConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getMetamodelTypeConfiguration_EditHelperClassName() { - return (EAttribute)metamodelTypeConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAbstractEditHelperAdviceConfiguration() { - return abstractEditHelperAdviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getAbstractEditHelperAdviceConfiguration_Target() { - return (EReference)abstractEditHelperAdviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getEditHelperAdviceConfiguration() { - return editHelperAdviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getEditHelperAdviceConfiguration_EditHelperAdviceClassName() { - return (EAttribute)editHelperAdviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAdviceBindingConfiguration() { - return adviceBindingConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAdviceBindingConfiguration_EditHelperAdviceClassName() { - return (EAttribute)adviceBindingConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getMatcherConfiguration() { - return matcherConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMatcherConfiguration_MatcherClassName() { - return (EAttribute)matcherConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getIdentifiedConfiguration() { - return identifiedConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getIdentifiedConfiguration_Identifier() { - return (EAttribute)identifiedConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getNamedConfiguration() { - return namedConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getNamedConfiguration_Name() { - return (EAttribute)namedConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EEnum getInheritanceKind() { - return inheritanceKindEEnum; - } - - /** - * - * - * @generated - */ - public ElementtypesconfigurationsFactory getElementtypesconfigurationsFactory() { - return (ElementtypesconfigurationsFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - elementTypeSetConfigurationEClass = createEClass(ELEMENT_TYPE_SET_CONFIGURATION); - createEReference(elementTypeSetConfigurationEClass, ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS); - createEReference(elementTypeSetConfigurationEClass, ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS); - createEAttribute(elementTypeSetConfigurationEClass, ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI); - - elementTypeConfigurationEClass = createEClass(ELEMENT_TYPE_CONFIGURATION); - createEAttribute(elementTypeConfigurationEClass, ELEMENT_TYPE_CONFIGURATION__HINT); - createEAttribute(elementTypeConfigurationEClass, ELEMENT_TYPE_CONFIGURATION__KIND); - createEReference(elementTypeConfigurationEClass, ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY); - - iconEntryEClass = createEClass(ICON_ENTRY); - createEAttribute(iconEntryEClass, ICON_ENTRY__ICON_PATH); - createEAttribute(iconEntryEClass, ICON_ENTRY__BUNDLE_ID); - - configurationElementEClass = createEClass(CONFIGURATION_ELEMENT); - createEAttribute(configurationElementEClass, CONFIGURATION_ELEMENT__DESCRIPTION); - - abstractMatcherConfigurationEClass = createEClass(ABSTRACT_MATCHER_CONFIGURATION); - - adviceConfigurationEClass = createEClass(ADVICE_CONFIGURATION); - createEAttribute(adviceConfigurationEClass, ADVICE_CONFIGURATION__BEFORE); - createEAttribute(adviceConfigurationEClass, ADVICE_CONFIGURATION__AFTER); - - abstractAdviceBindingConfigurationEClass = createEClass(ABSTRACT_ADVICE_BINDING_CONFIGURATION); - createEReference(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET); - createEReference(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION); - createEReference(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION); - createEAttribute(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE); - - specializationTypeConfigurationEClass = createEClass(SPECIALIZATION_TYPE_CONFIGURATION); - createEAttribute(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID); - createEReference(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION); - createEReference(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION); - createEReference(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION); - - containerConfigurationEClass = createEClass(CONTAINER_CONFIGURATION); - createEReference(containerConfigurationEClass, CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION); - createEReference(containerConfigurationEClass, CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES); - - metamodelTypeConfigurationEClass = createEClass(METAMODEL_TYPE_CONFIGURATION); - createEReference(metamodelTypeConfigurationEClass, METAMODEL_TYPE_CONFIGURATION__ECLASS); - createEAttribute(metamodelTypeConfigurationEClass, METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME); - - abstractEditHelperAdviceConfigurationEClass = createEClass(ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION); - createEReference(abstractEditHelperAdviceConfigurationEClass, ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET); - - editHelperAdviceConfigurationEClass = createEClass(EDIT_HELPER_ADVICE_CONFIGURATION); - createEAttribute(editHelperAdviceConfigurationEClass, EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME); - - adviceBindingConfigurationEClass = createEClass(ADVICE_BINDING_CONFIGURATION); - createEAttribute(adviceBindingConfigurationEClass, ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME); - - matcherConfigurationEClass = createEClass(MATCHER_CONFIGURATION); - createEAttribute(matcherConfigurationEClass, MATCHER_CONFIGURATION__MATCHER_CLASS_NAME); - - identifiedConfigurationEClass = createEClass(IDENTIFIED_CONFIGURATION); - createEAttribute(identifiedConfigurationEClass, IDENTIFIED_CONFIGURATION__IDENTIFIER); - - namedConfigurationEClass = createEClass(NAMED_CONFIGURATION); - createEAttribute(namedConfigurationEClass, NAMED_CONFIGURATION__NAME); - - // Create enums - inheritanceKindEEnum = createEEnum(INHERITANCE_KIND); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - elementTypeSetConfigurationEClass.getESuperTypes().add(this.getConfigurationElement()); - elementTypeSetConfigurationEClass.getESuperTypes().add(this.getIdentifiedConfiguration()); - elementTypeSetConfigurationEClass.getESuperTypes().add(this.getNamedConfiguration()); - elementTypeConfigurationEClass.getESuperTypes().add(this.getConfigurationElement()); - elementTypeConfigurationEClass.getESuperTypes().add(this.getIdentifiedConfiguration()); - elementTypeConfigurationEClass.getESuperTypes().add(this.getNamedConfiguration()); - adviceConfigurationEClass.getESuperTypes().add(this.getConfigurationElement()); - abstractAdviceBindingConfigurationEClass.getESuperTypes().add(this.getAdviceConfiguration()); - abstractAdviceBindingConfigurationEClass.getESuperTypes().add(this.getIdentifiedConfiguration()); - specializationTypeConfigurationEClass.getESuperTypes().add(this.getElementTypeConfiguration()); - metamodelTypeConfigurationEClass.getESuperTypes().add(this.getElementTypeConfiguration()); - abstractEditHelperAdviceConfigurationEClass.getESuperTypes().add(this.getAdviceConfiguration()); - editHelperAdviceConfigurationEClass.getESuperTypes().add(this.getAbstractEditHelperAdviceConfiguration()); - adviceBindingConfigurationEClass.getESuperTypes().add(this.getAbstractAdviceBindingConfiguration()); - matcherConfigurationEClass.getESuperTypes().add(this.getAbstractMatcherConfiguration()); - - // Initialize classes, features, and operations; add parameters - initEClass(elementTypeSetConfigurationEClass, ElementTypeSetConfiguration.class, "ElementTypeSetConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getElementTypeSetConfiguration_ElementTypeConfigurations(), this.getElementTypeConfiguration(), null, "elementTypeConfigurations", null, 0, -1, ElementTypeSetConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getElementTypeSetConfiguration_AdviceBindingsConfigurations(), this.getAbstractAdviceBindingConfiguration(), null, "adviceBindingsConfigurations", null, 0, -1, ElementTypeSetConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getElementTypeSetConfiguration_MetamodelNsURI(), ecorePackage.getEString(), "metamodelNsURI", null, 1, 1, ElementTypeSetConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(elementTypeConfigurationEClass, ElementTypeConfiguration.class, "ElementTypeConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getElementTypeConfiguration_Hint(), ecorePackage.getEString(), "hint", "", 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getElementTypeConfiguration_Kind(), ecorePackage.getEString(), "kind", "org.eclipse.gmf.runtime.emf.type.core.IHintedType", 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getElementTypeConfiguration_IconEntry(), this.getIconEntry(), null, "iconEntry", null, 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(iconEntryEClass, IconEntry.class, "IconEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIconEntry_IconPath(), ecorePackage.getEString(), "iconPath", null, 0, 1, IconEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIconEntry_BundleId(), ecorePackage.getEString(), "bundleId", null, 0, 1, IconEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(configurationElementEClass, ConfigurationElement.class, "ConfigurationElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getConfigurationElement_Description(), ecorePackage.getEString(), "description", null, 0, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(abstractMatcherConfigurationEClass, AbstractMatcherConfiguration.class, "AbstractMatcherConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(adviceConfigurationEClass, AdviceConfiguration.class, "AdviceConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAdviceConfiguration_Before(), ecorePackage.getEString(), "before", null, 0, -1, AdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAdviceConfiguration_After(), ecorePackage.getEString(), "after", null, 0, -1, AdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(abstractAdviceBindingConfigurationEClass, AbstractAdviceBindingConfiguration.class, "AbstractAdviceBindingConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAbstractAdviceBindingConfiguration_Target(), this.getElementTypeConfiguration(), null, "target", null, 1, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAbstractAdviceBindingConfiguration_ContainerConfiguration(), this.getContainerConfiguration(), null, "containerConfiguration", null, 0, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAbstractAdviceBindingConfiguration_MatcherConfiguration(), this.getAbstractMatcherConfiguration(), null, "matcherConfiguration", null, 0, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAbstractAdviceBindingConfiguration_Inheritance(), this.getInheritanceKind(), "inheritance", null, 1, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(specializationTypeConfigurationEClass, SpecializationTypeConfiguration.class, "SpecializationTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSpecializationTypeConfiguration_SpecializedTypesID(), ecorePackage.getEString(), "specializedTypesID", null, 1, -1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(), this.getAbstractEditHelperAdviceConfiguration(), this.getAbstractEditHelperAdviceConfiguration_Target(), "editHelperAdviceConfiguration", null, 0, 1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSpecializationTypeConfiguration_ContainerConfiguration(), this.getContainerConfiguration(), null, "containerConfiguration", null, 0, 1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSpecializationTypeConfiguration_MatcherConfiguration(), this.getAbstractMatcherConfiguration(), null, "matcherConfiguration", null, 0, 1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containerConfigurationEClass, ContainerConfiguration.class, "ContainerConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getContainerConfiguration_ContainerMatcherConfiguration(), this.getAbstractMatcherConfiguration(), null, "containerMatcherConfiguration", null, 0, 1, ContainerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainerConfiguration_EContainmentFeatures(), ecorePackage.getEReference(), null, "eContainmentFeatures", null, 0, -1, ContainerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(metamodelTypeConfigurationEClass, MetamodelTypeConfiguration.class, "MetamodelTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMetamodelTypeConfiguration_EClass(), ecorePackage.getEClass(), null, "eClass", null, 0, 1, MetamodelTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMetamodelTypeConfiguration_EditHelperClassName(), ecorePackage.getEString(), "editHelperClassName", null, 0, 1, MetamodelTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(abstractEditHelperAdviceConfigurationEClass, AbstractEditHelperAdviceConfiguration.class, "AbstractEditHelperAdviceConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAbstractEditHelperAdviceConfiguration_Target(), this.getSpecializationTypeConfiguration(), this.getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(), "target", null, 1, 1, AbstractEditHelperAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(editHelperAdviceConfigurationEClass, EditHelperAdviceConfiguration.class, "EditHelperAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEditHelperAdviceConfiguration_EditHelperAdviceClassName(), ecorePackage.getEString(), "editHelperAdviceClassName", null, 1, 1, EditHelperAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(adviceBindingConfigurationEClass, AdviceBindingConfiguration.class, "AdviceBindingConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAdviceBindingConfiguration_EditHelperAdviceClassName(), ecorePackage.getEString(), "editHelperAdviceClassName", null, 1, 1, AdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(matcherConfigurationEClass, MatcherConfiguration.class, "MatcherConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMatcherConfiguration_MatcherClassName(), ecorePackage.getEString(), "matcherClassName", null, 1, 1, MatcherConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(identifiedConfigurationEClass, IdentifiedConfiguration.class, "IdentifiedConfiguration", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIdentifiedConfiguration_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, IdentifiedConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(namedConfigurationEClass, NamedConfiguration.class, "NamedConfiguration", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getNamedConfiguration_Name(), ecorePackage.getEString(), "name", null, 1, 1, NamedConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(inheritanceKindEEnum, InheritanceKind.class, "InheritanceKind"); - addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.NONE); - addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.ALL); - - // Create resource - createResource(eNS_URI); - } - -} //ElementtypesconfigurationsPackageImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/IconEntryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/IconEntryImpl.java deleted file mode 100644 index aa7cea95b1c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/IconEntryImpl.java +++ /dev/null @@ -1,227 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.MinimalEObjectImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; - -/** - * - * An implementation of the model object 'Icon Entry'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.IconEntryImpl#getIconPath Icon Path}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.IconEntryImpl#getBundleId Bundle Id}
  • - *
- * - * @generated - */ -public class IconEntryImpl extends MinimalEObjectImpl.Container implements IconEntry { - /** - * The default value of the '{@link #getIconPath() Icon Path}' attribute. - * - * - * @see #getIconPath() - * @generated - * @ordered - */ - protected static final String ICON_PATH_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIconPath() Icon Path}' attribute. - * - * - * @see #getIconPath() - * @generated - * @ordered - */ - protected String iconPath = ICON_PATH_EDEFAULT; - - /** - * The default value of the '{@link #getBundleId() Bundle Id}' attribute. - * - * - * @see #getBundleId() - * @generated - * @ordered - */ - protected static final String BUNDLE_ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getBundleId() Bundle Id}' attribute. - * - * - * @see #getBundleId() - * @generated - * @ordered - */ - protected String bundleId = BUNDLE_ID_EDEFAULT; - - /** - * - * - * @generated - */ - protected IconEntryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.ICON_ENTRY; - } - - /** - * - * - * @generated - */ - public String getIconPath() { - return iconPath; - } - - /** - * - * - * @generated - */ - public void setIconPath(String newIconPath) { - String oldIconPath = iconPath; - iconPath = newIconPath; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ICON_ENTRY__ICON_PATH, oldIconPath, iconPath)); - } - - /** - * - * - * @generated - */ - public String getBundleId() { - return bundleId; - } - - /** - * - * - * @generated - */ - public void setBundleId(String newBundleId) { - String oldBundleId = bundleId; - bundleId = newBundleId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.ICON_ENTRY__BUNDLE_ID, oldBundleId, bundleId)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ICON_ENTRY__ICON_PATH: - return getIconPath(); - case ElementtypesconfigurationsPackage.ICON_ENTRY__BUNDLE_ID: - return getBundleId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ICON_ENTRY__ICON_PATH: - setIconPath((String)newValue); - return; - case ElementtypesconfigurationsPackage.ICON_ENTRY__BUNDLE_ID: - setBundleId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ICON_ENTRY__ICON_PATH: - setIconPath(ICON_PATH_EDEFAULT); - return; - case ElementtypesconfigurationsPackage.ICON_ENTRY__BUNDLE_ID: - setBundleId(BUNDLE_ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.ICON_ENTRY__ICON_PATH: - return ICON_PATH_EDEFAULT == null ? iconPath != null : !ICON_PATH_EDEFAULT.equals(iconPath); - case ElementtypesconfigurationsPackage.ICON_ENTRY__BUNDLE_ID: - return BUNDLE_ID_EDEFAULT == null ? bundleId != null : !BUNDLE_ID_EDEFAULT.equals(bundleId); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (iconPath: "); - result.append(iconPath); - result.append(", bundleId: "); - result.append(bundleId); - result.append(')'); - return result.toString(); - } - -} //IconEntryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MatcherConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MatcherConfigurationImpl.java deleted file mode 100644 index 45b1deef37d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MatcherConfigurationImpl.java +++ /dev/null @@ -1,172 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration; - -/** - * - * An implementation of the model object 'Matcher Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MatcherConfigurationImpl#getMatcherClassName Matcher Class Name}
  • - *
- * - * @generated - */ -public class MatcherConfigurationImpl extends AbstractMatcherConfigurationImpl implements MatcherConfiguration { - /** - * The default value of the '{@link #getMatcherClassName() Matcher Class Name}' attribute. - * - * - * @see #getMatcherClassName() - * @generated - * @ordered - */ - protected static final String MATCHER_CLASS_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMatcherClassName() Matcher Class Name}' attribute. - * - * - * @see #getMatcherClassName() - * @generated - * @ordered - */ - protected String matcherClassName = MATCHER_CLASS_NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected MatcherConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.MATCHER_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getMatcherClassName() { - return matcherClassName; - } - - /** - * - * - * @generated - */ - public void setMatcherClassName(String newMatcherClassName) { - String oldMatcherClassName = matcherClassName; - matcherClassName = newMatcherClassName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME, oldMatcherClassName, matcherClassName)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: - return getMatcherClassName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: - setMatcherClassName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: - setMatcherClassName(MATCHER_CLASS_NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: - return MATCHER_CLASS_NAME_EDEFAULT == null ? matcherClassName != null : !MATCHER_CLASS_NAME_EDEFAULT.equals(matcherClassName); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (matcherClassName: "); - result.append(matcherClassName); - result.append(')'); - return result.toString(); - } - -} //MatcherConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MetamodelTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MetamodelTypeConfigurationImpl.java deleted file mode 100644 index 56f9707dfb1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/MetamodelTypeConfigurationImpl.java +++ /dev/null @@ -1,233 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration; - -/** - * - * An implementation of the model object 'Metamodel Type Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MetamodelTypeConfigurationImpl#getEClass EClass}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.MetamodelTypeConfigurationImpl#getEditHelperClassName Edit Helper Class Name}
  • - *
- * - * @generated - */ -public class MetamodelTypeConfigurationImpl extends ElementTypeConfigurationImpl implements MetamodelTypeConfiguration { - /** - * The cached value of the '{@link #getEClass() EClass}' reference. - * - * - * @see #getEClass() - * @generated - * @ordered - */ - protected EClass eClass; - - /** - * The default value of the '{@link #getEditHelperClassName() Edit Helper Class Name}' attribute. - * - * - * @see #getEditHelperClassName() - * @generated - * @ordered - */ - protected static final String EDIT_HELPER_CLASS_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEditHelperClassName() Edit Helper Class Name}' attribute. - * - * - * @see #getEditHelperClassName() - * @generated - * @ordered - */ - protected String editHelperClassName = EDIT_HELPER_CLASS_NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected MetamodelTypeConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.METAMODEL_TYPE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EClass getEClass() { - if (eClass != null && eClass.eIsProxy()) { - InternalEObject oldEClass = (InternalEObject)eClass; - eClass = (EClass)eResolveProxy(oldEClass); - if (eClass != oldEClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS, oldEClass, eClass)); - } - } - return eClass; - } - - /** - * - * - * @generated - */ - public EClass basicGetEClass() { - return eClass; - } - - /** - * - * - * @generated - */ - public void setEClass(EClass newEClass) { - EClass oldEClass = eClass; - eClass = newEClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS, oldEClass, eClass)); - } - - /** - * - * - * @generated - */ - public String getEditHelperClassName() { - return editHelperClassName; - } - - /** - * - * - * @generated - */ - public void setEditHelperClassName(String newEditHelperClassName) { - String oldEditHelperClassName = editHelperClassName; - editHelperClassName = newEditHelperClassName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME, oldEditHelperClassName, editHelperClassName)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: - if (resolve) return getEClass(); - return basicGetEClass(); - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: - return getEditHelperClassName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: - setEClass((EClass)newValue); - return; - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: - setEditHelperClassName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: - setEClass((EClass)null); - return; - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: - setEditHelperClassName(EDIT_HELPER_CLASS_NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: - return eClass != null; - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: - return EDIT_HELPER_CLASS_NAME_EDEFAULT == null ? editHelperClassName != null : !EDIT_HELPER_CLASS_NAME_EDEFAULT.equals(editHelperClassName); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (editHelperClassName: "); - result.append(editHelperClassName); - result.append(')'); - return result.toString(); - } - -} //MetamodelTypeConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/SpecializationTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/SpecializationTypeConfigurationImpl.java deleted file mode 100644 index 509a2eb209e..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/SpecializationTypeConfigurationImpl.java +++ /dev/null @@ -1,392 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.EDataTypeUniqueEList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -/** - * - * An implementation of the model object 'Specialization Type Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl#getSpecializedTypesID Specialized Types ID}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl#getContainerConfiguration Container Configuration}
  • - *
  • {@link org.eclipse.papyrus.infra.elementtypesconfigurations.impl.SpecializationTypeConfigurationImpl#getMatcherConfiguration Matcher Configuration}
  • - *
- * - * @generated - */ -public class SpecializationTypeConfigurationImpl extends ElementTypeConfigurationImpl implements SpecializationTypeConfiguration { - /** - * The cached value of the '{@link #getSpecializedTypesID() Specialized Types ID}' attribute list. - * - * - * @see #getSpecializedTypesID() - * @generated - * @ordered - */ - protected EList specializedTypesID; - - /** - * The cached value of the '{@link #getEditHelperAdviceConfiguration() Edit Helper Advice Configuration}' containment reference. - * - * - * @see #getEditHelperAdviceConfiguration() - * @generated - * @ordered - */ - protected AbstractEditHelperAdviceConfiguration editHelperAdviceConfiguration; - - /** - * The cached value of the '{@link #getContainerConfiguration() Container Configuration}' containment reference. - * - * - * @see #getContainerConfiguration() - * @generated - * @ordered - */ - protected ContainerConfiguration containerConfiguration; - - /** - * The cached value of the '{@link #getMatcherConfiguration() Matcher Configuration}' containment reference. - * - * - * @see #getMatcherConfiguration() - * @generated - * @ordered - */ - protected AbstractMatcherConfiguration matcherConfiguration; - - /** - * - * - * @generated - */ - protected SpecializationTypeConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getSpecializedTypesID() { - if (specializedTypesID == null) { - specializedTypesID = new EDataTypeUniqueEList(String.class, this, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID); - } - return specializedTypesID; - } - - /** - * - * - * @generated - */ - public AbstractEditHelperAdviceConfiguration getEditHelperAdviceConfiguration() { - return editHelperAdviceConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration newEditHelperAdviceConfiguration, NotificationChain msgs) { - AbstractEditHelperAdviceConfiguration oldEditHelperAdviceConfiguration = editHelperAdviceConfiguration; - editHelperAdviceConfiguration = newEditHelperAdviceConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, oldEditHelperAdviceConfiguration, newEditHelperAdviceConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration newEditHelperAdviceConfiguration) { - if (newEditHelperAdviceConfiguration != editHelperAdviceConfiguration) { - NotificationChain msgs = null; - if (editHelperAdviceConfiguration != null) - msgs = ((InternalEObject)editHelperAdviceConfiguration).eInverseRemove(this, ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, AbstractEditHelperAdviceConfiguration.class, msgs); - if (newEditHelperAdviceConfiguration != null) - msgs = ((InternalEObject)newEditHelperAdviceConfiguration).eInverseAdd(this, ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, AbstractEditHelperAdviceConfiguration.class, msgs); - msgs = basicSetEditHelperAdviceConfiguration(newEditHelperAdviceConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, newEditHelperAdviceConfiguration, newEditHelperAdviceConfiguration)); - } - - /** - * - * - * @generated - */ - public ContainerConfiguration getContainerConfiguration() { - return containerConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetContainerConfiguration(ContainerConfiguration newContainerConfiguration, NotificationChain msgs) { - ContainerConfiguration oldContainerConfiguration = containerConfiguration; - containerConfiguration = newContainerConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, oldContainerConfiguration, newContainerConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setContainerConfiguration(ContainerConfiguration newContainerConfiguration) { - if (newContainerConfiguration != containerConfiguration) { - NotificationChain msgs = null; - if (containerConfiguration != null) - msgs = ((InternalEObject)containerConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); - if (newContainerConfiguration != null) - msgs = ((InternalEObject)newContainerConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); - msgs = basicSetContainerConfiguration(newContainerConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, newContainerConfiguration, newContainerConfiguration)); - } - - /** - * - * - * @generated - */ - public AbstractMatcherConfiguration getMatcherConfiguration() { - return matcherConfiguration; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration, NotificationChain msgs) { - AbstractMatcherConfiguration oldMatcherConfiguration = matcherConfiguration; - matcherConfiguration = newMatcherConfiguration; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, oldMatcherConfiguration, newMatcherConfiguration); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration) { - if (newMatcherConfiguration != matcherConfiguration) { - NotificationChain msgs = null; - if (matcherConfiguration != null) - msgs = ((InternalEObject)matcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); - if (newMatcherConfiguration != null) - msgs = ((InternalEObject)newMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); - msgs = basicSetMatcherConfiguration(newMatcherConfiguration, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, newMatcherConfiguration, newMatcherConfiguration)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - if (editHelperAdviceConfiguration != null) - msgs = ((InternalEObject)editHelperAdviceConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, null, msgs); - return basicSetEditHelperAdviceConfiguration((AbstractEditHelperAdviceConfiguration)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - return basicSetEditHelperAdviceConfiguration(null, msgs); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: - return basicSetContainerConfiguration(null, msgs); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: - return basicSetMatcherConfiguration(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: - return getSpecializedTypesID(); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - return getEditHelperAdviceConfiguration(); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: - return getContainerConfiguration(); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: - return getMatcherConfiguration(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: - getSpecializedTypesID().clear(); - getSpecializedTypesID().addAll((Collection)newValue); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - setEditHelperAdviceConfiguration((AbstractEditHelperAdviceConfiguration)newValue); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: - setContainerConfiguration((ContainerConfiguration)newValue); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: - setMatcherConfiguration((AbstractMatcherConfiguration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: - getSpecializedTypesID().clear(); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - setEditHelperAdviceConfiguration((AbstractEditHelperAdviceConfiguration)null); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: - setContainerConfiguration((ContainerConfiguration)null); - return; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: - setMatcherConfiguration((AbstractMatcherConfiguration)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: - return specializedTypesID != null && !specializedTypesID.isEmpty(); - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: - return editHelperAdviceConfiguration != null; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: - return containerConfiguration != null; - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: - return matcherConfiguration != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (specializedTypesID: "); - result.append(specializedTypesID); - result.append(')'); - return result.toString(); - } - -} //SpecializationTypeConfigurationImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsAdapterFactory.java deleted file mode 100644 index fb061dc40b8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsAdapterFactory.java +++ /dev/null @@ -1,400 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage - * @generated - */ -public class ElementtypesconfigurationsAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static ElementtypesconfigurationsPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public ElementtypesconfigurationsAdapterFactory() { - if (modelPackage == null) { - modelPackage = ElementtypesconfigurationsPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected ElementtypesconfigurationsSwitch modelSwitch = - new ElementtypesconfigurationsSwitch() { - @Override - public Adapter caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - return createElementTypeSetConfigurationAdapter(); - } - @Override - public Adapter caseElementTypeConfiguration(ElementTypeConfiguration object) { - return createElementTypeConfigurationAdapter(); - } - @Override - public Adapter caseIconEntry(IconEntry object) { - return createIconEntryAdapter(); - } - @Override - public Adapter caseConfigurationElement(ConfigurationElement object) { - return createConfigurationElementAdapter(); - } - @Override - public Adapter caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { - return createAbstractMatcherConfigurationAdapter(); - } - @Override - public Adapter caseAdviceConfiguration(AdviceConfiguration object) { - return createAdviceConfigurationAdapter(); - } - @Override - public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return createAbstractAdviceBindingConfigurationAdapter(); - } - @Override - public Adapter caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { - return createSpecializationTypeConfigurationAdapter(); - } - @Override - public Adapter caseContainerConfiguration(ContainerConfiguration object) { - return createContainerConfigurationAdapter(); - } - @Override - public Adapter caseMetamodelTypeConfiguration(MetamodelTypeConfiguration object) { - return createMetamodelTypeConfigurationAdapter(); - } - @Override - public Adapter caseAbstractEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration object) { - return createAbstractEditHelperAdviceConfigurationAdapter(); - } - @Override - public Adapter caseEditHelperAdviceConfiguration(EditHelperAdviceConfiguration object) { - return createEditHelperAdviceConfigurationAdapter(); - } - @Override - public Adapter caseAdviceBindingConfiguration(AdviceBindingConfiguration object) { - return createAdviceBindingConfigurationAdapter(); - } - @Override - public Adapter caseMatcherConfiguration(MatcherConfiguration object) { - return createMatcherConfigurationAdapter(); - } - @Override - public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return createIdentifiedConfigurationAdapter(); - } - @Override - public Adapter caseNamedConfiguration(NamedConfiguration object) { - return createNamedConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.elementtypesconfigurations.ElementTypeSetConfiguration Element Type Set Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration - * @generated - */ - public Adapter createElementTypeSetConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration Element Type Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration - * @generated - */ - public Adapter createElementTypeConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry Icon Entry}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry - * @generated - */ - public Adapter createIconEntryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - public Adapter createConfigurationElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration Abstract Matcher Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration - * @generated - */ - public Adapter createAbstractMatcherConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration - * @generated - */ - public Adapter createAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration - * @generated - */ - public Adapter createAbstractAdviceBindingConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration Specialization Type Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration - * @generated - */ - public Adapter createSpecializationTypeConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration Container Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration - * @generated - */ - public Adapter createContainerConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration Metamodel Type Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration - * @generated - */ - public Adapter createMetamodelTypeConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration Abstract Edit Helper Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration - * @generated - */ - public Adapter createAbstractEditHelperAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration Edit Helper Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration - * @generated - */ - public Adapter createEditHelperAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration Advice Binding Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration - * @generated - */ - public Adapter createAdviceBindingConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration Matcher Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration - * @generated - */ - public Adapter createMatcherConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - public Adapter createIdentifiedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration Named Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.NamedConfiguration - * @generated - */ - public Adapter createNamedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //ElementtypesconfigurationsAdapterFactory diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceFactoryImpl.java deleted file mode 100644 index 5c62811f637..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsResourceImpl - * @generated - */ -public class ElementtypesconfigurationsResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public ElementtypesconfigurationsResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new ElementtypesconfigurationsResourceImpl(uri); - return result; - } - -} //ElementtypesconfigurationsResourceFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceImpl.java deleted file mode 100644 index 2b6fa588b26..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsResourceFactoryImpl - * @generated - */ -public class ElementtypesconfigurationsResourceImpl extends XMIResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public ElementtypesconfigurationsResourceImpl(URI uri) { - super(uri); - } - -} //ElementtypesconfigurationsResourceImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsSwitch.java deleted file mode 100644 index 74edf0afdc4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src-gen/org/eclipse/papyrus/infra/elementtypesconfigurations/util/ElementtypesconfigurationsSwitch.java +++ /dev/null @@ -1,463 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.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.elementtypesconfigurations.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage - * @generated - */ -public class ElementtypesconfigurationsSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static ElementtypesconfigurationsPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public ElementtypesconfigurationsSwitch() { - if (modelPackage == null) { - modelPackage = ElementtypesconfigurationsPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION: { - ElementTypeSetConfiguration elementTypeSetConfiguration = (ElementTypeSetConfiguration)theEObject; - T result = caseElementTypeSetConfiguration(elementTypeSetConfiguration); - if (result == null) result = caseConfigurationElement(elementTypeSetConfiguration); - if (result == null) result = caseIdentifiedConfiguration(elementTypeSetConfiguration); - if (result == null) result = caseNamedConfiguration(elementTypeSetConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ELEMENT_TYPE_CONFIGURATION: { - ElementTypeConfiguration elementTypeConfiguration = (ElementTypeConfiguration)theEObject; - T result = caseElementTypeConfiguration(elementTypeConfiguration); - if (result == null) result = caseConfigurationElement(elementTypeConfiguration); - if (result == null) result = caseIdentifiedConfiguration(elementTypeConfiguration); - if (result == null) result = caseNamedConfiguration(elementTypeConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ICON_ENTRY: { - IconEntry iconEntry = (IconEntry)theEObject; - T result = caseIconEntry(iconEntry); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.CONFIGURATION_ELEMENT: { - ConfigurationElement configurationElement = (ConfigurationElement)theEObject; - T result = caseConfigurationElement(configurationElement); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION: { - AbstractMatcherConfiguration abstractMatcherConfiguration = (AbstractMatcherConfiguration)theEObject; - T result = caseAbstractMatcherConfiguration(abstractMatcherConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ADVICE_CONFIGURATION: { - AdviceConfiguration adviceConfiguration = (AdviceConfiguration)theEObject; - T result = caseAdviceConfiguration(adviceConfiguration); - if (result == null) result = caseConfigurationElement(adviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION: { - AbstractAdviceBindingConfiguration abstractAdviceBindingConfiguration = (AbstractAdviceBindingConfiguration)theEObject; - T result = caseAbstractAdviceBindingConfiguration(abstractAdviceBindingConfiguration); - if (result == null) result = caseAdviceConfiguration(abstractAdviceBindingConfiguration); - if (result == null) result = caseIdentifiedConfiguration(abstractAdviceBindingConfiguration); - if (result == null) result = caseConfigurationElement(abstractAdviceBindingConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION: { - SpecializationTypeConfiguration specializationTypeConfiguration = (SpecializationTypeConfiguration)theEObject; - T result = caseSpecializationTypeConfiguration(specializationTypeConfiguration); - if (result == null) result = caseElementTypeConfiguration(specializationTypeConfiguration); - if (result == null) result = caseConfigurationElement(specializationTypeConfiguration); - if (result == null) result = caseIdentifiedConfiguration(specializationTypeConfiguration); - if (result == null) result = caseNamedConfiguration(specializationTypeConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.CONTAINER_CONFIGURATION: { - ContainerConfiguration containerConfiguration = (ContainerConfiguration)theEObject; - T result = caseContainerConfiguration(containerConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.METAMODEL_TYPE_CONFIGURATION: { - MetamodelTypeConfiguration metamodelTypeConfiguration = (MetamodelTypeConfiguration)theEObject; - T result = caseMetamodelTypeConfiguration(metamodelTypeConfiguration); - if (result == null) result = caseElementTypeConfiguration(metamodelTypeConfiguration); - if (result == null) result = caseConfigurationElement(metamodelTypeConfiguration); - if (result == null) result = caseIdentifiedConfiguration(metamodelTypeConfiguration); - if (result == null) result = caseNamedConfiguration(metamodelTypeConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION: { - AbstractEditHelperAdviceConfiguration abstractEditHelperAdviceConfiguration = (AbstractEditHelperAdviceConfiguration)theEObject; - T result = caseAbstractEditHelperAdviceConfiguration(abstractEditHelperAdviceConfiguration); - if (result == null) result = caseAdviceConfiguration(abstractEditHelperAdviceConfiguration); - if (result == null) result = caseConfigurationElement(abstractEditHelperAdviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION: { - EditHelperAdviceConfiguration editHelperAdviceConfiguration = (EditHelperAdviceConfiguration)theEObject; - T result = caseEditHelperAdviceConfiguration(editHelperAdviceConfiguration); - if (result == null) result = caseAbstractEditHelperAdviceConfiguration(editHelperAdviceConfiguration); - if (result == null) result = caseAdviceConfiguration(editHelperAdviceConfiguration); - if (result == null) result = caseConfigurationElement(editHelperAdviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.ADVICE_BINDING_CONFIGURATION: { - AdviceBindingConfiguration adviceBindingConfiguration = (AdviceBindingConfiguration)theEObject; - T result = caseAdviceBindingConfiguration(adviceBindingConfiguration); - if (result == null) result = caseAbstractAdviceBindingConfiguration(adviceBindingConfiguration); - if (result == null) result = caseAdviceConfiguration(adviceBindingConfiguration); - if (result == null) result = caseIdentifiedConfiguration(adviceBindingConfiguration); - if (result == null) result = caseConfigurationElement(adviceBindingConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.MATCHER_CONFIGURATION: { - MatcherConfiguration matcherConfiguration = (MatcherConfiguration)theEObject; - T result = caseMatcherConfiguration(matcherConfiguration); - if (result == null) result = caseAbstractMatcherConfiguration(matcherConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.IDENTIFIED_CONFIGURATION: { - IdentifiedConfiguration identifiedConfiguration = (IdentifiedConfiguration)theEObject; - T result = caseIdentifiedConfiguration(identifiedConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ElementtypesconfigurationsPackage.NAMED_CONFIGURATION: { - NamedConfiguration namedConfiguration = (NamedConfiguration)theEObject; - T result = caseNamedConfiguration(namedConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Element Type Set Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Element Type Set Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Element Type Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Element Type Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseElementTypeConfiguration(ElementTypeConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Icon Entry'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Icon Entry'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIconEntry(IconEntry object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Configuration Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Configuration Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConfigurationElement(ConfigurationElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdviceConfiguration(AdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Specialization Type Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Specialization Type Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Container Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Container Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseContainerConfiguration(ContainerConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Metamodel Type Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Metamodel Type Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMetamodelTypeConfiguration(MetamodelTypeConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Edit Helper Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Edit Helper Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Edit Helper Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Edit Helper Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEditHelperAdviceConfiguration(EditHelperAdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Advice Binding Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Advice Binding Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdviceBindingConfiguration(AdviceBindingConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Matcher Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Matcher Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMatcherConfiguration(MatcherConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identified Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Identified Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Named Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Named Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNamedConfiguration(NamedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //ElementtypesconfigurationsSwitch diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/Activator.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/Activator.java deleted file mode 100644 index 6c24940b344..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/Activator.java +++ /dev/null @@ -1,62 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.core.runtime.Plugin; -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends Plugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.elementtypesconfigurations"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** Logging helper */ - public static LogHelper log; - - /** - * The constructor - */ - public Activator() { - } - - @Override - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - log = new LogHelper(this); - } - - @Override - public void stop(BundleContext context) throws Exception { - log = null; - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypesConfigurationsRegistryService.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypesConfigurationsRegistryService.java deleted file mode 100644 index 40f3b6ed5f9..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ElementTypesConfigurationsRegistryService.java +++ /dev/null @@ -1,49 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.papyrus.infra.core.services.IService; -import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.core.services.ServicesRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; - -/** - * Service to register elementTypes configurations - */ -public class ElementTypesConfigurationsRegistryService implements IService { - - /** - * {@inheritDoc} - */ - public void init(ServicesRegistry servicesRegistry) throws ServiceException { - } - - /** - * {@inheritDoc} - */ - public void startService() throws ServiceException { - // register elements in elementType registry - ElementTypeSetConfigurationRegistry.getInstance(); - } - - /** - * {@inheritDoc} - */ - public void disposeService() throws ServiceException { - // Do nothing because registered elementtypes may be used somewhere else. - } - - public ElementTypeSetConfigurationRegistry getElementTypeSetRegistry() { - return ElementTypeSetConfigurationRegistry.getInstance(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredContainerDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredContainerDescriptor.java deleted file mode 100644 index f71c8b3b57d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredContainerDescriptor.java +++ /dev/null @@ -1,24 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; - -/** - * Descriptor for the configurable container descriptor - */ -public interface IConfiguredContainerDescriptor extends IContainerDescriptor { - - void init(T containerConfiguration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredEditHelperAdviceDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredEditHelperAdviceDescriptor.java deleted file mode 100644 index 28ecdea1668..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredEditHelperAdviceDescriptor.java +++ /dev/null @@ -1,21 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 459174 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; - -public interface IConfiguredEditHelperAdviceDescriptor extends IAdviceBindingDescriptor { - - public void init(T configuration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredHintedElementType.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredHintedElementType.java deleted file mode 100644 index 3fdc760a6e2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/IConfiguredHintedElementType.java +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations; - -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; - - -public interface IConfiguredHintedElementType extends IHintedType { - - ElementTypeConfiguration getConfiguration(); - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IAdviceConfigurationTypeExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IAdviceConfigurationTypeExtensionPoint.java deleted file mode 100644 index 8db7d65190f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IAdviceConfigurationTypeExtensionPoint.java +++ /dev/null @@ -1,25 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -public interface IAdviceConfigurationTypeExtensionPoint { - - /** ID of the extension point */ - public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".adviceConfigurationType"; - - public static final String FACTORY_CLASS = "factoryClass"; - - public static final String CONFIGURATION_CLASS = "configurationClass"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IContainerConfigurationTypeExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IContainerConfigurationTypeExtensionPoint.java deleted file mode 100644 index 91149c9d2e2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IContainerConfigurationTypeExtensionPoint.java +++ /dev/null @@ -1,25 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -public interface IContainerConfigurationTypeExtensionPoint { - - /** ID of the extension point */ - public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".containerConfigurationType"; - - public static final String FACTORY_CLASS = "factoryClass"; - - public static final String CONFIGURATION_CLASS = "configurationClass"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeConfigurationTypeExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeConfigurationTypeExtensionPoint.java deleted file mode 100644 index 63b1ae9e94b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeConfigurationTypeExtensionPoint.java +++ /dev/null @@ -1,30 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -/** - * Constants for the extension point elementTypeConfigurationType - */ -public interface IElementTypeConfigurationTypeExtensionPoint { - - /** ID of the extension point */ - public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".elementTypeConfigurationType"; - - /** attribute factoryClass */ - public static final String FACTORY_CLASS = "factoryClass"; - - /** attribute configurationClass */ - public static final String CONFIGURATION_CLASS = "configurationClass"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeSetExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeSetExtensionPoint.java deleted file mode 100644 index c0461c0515b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IElementTypeSetExtensionPoint.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -public interface IElementTypeSetExtensionPoint { - - /** ID of the extension point */ - public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".elementTypeSetConfiguration"; - - /** attribute: path to the model file in the bundle */ - public static final String PATH = "path"; - - /** attribute: identifier of the clientContext in which to register the elementTypeConfigurationSet */ - public static final String CLIENT_CONTEXT_ID = "clientContextID"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IMatcherConfigurationTypeExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IMatcherConfigurationTypeExtensionPoint.java deleted file mode 100644 index c48aa96a6b6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IMatcherConfigurationTypeExtensionPoint.java +++ /dev/null @@ -1,30 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -/** - * Constants for the extension point matcherConfigurationType - */ -public interface IMatcherConfigurationTypeExtensionPoint { - - /** ID of the extension point */ - public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".matcherConfigurationType"; - - /** attribute factoryClass */ - public static final String FACTORY_CLASS = "factoryClass"; - - /** attribute configurationClass */ - public static final String CONFIGURATION_CLASS = "configurationClass"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IUserElementTypeDefinitionsExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IUserElementTypeDefinitionsExtensionPoint.java deleted file mode 100644 index 971d9e11bc1..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/extensionpoints/IUserElementTypeDefinitionsExtensionPoint.java +++ /dev/null @@ -1,27 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -public interface IUserElementTypeDefinitionsExtensionPoint { - - /** ID of the extension point */ - String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".userDefinitions"; - - /** element: provider of user definitions */ - String E_PROVIDER = "provider"; - - /** attribute: class implementing the provider */ - String A_CLASS = "class"; -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IContainerFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IContainerFactory.java deleted file mode 100644 index eda587f996f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IContainerFactory.java +++ /dev/null @@ -1,21 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredContainerDescriptor; - -public interface IContainerFactory { - - public IConfiguredContainerDescriptor createContainerDescriptor(T configuration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IEditHelperAdviceFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IEditHelperAdviceFactory.java deleted file mode 100644 index 5e4f78d574b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IEditHelperAdviceFactory.java +++ /dev/null @@ -1,21 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredEditHelperAdviceDescriptor; - -public interface IEditHelperAdviceFactory { - - public IConfiguredEditHelperAdviceDescriptor createEditHelperAdviceDescriptor(T configuration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IElementTypeConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IElementTypeConfigurationFactory.java deleted file mode 100644 index c23440749bd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IElementTypeConfigurationFactory.java +++ /dev/null @@ -1,21 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories; - -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; - -public interface IElementTypeConfigurationFactory { - - IHintedType createElementType(T elementTypeConfiguration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IMatcherFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IMatcherFactory.java deleted file mode 100644 index 91ef55ac3cc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/IMatcherFactory.java +++ /dev/null @@ -1,21 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories; - -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; - -public interface IMatcherFactory { - - public IElementMatcher createElementMatcher(T configuration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceBindingFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceBindingFactory.java deleted file mode 100644 index 200be497ffd..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceBindingFactory.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ContainerConfigurationTypeRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.MatcherConfigurationTypeRegistry; - -public abstract class AbstractAdviceBindingFactory extends AbstractAdviceFactory { - - @Override - protected String getTypeId(T adviceConfiguration) { - return adviceConfiguration.getTarget().getIdentifier(); - } - - @Override - protected IContainerDescriptor getContainerDescriptor(T adviceConfiguration) { - ContainerConfiguration containerConfiguration = adviceConfiguration.getContainerConfiguration(); - if (containerConfiguration == null) { - return null; - } - IContainerDescriptor containerDescriptor = ContainerConfigurationTypeRegistry.getInstance().getContainerDescriptor(containerConfiguration); - return containerDescriptor; - } - - @Override - protected IElementMatcher getMatcher(T adviceConfiguration) { - AbstractMatcherConfiguration matcherConfiguration = adviceConfiguration.getMatcherConfiguration(); - if (matcherConfiguration == null) { - return null; - } - IElementMatcher matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); - return matcher; - } - - @Override - protected AdviceBindingInheritance getInheritance(T adviceConfiguration) { - return AdviceBindingInheritance.getAdviceBindingInheritance(adviceConfiguration.getInheritance().getName()); - } - - @Override - protected String getId(T adviceConfiguration) { - return adviceConfiguration.getIdentifier(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceFactory.java deleted file mode 100644 index 082c916d4fb..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractAdviceFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 459174 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredEditHelperAdviceDescriptor; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IEditHelperAdviceFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredEditHelperAdviceDescriptor; - -public abstract class AbstractAdviceFactory implements IEditHelperAdviceFactory { - - @Override - public IConfiguredEditHelperAdviceDescriptor createEditHelperAdviceDescriptor(T adviceConfiguration) { - return new ConfiguredEditHelperAdviceDescriptor(getId(adviceConfiguration), getTypeId(adviceConfiguration), getMatcher(adviceConfiguration), getContainerDescriptor(adviceConfiguration), getEditHelperAdvice(adviceConfiguration), - getInheritance(adviceConfiguration)); - } - - abstract protected String getId(T adviceConfiguration); - - abstract protected String getTypeId(T adviceConfiguration); - - abstract protected IElementMatcher getMatcher(T adviceConfiguration); - - abstract protected IContainerDescriptor getContainerDescriptor(T adviceConfiguration); - - abstract protected IEditHelperAdvice getEditHelperAdvice(T adviceConfiguration); - - abstract protected AdviceBindingInheritance getInheritance(T adviceConfiguration); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractEditHelperAdviceFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractEditHelperAdviceFactory.java deleted file mode 100644 index 7df9c5612a8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractEditHelperAdviceFactory.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ContainerConfigurationTypeRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.MatcherConfigurationTypeRegistry; - -public abstract class AbstractEditHelperAdviceFactory extends AbstractAdviceFactory { - - @Override - protected String getTypeId(T adviceConfiguration) { - return adviceConfiguration.getTarget().getIdentifier(); - } - - @Override - protected AdviceBindingInheritance getInheritance(T adviceConfiguration) { - return AdviceBindingInheritance.ALL; - } - - @Override - protected IContainerDescriptor getContainerDescriptor(T adviceConfiguration) { - ContainerConfiguration containerConfiguration = ((SpecializationTypeConfiguration) adviceConfiguration.eContainer()).getContainerConfiguration(); - if (containerConfiguration == null) { - return null; - } - IContainerDescriptor containerDescriptor = ContainerConfigurationTypeRegistry.getInstance().getContainerDescriptor(containerConfiguration); - return containerDescriptor; - } - - @Override - protected IElementMatcher getMatcher(T adviceConfiguration) { - AbstractMatcherConfiguration matcherConfiguration = ((SpecializationTypeConfiguration) adviceConfiguration.eContainer()).getMatcherConfiguration(); - if (matcherConfiguration == null) { - return null; - } - IElementMatcher matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); - return matcher; - } - - @Override - protected String getId(T adviceConfiguration) { - return adviceConfiguration.getTarget().getIdentifier(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractElementTypeConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractElementTypeConfigurationFactory.java deleted file mode 100644 index 1f318799096..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/AbstractElementTypeConfigurationFactory.java +++ /dev/null @@ -1,70 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import java.net.MalformedURLException; -import java.net.URL; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IElementTypeConfigurationFactory; -import org.osgi.framework.Bundle; - -public abstract class AbstractElementTypeConfigurationFactory implements IElementTypeConfigurationFactory { - - protected String getDisplayName(T elementTypeConfiguration) { - return elementTypeConfiguration.getName(); - } - - protected URL getIconURL(T elementTypeConfiguration) { - // icon associated to the elementType (GUI) - IconEntry entry = elementTypeConfiguration.getIconEntry(); - URL iconURL = null; - if(entry != null) { - iconURL = getURLFromEntry(entry); - } - return iconURL; - } - - protected String getID(T elementTypeConfiguration) { - return elementTypeConfiguration.getIdentifier(); - } - - /** - * Returns the semantic hint for the elementType from the given configuration - */ - protected String getSemanticHint(T elementTypeConfiguration) { - return elementTypeConfiguration.getHint(); - } - - /** - * @param entry - * @return - */ - protected URL getURLFromEntry(IconEntry entry) { - Bundle bundle = Platform.getBundle(entry.getBundleId()); - if(bundle == null) { - return null; - } - URL result = bundle.getEntry(entry.getIconPath()); - if(result == null) { - try { - result = new URL(entry.getIconPath()); - } catch (MalformedURLException e) { - result = null; - } - } - return result; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultAdviceBindingFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultAdviceBindingFactory.java deleted file mode 100644 index c20d3697134..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultAdviceBindingFactory.java +++ /dev/null @@ -1,33 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceBindingConfiguration; -import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; - -public class DefaultAdviceBindingFactory extends AbstractAdviceBindingFactory { - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractAdviceFactory#getEditHelperAdvice(org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration) - * - * @param adviceConfiguration - * @return - */ - @Override - protected IEditHelperAdvice getEditHelperAdvice(AdviceBindingConfiguration adviceConfiguration) { - IEditHelperAdvice editHelperAdvice = ClassLoaderHelper.newInstance(adviceConfiguration.getEditHelperAdviceClassName(), IEditHelperAdvice.class); - return editHelperAdvice; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultEditHelperAdviceFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultEditHelperAdviceFactory.java deleted file mode 100644 index 12de4cd5365..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultEditHelperAdviceFactory.java +++ /dev/null @@ -1,33 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.EditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; - -public class DefaultEditHelperAdviceFactory extends AbstractEditHelperAdviceFactory { - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractAdviceFactory#getEditHelperAdvice(org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration) - * - * @param adviceConfiguration - * @return - */ - @Override - protected IEditHelperAdvice getEditHelperAdvice(EditHelperAdviceConfiguration adviceConfiguration) { - IEditHelperAdvice editHelperAdvice = ClassLoaderHelper.newInstance(adviceConfiguration.getEditHelperAdviceClassName(), IEditHelperAdvice.class); - return editHelperAdvice; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultMatcherFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultMatcherFactory.java deleted file mode 100644 index cdab0ed628b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/DefaultMatcherFactory.java +++ /dev/null @@ -1,34 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IMatcherFactory; -import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; - -public class DefaultMatcherFactory implements IMatcherFactory { - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractMatcherFactory#createElementMatcher(org.eclipse.papyrus.infra.elementtypesconfigurations.MatcherConfiguration) - * - * @param matcherConfiguration - * @return - */ - @Override - public IElementMatcher createElementMatcher(MatcherConfiguration matcherConfiguration) { - String matcherClassName = matcherConfiguration.getMatcherClassName(); - IElementMatcher matcher = ClassLoaderHelper.newInstance(matcherClassName, IElementMatcher.class); - return matcher; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/MetamodelTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/MetamodelTypeFactory.java deleted file mode 100644 index c27f9170547..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/MetamodelTypeFactory.java +++ /dev/null @@ -1,43 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedMetamodelElementType; -import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; - -public class MetamodelTypeFactory extends AbstractElementTypeConfigurationFactory { - - /** - * {@inheritDoc} - */ - public IHintedType createElementType(MetamodelTypeConfiguration configuration) { - return new ConfiguredHintedMetamodelElementType(getID(configuration), getIconURL(configuration), getDisplayName(configuration), getEClass(configuration), createEditHelper(configuration), getSemanticHint(configuration), configuration); - } - - protected EClass getEClass(MetamodelTypeConfiguration configuration) { - return configuration.getEClass(); - } - - protected IEditHelper createEditHelper(MetamodelTypeConfiguration configuration) { - String editHelperClassName = configuration.getEditHelperClassName(); - if (editHelperClassName == null) { - return null; - } - IEditHelper editHelper = ClassLoaderHelper.newInstance(editHelperClassName, IEditHelper.class); - return editHelper; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/SpecializationTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/SpecializationTypeFactory.java deleted file mode 100644 index 44c46c1b7af..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/factories/impl/SpecializationTypeFactory.java +++ /dev/null @@ -1,89 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 459174 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractEditHelperAdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.NullEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.AdviceConfigurationTypeRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ContainerConfigurationTypeRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.MatcherConfigurationTypeRegistry; - -public class SpecializationTypeFactory extends AbstractElementTypeConfigurationFactory { - - /** - * {@inheritDoc} - */ - @Override - public IHintedType createElementType(SpecializationTypeConfiguration elementTypeConfiguration) { - return new ConfiguredHintedSpecializationElementType(getID(elementTypeConfiguration), getIconURL(elementTypeConfiguration), getDisplayName(elementTypeConfiguration), getSpecializedID(elementTypeConfiguration), - createElementMatcher(elementTypeConfiguration), createContainerDescriptor(elementTypeConfiguration), getEditHelperAdvice(elementTypeConfiguration), getSemanticHint(elementTypeConfiguration), elementTypeConfiguration); - } - - protected IEditHelperAdvice getEditHelperAdvice(SpecializationTypeConfiguration elementTypeConfiguration) { - AbstractEditHelperAdviceConfiguration editHelperAdviceConfiguration = elementTypeConfiguration.getEditHelperAdviceConfiguration(); - if (editHelperAdviceConfiguration == null) { - return NullEditHelperAdvice.getInstance(); - } - IAdviceBindingDescriptor editHelperAdviceDescriptor = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(editHelperAdviceConfiguration); - return editHelperAdviceDescriptor.getEditHelperAdvice(); - } - - protected IContainerDescriptor createContainerDescriptor(SpecializationTypeConfiguration elementTypeConfiguration) { - ContainerConfiguration containerConfiguration = elementTypeConfiguration.getContainerConfiguration(); - if (containerConfiguration == null) { - return null; - } - IContainerDescriptor containerDescriptor = ContainerConfigurationTypeRegistry.getInstance().getContainerDescriptor(containerConfiguration); - return containerDescriptor; - } - - protected IElementType[] getSpecializedID(SpecializationTypeConfiguration elementTypeConfiguration) { - // Specialized elementTypes - List specializedTypes = new ArrayList((elementTypeConfiguration).getSpecializedTypesID().size()); - for (String specializedTypeId : (elementTypeConfiguration).getSpecializedTypesID()) { - IElementType specializedType = ElementTypeRegistry.getInstance().getType(specializedTypeId); - if (specializedType != null) { - specializedTypes.add(specializedType); - } else { - Activator.log.info("Unable to add specialization \"" + getID(elementTypeConfiguration) + "\" to \"" + specializedTypeId + "\""); - } - } - IElementType[] elementTypes = specializedTypes.toArray(new IElementType[] {}); - return elementTypes; - } - - protected IElementMatcher createElementMatcher(SpecializationTypeConfiguration configuration) { - AbstractMatcherConfiguration matcherConfiguration = configuration.getMatcherConfiguration(); - if (matcherConfiguration == null) { - return null; - } - IElementMatcher matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); - return matcher; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredEditHelperAdviceDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredEditHelperAdviceDescriptor.java deleted file mode 100644 index 4655297e08c..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredEditHelperAdviceDescriptor.java +++ /dev/null @@ -1,74 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredEditHelperAdviceDescriptor; - -public class ConfiguredEditHelperAdviceDescriptor implements IConfiguredEditHelperAdviceDescriptor { - - protected T editHelperAdviceConfiguration; - - protected String id; - - protected String typeId; - - protected IElementMatcher matcher; - - protected IContainerDescriptor containerDescriptor; - - protected IEditHelperAdvice editHelperAdvice; - - protected AdviceBindingInheritance inheritance; - - public ConfiguredEditHelperAdviceDescriptor(String id, String typeId, IElementMatcher matcher, IContainerDescriptor containerDescriptor, IEditHelperAdvice editHelperAdvice, AdviceBindingInheritance inheritance) { - this.id = id; - this.typeId = typeId; - this.matcher = matcher; - this.containerDescriptor = containerDescriptor; - this.editHelperAdvice = editHelperAdvice; - this.inheritance = inheritance; - } - - public String getId() { - return this.id; - } - - public String getTypeId() { - return this.typeId; - } - - public IElementMatcher getMatcher() { - return this.matcher; - } - - public IContainerDescriptor getContainerDescriptor() { - return this.containerDescriptor; - } - - public IEditHelperAdvice getEditHelperAdvice() { - return this.editHelperAdvice; - } - - public AdviceBindingInheritance getInheritance() { - return this.inheritance; - } - - public void init(T editHelperAdviceConfiguration) { - this.editHelperAdviceConfiguration = editHelperAdviceConfiguration; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedMetamodelElementType.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedMetamodelElementType.java deleted file mode 100644 index dbbea14453f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedMetamodelElementType.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import java.net.URL; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.gmf.runtime.emf.type.core.MetamodelType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredHintedElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration; - -public class ConfiguredHintedMetamodelElementType extends MetamodelType implements IConfiguredHintedElementType { - - private String semanticHint; - - private ElementTypeConfiguration configuration; - - public ConfiguredHintedMetamodelElementType(String id, URL iconURL, String displayName, EClass eClass, IEditHelper editHelper, String semanticHint, MetamodelTypeConfiguration configuration) { - super(id, iconURL, displayName, eClass, editHelper); - this.semanticHint = semanticHint; - this.configuration = configuration; - } - - public String getSemanticHint() { - return semanticHint; - } - - public void setSemanticHint(String semanticHint) { - this.semanticHint = semanticHint; - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return "Configured Metamodel Type: " + getDisplayName() + " [" + getId() + "]"; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredHintedElementType#getConfiguration() - * - * @return - */ - @Override - public ElementTypeConfiguration getConfiguration() { - return configuration; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedSpecializationElementType.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedSpecializationElementType.java deleted file mode 100644 index a8cc5bec426..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/ConfiguredHintedSpecializationElementType.java +++ /dev/null @@ -1,75 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import java.net.URL; - -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.SpecializationType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredHintedElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - - -public class ConfiguredHintedSpecializationElementType extends SpecializationType implements IConfiguredHintedElementType { - - private String semanticHint; - - private ElementTypeConfiguration configuration; - - /** - * @param id - * @param iconURL - * @param displayName - * @param elementTypes - * @param matcher - * @param descriptor - * @param editHelperAdvice - * @param iElementCreationValidator - */ - public ConfiguredHintedSpecializationElementType(String id, URL iconURL, String displayName, IElementType[] elementTypes, IElementMatcher matcher, IContainerDescriptor containerDescriptor, IEditHelperAdvice editHelperAdvice, String semanticHint, - SpecializationTypeConfiguration configuration) { - super(id, iconURL, displayName, elementTypes, matcher, containerDescriptor, editHelperAdvice); - this.semanticHint = semanticHint; - this.configuration = configuration; - } - - public String getSemanticHint() { - return semanticHint; - } - - public void setSemanticHint(String semanticHint) { - this.semanticHint = semanticHint; - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return "Configured Specialization Type: " + getDisplayName() + " [" + getId() + "]"; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredHintedElementType#getConfiguration() - * - * @return - */ - @Override - public ElementTypeConfiguration getConfiguration() { - return configuration; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/NullEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/NullEditHelperAdvice.java deleted file mode 100644 index 683eae021cc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/impl/NullEditHelperAdvice.java +++ /dev/null @@ -1,31 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.impl; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; - -public class NullEditHelperAdvice extends AbstractEditHelperAdvice { - - private static NullEditHelperAdvice instance = null; - - private NullEditHelperAdvice() { - super(); - } - - public final static synchronized NullEditHelperAdvice getInstance() { - if(instance == null) { - instance = new NullEditHelperAdvice(); - } - return instance; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/AbstractNotifierEditHelper.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/AbstractNotifierEditHelper.java deleted file mode 100644 index 3c18e5d84f5..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/AbstractNotifierEditHelper.java +++ /dev/null @@ -1,258 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand; -import org.eclipse.gmf.runtime.common.core.command.IdentityCommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceApprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceDisapprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdvicePhase; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceRequestConfigurationEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperApprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperDisapprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperRequestConfigurationEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ExecutableAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ExecutableEditHelperEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IdentityAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IdentityEditHelperEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.UnexecutableAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.UnexecutableEditHelperEvent; - -/** - * An override of the {@link AbstractEditHelper} to provide Notifications during edithelper execution. - * The notifications provide EditHelper trace information for testing and debugging purpose. - */ -public abstract class AbstractNotifierEditHelper extends AbstractEditHelper { - - /** - * - * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#getEditCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) - * - * @param req - * @return - */ - @Override - public ICommand getEditCommand(IEditCommandRequest req) { - ElementTypesConfigurationsEventsChain eventsChain = new ElementTypesConfigurationsEventsChain(this, req); - // Get the matching edit helper advice - IEditHelperAdvice[] advice = getEditHelperAdvice(req); - // Consult advisors to allow them to configure the request - configureRequest(req, advice, eventsChain); - // Consult advisors to allow them approve the request - boolean approved = approveRequest(req, advice, eventsChain); - if (!approved) { - // Notify listeners - if (Platform.inDebugMode()) { - ElementTypesConfigurationsListenersRegistry.getInstance().notifyChain(eventsChain); - } - return null; - } - ICommand result = getEditCommand(req, advice, eventsChain); - if (result != null) { - // Notify listeners - if (Platform.inDebugMode()) { - ElementTypesConfigurationsListenersRegistry.getInstance().notifyChain(eventsChain); - } - return result.reduce(); - } - // Notify listeners - if (Platform.inDebugMode()) { - ElementTypesConfigurationsListenersRegistry.getInstance().notifyChain(eventsChain); - } - return result; - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#getEditCommand(IEditCommandRequest, IEditHelperAdvice[]) - * - * @param req - * @param advice - * @param eventsChain - * @return - */ - private ICommand getEditCommand(IEditCommandRequest req, IEditHelperAdvice[] advice, ElementTypesConfigurationsEventsChain eventsChain) { - ICompositeCommand command = createCommand(req); - // Get 'before' commands from matching element type - // specializations - if (advice != null) { - for (int i = 0; i < advice.length; i++) { - IEditHelperAdvice nextAdvice = advice[i]; - // Before commands - ICommand beforeAdvice = nextAdvice.getBeforeEditCommand(req); - if (beforeAdvice != null) { - if (beforeAdvice.canExecute()) { - if (Platform.inDebugMode()) { - if (beforeAdvice.equals(IdentityCommand.INSTANCE)) { - IdentityAdviceEvent event = new IdentityAdviceEvent(req, this, nextAdvice, advice, AdvicePhase.before); - eventsChain.addBeforeAdvicesCommandsEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } else { - ExecutableAdviceEvent event = new ExecutableAdviceEvent(req, this, nextAdvice, beforeAdvice, advice, AdvicePhase.before); - eventsChain.addBeforeAdvicesCommandsEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - command.compose(beforeAdvice); - } else { - if (Platform.inDebugMode()) { - UnexecutableAdviceEvent event = new UnexecutableAdviceEvent(req, this, nextAdvice, beforeAdvice, advice, AdvicePhase.before); - eventsChain.addBeforeAdvicesCommandsEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - return beforeAdvice; - } - } - } - } - // Check if the parameter has been set to ignore the default edit command. - Object replaceParam = req.getParameter(IEditCommandRequest.REPLACE_DEFAULT_COMMAND); - if (replaceParam != Boolean.TRUE) { - // Get 'instead' command from this edit helper - ICommand insteadCommand = getInsteadCommand(req); - if (insteadCommand != null) { - if (insteadCommand.canExecute()) { - if (Platform.inDebugMode()) { - if (insteadCommand.equals(IdentityCommand.INSTANCE)) { - IdentityEditHelperEvent event = new IdentityEditHelperEvent(req, this); - eventsChain.setEditHelperCommandEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } else { - ExecutableEditHelperEvent event = new ExecutableEditHelperEvent(req, this, insteadCommand); - eventsChain.setEditHelperCommandEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - command.compose(insteadCommand); - } else { - if (Platform.inDebugMode()) { - UnexecutableEditHelperEvent event = new UnexecutableEditHelperEvent(req, this, insteadCommand); - eventsChain.setEditHelperCommandEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - return insteadCommand; - } - } - } - // Get 'after' commands from matching element type - // specializations - if (advice != null) { - for (int i = 0; i < advice.length; i++) { - IEditHelperAdvice nextAdvice = advice[i]; - // After commands - ICommand afterAdvice = nextAdvice.getAfterEditCommand(req); - if (afterAdvice != null) { - if (afterAdvice.canExecute()) { - if (Platform.inDebugMode()) { - if (afterAdvice.equals(IdentityCommand.INSTANCE)) { - IdentityAdviceEvent event = new IdentityAdviceEvent(req, this, nextAdvice, advice, AdvicePhase.after); - eventsChain.addBeforeAdvicesCommandsEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } else { - ExecutableAdviceEvent event = new ExecutableAdviceEvent(req, this, nextAdvice, afterAdvice, advice, AdvicePhase.after); - eventsChain.addBeforeAdvicesCommandsEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - command.compose(afterAdvice); - } else { - if (Platform.inDebugMode()) { - UnexecutableAdviceEvent event = new UnexecutableAdviceEvent(req, this, nextAdvice, afterAdvice, advice, AdvicePhase.after); - eventsChain.addBeforeAdvicesCommandsEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - return afterAdvice; - } - } - } - } - return command.isEmpty() ? null : command; - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#configureRequest(IEditCommandRequest, IEditHelperAdvice[]) - * - * @param req - * @param advice - * @param eventsChain - */ - private void configureRequest(IEditCommandRequest req, IEditHelperAdvice[] advice, ElementTypesConfigurationsEventsChain eventsChain) { - if (advice != null) { - for (int i = 0; i < advice.length; i++) { - IEditHelperAdvice nextAdvice = advice[i]; - nextAdvice.configureRequest(req); - if (Platform.inDebugMode()) { - AdviceRequestConfigurationEvent event = new AdviceRequestConfigurationEvent(req, this, nextAdvice, advice); - eventsChain.addAdviceRequestConfigurationEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - } - // All advice has configured the request. Now consult this edit helper. - configureRequest(req); - if (Platform.inDebugMode()) { - EditHelperRequestConfigurationEvent event = new EditHelperRequestConfigurationEvent(req, this); - eventsChain.setEditHelperRequestConfigurationEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#approveRequest(IEditCommandRequest, IEditHelperAdvice[]) - * - * @param req - * @param advice - * @param eventsChain - * @return - */ - private boolean approveRequest(IEditCommandRequest req, IEditHelperAdvice[] advice, ElementTypesConfigurationsEventsChain eventsChain) { - if (advice != null) { - for (int i = 0; i < advice.length; i++) { - IEditHelperAdvice nextAdvice = advice[i]; - boolean approved = nextAdvice.approveRequest(req); - if (!approved) { - if (Platform.inDebugMode()) { - AdviceDisapprovedEvent event = new AdviceDisapprovedEvent(req, this, nextAdvice, advice); - eventsChain.addAdviceApprovalEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - return false; - } else { - if (Platform.inDebugMode()) { - AdviceApprovedEvent event = new AdviceApprovedEvent(req, this, nextAdvice, advice); - eventsChain.addAdviceApprovalEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - } - } - // All advice has approved the request. Now consult this edit helper. - boolean approved = approveRequest(req); - if (Platform.inDebugMode()) { - if (!approved) { - EditHelperDisapprovedEvent event = new EditHelperDisapprovedEvent(req, this); - eventsChain.setEditHelperApprovalEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } else { - EditHelperApprovedEvent event = new EditHelperApprovedEvent(req, this); - eventsChain.setEditHelperApprovalEvent(event); - ElementTypesConfigurationsListenersRegistry.getInstance().notifyEvent(event); - } - } - return approved; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsEventsChain.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsEventsChain.java deleted file mode 100644 index 413b3fdf55f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsEventsChain.java +++ /dev/null @@ -1,245 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AbstractElementTypesConfigurationsEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceApprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceDisapprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.AdviceRequestConfigurationEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperApprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.EditHelperDisapprovedEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ExecutableAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.ExecutableEditHelperEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IdentityAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IdentityEditHelperEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.UnexecutableAdviceEvent; -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.UnexecutableEditHelperEvent; - -public class ElementTypesConfigurationsEventsChain { - - /** - * Timestamp of the creation of the chain - */ - private long timestamp; - - /** - * The {@link IEditHelper} that triggered the {@link ElementTypesConfigurationsEventsChain} - */ - private IEditHelper editHelper; - - /** - * The {@link IEditCommandRequest} that triggered the {@link ElementTypesConfigurationsEventsChain} - */ - private IEditCommandRequest req; - - ElementTypesConfigurationsEventsChain(IEditHelper editHelper, IEditCommandRequest req) { - timestamp = System.currentTimeMillis(); - this.editHelper = editHelper; - this.req = req; - } - - /** - * The various categories of events that occur during the execution of the {@link IEditHelper} - */ - private List adviceRequestConfigurationEvents = new ArrayList(); - - private AbstractElementTypesConfigurationsEvent editHelperRequestConfigurationEvent = null; - - private List adviceApprovalEvents = new ArrayList(); - - private AbstractElementTypesConfigurationsEvent editHelperApprovalEvent = null; - - private List beforeAdvicesCommandsEvents = new ArrayList(); - - private List afterAdvicesCommandsEvents = new ArrayList(); - - private AbstractElementTypesConfigurationsEvent editHelperCommandEvent = null; - - /** - * @return the adviceApprovalEvents - */ - public List getAdviceApprovalEvents() { - return adviceApprovalEvents; - } - - /** - * Add a {@link AdviceDisapprovedEvent} or {@link AdviceApprovedEvent} event - * - * @param adviceApprovalEvent - */ - public void addAdviceApprovalEvent(AbstractElementTypesConfigurationsEvent adviceApprovalEvent) { - if(adviceApprovalEvent instanceof AdviceDisapprovedEvent || adviceApprovalEvent instanceof AdviceApprovedEvent) { - adviceApprovalEvents.add(adviceApprovalEvent); - } - } - - /** - * @return the editHelperAprrovalEvent - */ - public AbstractElementTypesConfigurationsEvent getEditHelperApprovalEvent() { - return editHelperApprovalEvent; - } - - /** - * @param editHelperAprrovalEvent - * the editHelperAprrovalEvent to set - */ - public void setEditHelperApprovalEvent(AbstractElementTypesConfigurationsEvent editHelperApprovalEvent) { - if(editHelperApprovalEvent instanceof EditHelperDisapprovedEvent || editHelperApprovalEvent instanceof EditHelperApprovedEvent) { - this.editHelperApprovalEvent = editHelperApprovalEvent; - } - } - - /** - * @return the beforeAdvicesCommandsEvents - */ - public List getBeforeAdvicesCommandsEvents() { - return beforeAdvicesCommandsEvents; - } - - /** - * Add a {@link ExecutableAdviceEvent}, {@link UnexecutableAdviceEvent} or {@link IdentityAdviceEvent} event - * - * @param beforeAdvicesCommandsEvents - * the beforeAdvicesCommandsEvents to set - */ - public void addBeforeAdvicesCommandsEvent(AbstractElementTypesConfigurationsEvent beforeAdvicesCommandEvent) { - if(beforeAdvicesCommandEvent instanceof ExecutableAdviceEvent || beforeAdvicesCommandEvent instanceof UnexecutableAdviceEvent || beforeAdvicesCommandEvent instanceof IdentityAdviceEvent) { - beforeAdvicesCommandsEvents.add(beforeAdvicesCommandEvent); - } - } - - /** - * @return the afterAdvicesCommandsEvents - */ - public List getAfterAdvicesCommandsEvents() { - return afterAdvicesCommandsEvents; - } - - /** - * Add a {@link ExecutableAdviceEvent}, {@link UnexecutableAdviceEvent} or {@link IdentityAdviceEvent} event - * - * @param afterAdvicesCommandEvent - */ - public void addAfterAdvicesCommandsEvent(AbstractElementTypesConfigurationsEvent afterAdvicesCommandEvent) { - if(afterAdvicesCommandEvent instanceof ExecutableAdviceEvent || afterAdvicesCommandEvent instanceof UnexecutableAdviceEvent || afterAdvicesCommandEvent instanceof IdentityAdviceEvent) { - afterAdvicesCommandsEvents.add(afterAdvicesCommandEvent); - } - } - - /** - * @return the editHelperCommandEvent - */ - public AbstractElementTypesConfigurationsEvent getEditHelperCommandEvent() { - return editHelperCommandEvent; - } - - /** - * @param editHelperCommandEvent - * the editHelperCommandEvent to set ({@link ExecutableEditHelperEvent}, {@link UnexecutableEditHelperEvent} or - * {@link IdentityEditHelperEvent}) - */ - public void setEditHelperCommandEvent(AbstractElementTypesConfigurationsEvent editHelperCommandEvent) { - if(editHelperCommandEvent instanceof ExecutableEditHelperEvent || editHelperCommandEvent instanceof UnexecutableEditHelperEvent || editHelperCommandEvent instanceof IdentityEditHelperEvent) { - this.editHelperCommandEvent = editHelperCommandEvent; - } - } - - /** - * Returns all the events that occurred during the execution of the {@link IEditHelper} (i.e. all events categories) - * - * @return - */ - public List getAllEvents() { - List result = new ArrayList(); - if(!adviceRequestConfigurationEvents.isEmpty()) { - result.addAll(adviceRequestConfigurationEvents); - } - if(editHelperRequestConfigurationEvent != null) { - result.add(editHelperRequestConfigurationEvent); - } - if(!adviceApprovalEvents.isEmpty()) { - result.addAll(adviceApprovalEvents); - } - if(editHelperApprovalEvent != null) { - result.add(editHelperApprovalEvent); - } - if(!beforeAdvicesCommandsEvents.isEmpty()) { - result.addAll(beforeAdvicesCommandsEvents); - } - if(editHelperCommandEvent != null) { - result.add(editHelperCommandEvent); - } - if(!afterAdvicesCommandsEvents.isEmpty()) { - result.addAll(afterAdvicesCommandsEvents); - } - return result; - } - - /** - * @return the timestamp creation of this {@link ElementTypesConfigurationsEventsChain} - */ - public long getTimestamp() { - return timestamp; - } - - /** - * @return the req - */ - public IEditCommandRequest getRequest() { - return req; - } - - /** - * The Simple Name of the class of the {@link IEditHelper} that triggered this {@link ElementTypesConfigurationsEventsChain} - * - * @return - */ - public String getName() { - return editHelper.getClass().getSimpleName(); - } - - /** - * @return the adviceRequestConfigurationEvents - */ - public List getAdviceRequestConfigurationEvents() { - return adviceRequestConfigurationEvents; - } - - /** - * @param adviceConfigureEvent - */ - public void addAdviceRequestConfigurationEvent(AdviceRequestConfigurationEvent adviceConfigureEvent) { - adviceRequestConfigurationEvents.add(adviceConfigureEvent); - } - - /** - * @return the editHelperRequestConfigurationEvent - */ - public AbstractElementTypesConfigurationsEvent getEditHelperRequestConfigurationEvent() { - return editHelperRequestConfigurationEvent; - } - - /** - * @param editHelperRequestConfigurationEvent - * the editHelperRequestConfigurationEvent to set - */ - public void setEditHelperRequestConfigurationEvent(AbstractElementTypesConfigurationsEvent editHelperRequestConfigurationEvent) { - this.editHelperRequestConfigurationEvent = editHelperRequestConfigurationEvent; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsListenersRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsListenersRegistry.java deleted file mode 100644 index 9606f9a38cc..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/ElementTypesConfigurationsListenersRegistry.java +++ /dev/null @@ -1,74 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification; - -import java.util.HashSet; -import java.util.Set; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent; - -/** - * Singleton used to register eventsChains listeners ({@link IElementTypesConfigurationsEventsChainListener}) - */ -public class ElementTypesConfigurationsListenersRegistry { - - private static Set eventChainListeners = null; - - private static Set eventListeners = null; - - private static ElementTypesConfigurationsListenersRegistry instance = null; - - private ElementTypesConfigurationsListenersRegistry() { - } - - public static synchronized ElementTypesConfigurationsListenersRegistry getInstance() { - if (instance == null) { - instance = new ElementTypesConfigurationsListenersRegistry(); - init(); - } - return instance; - } - - public static void init() { - eventChainListeners = new HashSet(); - eventListeners = new HashSet(); - } - - public void addEventChainListener(IElementTypesConfigurationsEventsChainListener listener) { - eventChainListeners.add(listener); - } - - public void removeEventChainListener(IElementTypesConfigurationsEventsChainListener listener) { - eventChainListeners.remove(listener); - } - - public void addEventListener(IElementTypesConfigurationsEventsListener listener) { - eventListeners.add(listener); - } - - public void removeEventChainListener(IElementTypesConfigurationsEventsListener listener) { - eventListeners.remove(listener); - } - - public void notifyChain(ElementTypesConfigurationsEventsChain chain) { - for (IElementTypesConfigurationsEventsChainListener eventsChainListener : eventChainListeners) { - eventsChainListener.notifyChain(chain); - } - } - - public void notifyEvent(IElementTypesConfigurationsEvent event) { - for (IElementTypesConfigurationsEventsListener eventsListener : eventListeners) { - eventsListener.notifyEvent(event); - } - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsChainListener.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsChainListener.java deleted file mode 100644 index f5f5db57b93..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsChainListener.java +++ /dev/null @@ -1,21 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification; - -/** - * Interface to implemented by listeners that want to be notified of {@link ElementTypesConfigurationsEventsChain} - */ -public interface IElementTypesConfigurationsEventsChainListener { - - public void notifyChain(ElementTypesConfigurationsEventsChain chain); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsListener.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsListener.java deleted file mode 100644 index d363b0935b3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/IElementTypesConfigurationsEventsListener.java +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent; - -/** - * Interface to implemented by listeners that want to be notified of {@link IElementTypesConfigurationsEvent} - */ -public interface IElementTypesConfigurationsEventsListener { - - public void notifyEvent(IElementTypesConfigurationsEvent event); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractApprovedEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractApprovedEvent.java deleted file mode 100644 index 54497eadf9d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractApprovedEvent.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractApprovedEvent extends AbstractElementTypesConfigurationsEvent { - - public AbstractApprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventType() - * - * @return - */ - @Override - public ElementTypesConfigurationsEventType getEventType() { - return ElementTypesConfigurationsEventType.Approved; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractDisapprovedEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractDisapprovedEvent.java deleted file mode 100644 index c97e942ddbf..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractDisapprovedEvent.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractDisapprovedEvent extends AbstractElementTypesConfigurationsEvent { - - public AbstractDisapprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventType() - * - * @return - */ - @Override - public ElementTypesConfigurationsEventType getEventType() { - return ElementTypesConfigurationsEventType.Disapproved; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractElementTypesConfigurationsEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractElementTypesConfigurationsEvent.java deleted file mode 100644 index 97b2e37c735..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractElementTypesConfigurationsEvent.java +++ /dev/null @@ -1,75 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractElementTypesConfigurationsEvent implements IElementTypesConfigurationsEvent { - - /** - * Timestamp of the creation of this event - */ - private long timestamp; - - /** - * The {@link IEditCommandRequest} that triggered this {@link IElementTypesConfigurationsEvent} - */ - private IEditCommandRequest request; - - private IEditHelper editHelper; - - public AbstractElementTypesConfigurationsEvent(IEditCommandRequest req, IEditHelper editHelper) { - this(); - this.request = req; - this.editHelper = editHelper; - } - - /** - * @return the {@link IEditCommandRequest} that triggered the event - */ - public IEditCommandRequest getRequest() { - return request; - } - - /** - * @return the {@link IEditHelper} that triggered the event - */ - public IEditHelper getEditHelper() { - return editHelper; - } - - AbstractElementTypesConfigurationsEvent() { - timestamp = System.currentTimeMillis(); - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getTimestamp() - * - * @return - */ - @Override - public long getTimestamp() { - return timestamp; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventName() - * - * @return - */ - @Override - public String getEventName() { - return this.getClass().getSimpleName(); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractExecutableEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractExecutableEvent.java deleted file mode 100644 index ff511f06d54..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractExecutableEvent.java +++ /dev/null @@ -1,45 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractExecutableEvent extends AbstractElementTypesConfigurationsEvent { - - private ICommand command; - - - public AbstractExecutableEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { - super(req, editHelper); - this.command = command; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventType() - * - * @return - */ - @Override - public ElementTypesConfigurationsEventType getEventType() { - return ElementTypesConfigurationsEventType.Executable; - } - - /** - * @return the command - */ - public ICommand getCommand() { - return command; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractIdentityEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractIdentityEvent.java deleted file mode 100644 index 462db0338b6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractIdentityEvent.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractIdentityEvent extends AbstractElementTypesConfigurationsEvent { - - public AbstractIdentityEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventType() - * - * @return - */ - @Override - public ElementTypesConfigurationsEventType getEventType() { - return ElementTypesConfigurationsEventType.Identity; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractRequestConfigurationEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractRequestConfigurationEvent.java deleted file mode 100644 index f6996126c0b..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractRequestConfigurationEvent.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractRequestConfigurationEvent extends AbstractElementTypesConfigurationsEvent { - - public AbstractRequestConfigurationEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventType() - * - * @return - */ - @Override - public ElementTypesConfigurationsEventType getEventType() { - return ElementTypesConfigurationsEventType.RequestConfiguration; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractUnexecutableEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractUnexecutableEvent.java deleted file mode 100644 index 64271bacfe8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AbstractUnexecutableEvent.java +++ /dev/null @@ -1,47 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractUnexecutableEvent extends AbstractElementTypesConfigurationsEvent { - - public AbstractUnexecutableEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { - super(req, editHelper); - this.command = command; - } - - /** - * @return the command - */ - public ICommand getCommand() { - return command; - } - - private ICommand command; - - - - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IElementTypesConfigurationsEvent#getEventType() - * - * @return - */ - @Override - public ElementTypesConfigurationsEventType getEventType() { - return ElementTypesConfigurationsEventType.Unexecutable; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceApprovedEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceApprovedEvent.java deleted file mode 100644 index dbb7cee41a2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceApprovedEvent.java +++ /dev/null @@ -1,46 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class AdviceApprovedEvent extends AbstractApprovedEvent implements IAdviceEvent { - - private IEditHelperAdvice advice; - - private IEditHelperAdvice[] advices; - - public AdviceApprovedEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice nextAdvice, IEditHelperAdvice[] advices) { - super(req, editHelper); - this.advice = nextAdvice; - this.advices = advices; - } - - /** - * @return the advice - */ - @Override - public IEditHelperAdvice getAdvice() { - return advice; - } - - /** - * @return the advices - */ - @Override - public IEditHelperAdvice[] getAdvices() { - return advices; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceDisapprovedEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceDisapprovedEvent.java deleted file mode 100644 index edc98e1cdbf..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceDisapprovedEvent.java +++ /dev/null @@ -1,46 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class AdviceDisapprovedEvent extends AbstractDisapprovedEvent implements IAdviceEvent { - - private IEditHelperAdvice advice; - - IEditHelperAdvice[] advices; - - /** - * @return the advice - */ - @Override - public IEditHelperAdvice getAdvice() { - return advice; - } - - /** - * @return the advices - */ - @Override - public IEditHelperAdvice[] getAdvices() { - return advices; - } - - public AdviceDisapprovedEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice nextAdvice, IEditHelperAdvice[] advices) { - super(req, editHelper); - this.advice = nextAdvice; - this.advices = advices; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdvicePhase.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdvicePhase.java deleted file mode 100644 index b251d2863b0..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdvicePhase.java +++ /dev/null @@ -1,17 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -public enum AdvicePhase { - before, after -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceRequestConfigurationEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceRequestConfigurationEvent.java deleted file mode 100644 index 9cf18f699c7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/AdviceRequestConfigurationEvent.java +++ /dev/null @@ -1,50 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class AdviceRequestConfigurationEvent extends AbstractRequestConfigurationEvent implements IAdviceEvent { - - private IEditHelperAdvice advice; - - private IEditHelperAdvice[] advices; - - public AdviceRequestConfigurationEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, IEditHelperAdvice[] advices) { - super(req, editHelper); - this.advice = advice; - this.advices = advices; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IAdviceEvent#getAdvice() - * - * @return - */ - @Override - public IEditHelperAdvice getAdvice() { - return advice; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events.IAdviceEvent#getAdvices() - * - * @return - */ - @Override - public IEditHelperAdvice[] getAdvices() { - return advices; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperApprovedEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperApprovedEvent.java deleted file mode 100644 index e49b485d8c6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperApprovedEvent.java +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class EditHelperApprovedEvent extends AbstractApprovedEvent { - - public EditHelperApprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperDisapprovedEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperDisapprovedEvent.java deleted file mode 100644 index 149ee0c901d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperDisapprovedEvent.java +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class EditHelperDisapprovedEvent extends AbstractDisapprovedEvent { - - public EditHelperDisapprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperRequestConfigurationEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperRequestConfigurationEvent.java deleted file mode 100644 index e6c66afc27d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/EditHelperRequestConfigurationEvent.java +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class EditHelperRequestConfigurationEvent extends AbstractRequestConfigurationEvent { - - public EditHelperRequestConfigurationEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ElementTypesConfigurationsEventType.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ElementTypesConfigurationsEventType.java deleted file mode 100644 index 386fb4ddad4..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ElementTypesConfigurationsEventType.java +++ /dev/null @@ -1,17 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -public enum ElementTypesConfigurationsEventType { - Disapproved, Unexecutable, Approved, Executable, Identity, RequestConfiguration -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableAdviceEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableAdviceEvent.java deleted file mode 100644 index 97a98903269..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableAdviceEvent.java +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class ExecutableAdviceEvent extends AbstractExecutableEvent implements IAdviceEvent { - - private IEditHelperAdvice advice; - - private IEditHelperAdvice[] advices; - - private AdvicePhase advicePhase; - - public ExecutableAdviceEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, ICommand command, IEditHelperAdvice[] advices, AdvicePhase advicePhase) { - super(req, editHelper, command); - this.advice = advice; - this.advices = advices; - this.advicePhase = advicePhase; - } - - /** - * @return the advice - */ - @Override - public IEditHelperAdvice getAdvice() { - return advice; - } - - /** - * @return the advices - */ - @Override - public IEditHelperAdvice[] getAdvices() { - return advices; - } - - /** - * @return the advicePhase - */ - public AdvicePhase getAdvicePhase() { - return advicePhase; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableEditHelperEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableEditHelperEvent.java deleted file mode 100644 index f998e9145e3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/ExecutableEditHelperEvent.java +++ /dev/null @@ -1,24 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class ExecutableEditHelperEvent extends AbstractExecutableEvent { - - public ExecutableEditHelperEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { - super(req, editHelper, command); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IAdviceEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IAdviceEvent.java deleted file mode 100644 index 58ef81a93da..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IAdviceEvent.java +++ /dev/null @@ -1,28 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; - -public interface IAdviceEvent extends IElementTypesConfigurationsEvent { - - /** - * @return the advice - */ - public IEditHelperAdvice getAdvice(); - - /** - * @return the advices - */ - public IEditHelperAdvice[] getAdvices(); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IElementTypesConfigurationsEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IElementTypesConfigurationsEvent.java deleted file mode 100644 index 5d93ff9cb0d..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IElementTypesConfigurationsEvent.java +++ /dev/null @@ -1,29 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public interface IElementTypesConfigurationsEvent { - - public long getTimestamp(); - - public String getEventName(); - - public ElementTypesConfigurationsEventType getEventType(); - - public IEditCommandRequest getRequest(); - - public IEditHelper getEditHelper(); -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityAdviceEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityAdviceEvent.java deleted file mode 100644 index 6acc4c14e4f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityAdviceEvent.java +++ /dev/null @@ -1,56 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class IdentityAdviceEvent extends AbstractIdentityEvent implements IAdviceEvent { - - private IEditHelperAdvice advice; - - private IEditHelperAdvice[] advices; - - private AdvicePhase advicePhase; - - public IdentityAdviceEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, IEditHelperAdvice[] advices, AdvicePhase advicePhase) { - super(req, editHelper); - this.advice = advice; - this.advices = advices; - this.advicePhase = advicePhase; - } - - /** - * @return the advice - */ - @Override - public IEditHelperAdvice getAdvice() { - return advice; - } - - /** - * @return the advices - */ - @Override - public IEditHelperAdvice[] getAdvices() { - return advices; - } - - /** - * @return the advicePhase - */ - public AdvicePhase getAdvicePhase() { - return advicePhase; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityEditHelperEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityEditHelperEvent.java deleted file mode 100644 index 60351c414ab..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/IdentityEditHelperEvent.java +++ /dev/null @@ -1,24 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class IdentityEditHelperEvent extends AbstractIdentityEvent { - - - public IdentityEditHelperEvent(IEditCommandRequest req, IEditHelper editHelper) { - super(req, editHelper); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableAdviceEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableAdviceEvent.java deleted file mode 100644 index 40ad5a889f7..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableAdviceEvent.java +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class UnexecutableAdviceEvent extends AbstractUnexecutableEvent implements IAdviceEvent { - - private IEditHelperAdvice advice; - - private IEditHelperAdvice[] advices; - - private AdvicePhase advicePhase; - - public UnexecutableAdviceEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, ICommand command, IEditHelperAdvice[] advices, AdvicePhase advicePhase) { - super(req, editHelper, command); - this.advice = advice; - this.advices = advices; - this.advicePhase = advicePhase; - } - - /** - * @return the advice - */ - @Override - public IEditHelperAdvice getAdvice() { - return advice; - } - - /** - * @return the advices - */ - @Override - public IEditHelperAdvice[] getAdvices() { - return advices; - } - - /** - * @return the advicePhase - */ - public AdvicePhase getAdvicePhase() { - return advicePhase; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableEditHelperEvent.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableEditHelperEvent.java deleted file mode 100644 index 466940b71c2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/notification/events/UnexecutableEditHelperEvent.java +++ /dev/null @@ -1,24 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.notification.events; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public class UnexecutableEditHelperEvent extends AbstractUnexecutableEvent { - - public UnexecutableEditHelperEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { - super(req, editHelper, command); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/AdviceConfigurationTypeRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/AdviceConfigurationTypeRegistry.java deleted file mode 100644 index b77f02da1ef..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/AdviceConfigurationTypeRegistry.java +++ /dev/null @@ -1,133 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 459174 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.registries; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredEditHelperAdviceDescriptor; -import org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints.IAdviceConfigurationTypeExtensionPoint; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IEditHelperAdviceFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.DefaultAdviceBindingFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.DefaultEditHelperAdviceFactory; - -public class AdviceConfigurationTypeRegistry { - - private static AdviceConfigurationTypeRegistry registry; - - protected Map> adviceConfigurationTypeToFactory = null; - - /** - * returns the singleton instance of this registry - * - * @return the singleton instance of this registry - */ - public static synchronized AdviceConfigurationTypeRegistry getInstance() { - if (registry == null) { - registry = new AdviceConfigurationTypeRegistry(); - registry.init(); - } - return registry; - } - - /** - * Inits the registry. - */ - protected void init() { - adviceConfigurationTypeToFactory = new HashMap>(); - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IAdviceConfigurationTypeExtensionPoint.EXTENSION_POINT_ID); - for (IConfigurationElement configurationElement : elements) { - String configurationClass = configurationElement.getAttribute(IAdviceConfigurationTypeExtensionPoint.CONFIGURATION_CLASS); - try { - Object factoryClass = configurationElement.createExecutableExtension(IAdviceConfigurationTypeExtensionPoint.FACTORY_CLASS); - if (factoryClass instanceof IEditHelperAdviceFactory) { - adviceConfigurationTypeToFactory.put(configurationClass, (IEditHelperAdviceFactory) factoryClass); - } - } catch (CoreException e) { - Activator.log.error(e); - } - } - // Register default interpretations - adviceConfigurationTypeToFactory.put(ElementtypesconfigurationsPackage.eINSTANCE.getEditHelperAdviceConfiguration().getInstanceTypeName(), new DefaultEditHelperAdviceFactory()); - adviceConfigurationTypeToFactory.put(ElementtypesconfigurationsPackage.eINSTANCE.getAdviceBindingConfiguration().getInstanceTypeName(), new DefaultAdviceBindingFactory()); - } - - public IEditHelperAdviceFactory getFactory(AdviceConfiguration adviceConfiguration) { - String adviceConfigurationType = adviceConfiguration.eClass().getInstanceTypeName(); - // We assume here that the right factory is registered for the right AdviceConfiguration - @SuppressWarnings("unchecked") - IEditHelperAdviceFactory factory = (IEditHelperAdviceFactory) adviceConfigurationTypeToFactory.get(adviceConfigurationType); - - return factory; - } - - public IAdviceBindingDescriptor getEditHelperAdviceDecriptor(T adviceConfiguration) { - IAdviceBindingDescriptor result = null; - - if (adviceConfiguration != null) { - AdviceDescriptorAdapter adapter = AdviceDescriptorAdapter.get(adviceConfiguration); - if (adapter == null) { - IEditHelperAdviceFactory factory = getFactory(adviceConfiguration); - if (factory != null) { - IConfiguredEditHelperAdviceDescriptor editHelperAdvice = factory.createEditHelperAdviceDescriptor(adviceConfiguration); - editHelperAdvice.init(adviceConfiguration); - adapter = new AdviceDescriptorAdapter(editHelperAdvice); - adviceConfiguration.eAdapters().add(adapter); - } - } - - if (adapter != null) { - result = adapter.getAdviceDescriptor(); - } - } - - return result; - } - - // - // Nested types - // - - private static class AdviceDescriptorAdapter extends AdapterImpl { - private final IAdviceBindingDescriptor adviceDescriptor; - - AdviceDescriptorAdapter(IAdviceBindingDescriptor adviceDescriptor) { - super(); - - this.adviceDescriptor = adviceDescriptor; - } - - @Override - public boolean isAdapterForType(Object type) { - return type == IAdviceBindingDescriptor.class; - } - - public IAdviceBindingDescriptor getAdviceDescriptor() { - return adviceDescriptor; - } - - static AdviceDescriptorAdapter get(AdviceConfiguration configuration) { - return (AdviceDescriptorAdapter) EcoreUtil.getExistingAdapter(configuration, IAdviceBindingDescriptor.class); - } - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ContainerConfigurationTypeRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ContainerConfigurationTypeRegistry.java deleted file mode 100644 index 9077fd53925..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ContainerConfigurationTypeRegistry.java +++ /dev/null @@ -1,125 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.registries; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IConfiguredContainerDescriptor; -import org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints.IContainerConfigurationTypeExtensionPoint; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IContainerFactory; - -/** - * Registry that manages all possible containerConfiguration - */ -public class ContainerConfigurationTypeRegistry { - - private static ContainerConfigurationTypeRegistry registry; - - protected Map> containerConfigurationTypeToFactory = null; - - /** - * returns the singleton instance of this registry - * - * @return the singleton instance of this registry - */ - public static synchronized ContainerConfigurationTypeRegistry getInstance() { - if (registry == null) { - registry = new ContainerConfigurationTypeRegistry(); - registry.init(); - } - return registry; - } - - /** - * Inits the registry. - */ - protected void init() { - containerConfigurationTypeToFactory = new HashMap>(); - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IContainerConfigurationTypeExtensionPoint.EXTENSION_POINT_ID); - for (IConfigurationElement configurationElement : elements) { - String configurationClass = configurationElement.getAttribute(IContainerConfigurationTypeExtensionPoint.CONFIGURATION_CLASS); - try { - Object factoryClass = configurationElement.createExecutableExtension(IContainerConfigurationTypeExtensionPoint.FACTORY_CLASS); - if (factoryClass instanceof IContainerFactory) { - containerConfigurationTypeToFactory.put(configurationClass, (IContainerFactory) factoryClass); - } - } catch (CoreException e) { - Activator.log.error(e); - } - } - } - - protected IContainerFactory getFactory(ContainerConfiguration containerConfiguration) { - String containerConfigurationType = containerConfiguration.eClass().getInstanceTypeName(); - // We assume here that the right factory is registered for the right ContainerConfiguration - @SuppressWarnings("unchecked") - IContainerFactory factory = (IContainerFactory) containerConfigurationTypeToFactory.get(containerConfigurationType); - return factory; - } - - public IContainerDescriptor getContainerDescriptor(T containerConfiguration) { - if (containerConfiguration == null) { - return null; - } else { - IContainerFactory factory = getFactory(containerConfiguration); - IConfiguredContainerDescriptor containerDescriptor; - if (factory == null) { - // Provide default interpretation - containerDescriptor = new DefaultContainerDescriptor(containerConfiguration); - } else { - containerDescriptor = factory.createContainerDescriptor(containerConfiguration); - } - containerDescriptor.init(containerConfiguration); - return containerDescriptor; - } - } - - public class DefaultContainerDescriptor implements IConfiguredContainerDescriptor { - - protected ContainerConfiguration containerConfiguration; - - protected IElementMatcher matcher; - - protected EReference[] references; - - public DefaultContainerDescriptor(ContainerConfiguration containerConfiguration) { - AbstractMatcherConfiguration matcherConfiguration = containerConfiguration.getContainerMatcherConfiguration(); - matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); - EList eContainmentFeatures = containerConfiguration.getEContainmentFeatures(); - references = eContainmentFeatures.toArray(new EReference[] {}); - } - - public IElementMatcher getMatcher() { - return matcher; - } - - public EReference[] getContainmentFeatures() { - return references; - } - - public void init(ContainerConfiguration containerConfiguration) { - this.containerConfiguration = containerConfiguration; - } - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeConfigurationTypeRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeConfigurationTypeRegistry.java deleted file mode 100644 index 75ade6eace9..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeConfigurationTypeRegistry.java +++ /dev/null @@ -1,95 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.registries; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints.IElementTypeConfigurationTypeExtensionPoint; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IElementTypeConfigurationFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.MetamodelTypeFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.SpecializationTypeFactory; - -/** - * Registry that manages all possible elementTypeConfigurationTypes - */ -public class ElementTypeConfigurationTypeRegistry { - - private static ElementTypeConfigurationTypeRegistry registry; - - protected Map> elementTypeConfigurationTypeToFactory = null; - - /** - * returns the singleton instance of this registry - * - * @return the singleton instance of this registry - */ - public static synchronized ElementTypeConfigurationTypeRegistry getInstance() { - if (registry == null) { - registry = new ElementTypeConfigurationTypeRegistry(); - registry.init(); - } - return registry; - } - - /** - * Inits the registry. - */ - protected void init() { - elementTypeConfigurationTypeToFactory = new HashMap>(); - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IElementTypeConfigurationTypeExtensionPoint.EXTENSION_POINT_ID); - for (IConfigurationElement configurationElement : elements) { - String configurationClass = configurationElement.getAttribute(IElementTypeConfigurationTypeExtensionPoint.CONFIGURATION_CLASS); - try { - Object factoryClass = configurationElement.createExecutableExtension(IElementTypeConfigurationTypeExtensionPoint.FACTORY_CLASS); - if (factoryClass instanceof IElementTypeConfigurationFactory) { - elementTypeConfigurationTypeToFactory.put(configurationClass, (IElementTypeConfigurationFactory) factoryClass); - } - } catch (CoreException e) { - Activator.log.error(e); - } - } - // Register default interpretations - elementTypeConfigurationTypeToFactory.put(ElementtypesconfigurationsPackage.eINSTANCE.getMetamodelTypeConfiguration().getInstanceTypeName(), new MetamodelTypeFactory()); - elementTypeConfigurationTypeToFactory.put(ElementtypesconfigurationsPackage.eINSTANCE.getSpecializationTypeConfiguration().getInstanceTypeName(), new SpecializationTypeFactory()); - } - - protected IElementTypeConfigurationFactory getFactory(ElementTypeConfiguration elementTypeConfiguration) { - String elementTypeConfigurationType = elementTypeConfiguration.eClass().getInstanceTypeName(); - // We assume here that the right factory is registered for the right ElementTypeConfiguration - @SuppressWarnings("unchecked") - IElementTypeConfigurationFactory factory = (IElementTypeConfigurationFactory) elementTypeConfigurationTypeToFactory.get(elementTypeConfigurationType); - return factory; - } - - public IElementType getElementType(T elementTypeConfiguration) { - if (elementTypeConfiguration == null) { - return null; - } else { - IElementTypeConfigurationFactory factory = getFactory(elementTypeConfiguration); - if (factory != null) { - IHintedType elementType = factory.createElementType(elementTypeConfiguration); - return elementType; - } - } - return null; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeSetConfigurationRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeSetConfigurationRegistry.java deleted file mode 100644 index 9b8027227e2..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/ElementTypeSetConfigurationRegistry.java +++ /dev/null @@ -1,559 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bugs 459174, 467207, 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.registries; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Platform; -import org.eclipse.emf.common.util.TreeIterator; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -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.gmf.runtime.emf.type.core.ClientContextManager; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeUtil; -import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType; -import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType; -import org.eclipse.gmf.runtime.emf.type.core.NullElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints.IElementTypeSetExtensionPoint; -import org.eclipse.papyrus.infra.elementtypesconfigurations.utils.ElementTypeConfigurationCycleUtil; -import org.eclipse.papyrus.infra.elementtypesconfigurations.utils.ElementTypeRegistryUtils; -import org.eclipse.papyrus.infra.elementtypesconfigurations.utils.OrientedGraph; -import org.osgi.framework.Bundle; - -/** - * Registry to manage load/unloaded {@link ElementTypeSetConfiguration}. - */ -public class ElementTypeSetConfigurationRegistry { - - protected static ElementTypeSetConfigurationRegistry elementTypeSetConfigurationRegistry; - - /** Map of retrieved elementType sets, key is their identifier */ - protected Map> elementTypeSetConfigurations = null; - - protected OrientedGraph advicesDeps = null; - - - /** unique resource set to load all elementType sets models */ - protected ResourceSet elementTypeSetConfigurationResourceSet = null; - - /** - * returns the singleton instance of this registry - * - * @return the singleton instance of this registry - */ - public static synchronized ElementTypeSetConfigurationRegistry getInstance() { - if (elementTypeSetConfigurationRegistry == null) { - elementTypeSetConfigurationRegistry = new ElementTypeSetConfigurationRegistry(); - elementTypeSetConfigurationRegistry.init(); - } - return elementTypeSetConfigurationRegistry; - } - - /** - * Inits the registry. - */ - protected void init() { - // 0. Resets values - elementTypeSetConfigurationResourceSet = null; - elementTypeSetConfigurations = new HashMap>(); - // 1. creates the resource set - elementTypeSetConfigurationResourceSet = createResourceSet(); - // 2. creates the list only when registry is acceded for the first time, - Map> elementTypeSetConfigurationsToLoad = readElementTypeSetConfigurationModelsFromExtensionPoints(); - // Try to load all elementType set definitions - for (String contexId : elementTypeSetConfigurationsToLoad.keySet()) { - loadElementTypeSetConfigurations(contexId, elementTypeSetConfigurationsToLoad.get(contexId)); - } - - } - - - protected Map> readElementTypeSetConfigurationModels() { - Map> elementTypeSetConfigurations = new HashMap>(); - - - - return elementTypeSetConfigurations; - } - - /** - * Dispose this registry, i.e. remove all contribution on the elementType registry. - */ - public synchronized void dispose() { - if (elementTypeSetConfigurations == null) { - return; - } - - for (String contextId : elementTypeSetConfigurations.keySet()) { - for (String elementTypeSetId : elementTypeSetConfigurations.get(contextId).keySet()) { - unload(contextId, elementTypeSetId); - } - - } - elementTypeSetConfigurationResourceSet = null; - elementTypeSetConfigurations = null; - elementTypeSetConfigurationRegistry = null; - } - - /** - * Loads a given elementType set from a given identifier - */ - public boolean loadElementTypeSetConfiguration(String contextId, String path) { - - if (path == null) { - Activator.log.warn("Path must not be null" + path); - return false; - } - - if (contextId == null) { - Activator.log.warn("contextId must not be null" + path); - return false; - } - URI localURI = URI.createPlatformResourceURI(path, true); - Resource resource = elementTypeSetConfigurationResourceSet.createResource(localURI); - try { - resource.load(null); - EObject content = resource.getContents().get(0); - if (content instanceof ElementTypeSetConfiguration) { - return loadElementTypeSetConfiguration(contextId, (ElementTypeSetConfiguration) content); - } - } catch (IOException e) { - Activator.log.error(e); - } - - return false; - - } - - public boolean loadElementTypeSetConfiguration(String clientContextID, ElementTypeSetConfiguration elementTypeSetConfiguration) { - return loadElementTypeSetConfigurations(clientContextID, Collections.singleton(elementTypeSetConfiguration)); - } - - public OrientedGraph getAdvicesDeps() { - if (advicesDeps == null) { - advicesDeps = new OrientedGraph<>(); - } - return advicesDeps; - } - - protected boolean isAlreadyRegistred(String elementTypeID, IClientContext context) { - if (ElementTypeRegistry.getInstance().getType(elementTypeID) != null) { - if (!elementTypeID.equals(NullElementType.ID)) { - if (ElementTypeRegistryUtils.getType(context, elementTypeID) == null) { - // The elementType is already existing but not binded yet - context.bindId(elementTypeID); - Activator.log.info(elementTypeID + " is already registred elementtype but it is not binded yet. It has been binded to Papyrus context. "); - } - } - return true; - } - - return false; - } - - protected boolean registerElementTypeConfiguration(ElementTypeConfiguration elementTypeConfiguration, Map elementTypeConfigurationsDefinitions, IClientContext context) { - String elementTypeID = elementTypeConfiguration.getIdentifier(); - if (isAlreadyRegistred(elementTypeID, context)) { - return true; - } - - if (elementTypeConfiguration instanceof SpecializationTypeConfiguration) { - // First, check if dependencies are registered - for (String specializedTypeId : ((SpecializationTypeConfiguration) elementTypeConfiguration).getSpecializedTypesID()) { - - if (!isAlreadyRegistred(specializedTypeId, context)) { - // try to register the dependency - ElementTypeConfiguration specializedTypeConfiguration = elementTypeConfigurationsDefinitions.get(specializedTypeId); - if (specializedTypeConfiguration != null) { - boolean registred = registerElementTypeConfiguration(specializedTypeConfiguration, elementTypeConfigurationsDefinitions, context); - if (!registred) { - Activator.log.info("Failed to register " + specializedTypeId); - return false; - } - } else { - if (!specializedTypeId.equals(NullElementType.ID)) { - Activator.log.info("Cannot find ElementTypeConfiguration for " + specializedTypeId); - return false; - } - } - } - } - - } - - IElementType elementType = ElementTypeConfigurationTypeRegistry.getInstance().getElementType(elementTypeConfiguration); - if (elementType != null) { - // register elementType - if (elementType instanceof ISpecializationType) { - if (ElementTypeRegistry.getInstance().register((ISpecializationType) elementType)) { - context.bindId(elementType.getId()); - return true; - } else { - Activator.log.info("SpecializationType not added: " + elementType); - } - } else if (elementType instanceof IMetamodelType) { - if (ElementTypeRegistry.getInstance().register((IMetamodelType) elementType)) { - context.bindId(elementType.getId()); - return true; - } else { - Activator.log.info("MetamodelType not added: " + elementType); - ElementTypeRegistry.getInstance().register((IMetamodelType) elementType); - } - } - } - - return false; - - } - - public boolean loadElementTypeSetConfigurations(String contexId, Collection elementTypeSetConfigurationsToRegister) { - - if (contexId == null) { - Activator.log.warn("contexId must not be null. Loading aborted. "); - return false; - } - - IClientContext context = ClientContextManager.getInstance().getClientContext(contexId); - if (context == null) { - Activator.log.warn("contexId couldn't be found. Loading aborted. "); - return false; - } - - Map elementTypeConfigurationsDefinitions = new HashMap(); - - - - // Read from elementTypeSetConfigurations - Set registrableElementTypeSetConfiguration = new HashSet(); - for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurationsToRegister) { - // Check if not already registered - if (elementTypeSetConfigurations.containsKey(elementTypeSetConfiguration.getIdentifier())) { - Activator.log.warn("The following ElementTypesSetConfiguration has been ignored because the same ID already registreted: " + elementTypeSetConfiguration.getIdentifier()); - } else { - registrableElementTypeSetConfiguration.add(elementTypeSetConfiguration); - for (ElementTypeConfiguration elementTypeConfiguration : elementTypeSetConfiguration.getElementTypeConfigurations()) { - elementTypeConfigurationsDefinitions.put(elementTypeConfiguration.getIdentifier(), elementTypeConfiguration); - } - } - } - - // Check there is no cyclic dependencies among elementTypes introduced by this loading - HashSet elementTypesToCheck = new HashSet(); - // The old ones already registered - if (elementTypeSetConfigurations.containsKey(contexId)) { - for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurations.get(contexId).values()) { - elementTypesToCheck.addAll(elementTypeSetConfiguration.getElementTypeConfigurations()); - } - } - // The new ones we wan to register - elementTypesToCheck.addAll(elementTypeConfigurationsDefinitions.values()); - OrientedGraph elementTypesDeps = ElementTypeConfigurationCycleUtil.getDependenciesAmongElementTypes(elementTypesToCheck); - - Collection> cyclesElementTypes = ElementTypeConfigurationCycleUtil.getCyclesAmongElementTypes(elementTypesDeps.getVertices(), elementTypesDeps.getEdges()); - if (!cyclesElementTypes.isEmpty()) { - Activator.log.warn("The ElementTypesConfiguration registration has been aborted because there is at least a cyclic-dependency in the ElementTypes definitions: " + cyclesElementTypes); - return false; - } - - // Collect all advicesconfiguration - HashSet adviceToCheck = new HashSet(); - // The old ones already registered - if (elementTypeSetConfigurations.containsKey(contexId)) { - for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurations.get(contexId).values()) { - TreeIterator it = elementTypeSetConfiguration.eAllContents(); - while (it.hasNext()) { - EObject element = it.next(); - if (element instanceof AdviceConfiguration) { - adviceToCheck.add((AdviceConfiguration) element); - } - - } - } - } - // The new ones we want to register - for (ElementTypeSetConfiguration elementTypeSetConfiguration : registrableElementTypeSetConfiguration) { - TreeIterator it = elementTypeSetConfiguration.eAllContents(); - while (it.hasNext()) { - EObject element = it.next(); - if (element instanceof AdviceConfiguration) { - adviceToCheck.add((AdviceConfiguration) element); - - } - } - } - - // Check that there is no cyclic dependencies among advices introduced by this loading - advicesDeps = ElementTypeConfigurationCycleUtil.getDependenciesAmongAdvices(adviceToCheck); - Collection> cyclesAdvices = ElementTypeConfigurationCycleUtil.getCyclesInAdvices(advicesDeps.getVertices(), advicesDeps.getEdges()); - if (!cyclesAdvices.isEmpty()) { - Activator.log.warn("The ElementTypesConfiguration registration has been aborted because there is at least a cyclic-dependencies in the Advices definitions: " + cyclesAdvices); - return false; - } - - // If we reached that point, we should be able to register safely the none already registered elementTypeSets - for (ElementTypeSetConfiguration elementTypeSetConfiguration : registrableElementTypeSetConfiguration) { - if (!elementTypeSetConfigurations.containsKey(contexId)) { - elementTypeSetConfigurations.put(contexId, new HashMap()); - } - elementTypeSetConfigurations.get(contexId).put(elementTypeSetConfiguration.getIdentifier(), elementTypeSetConfiguration); - } - - // New ElementTypesConfigurations can be registered - for (ElementTypeConfiguration elementTypeConfiguration : elementTypeConfigurationsDefinitions.values()) { - registerElementTypeConfiguration(elementTypeConfiguration, elementTypeConfigurationsDefinitions, context); - } - - // Register adviceBindings - for (ElementTypeSetConfiguration elementTypeSetConfiguration : registrableElementTypeSetConfiguration) { - List adviceBindingConfigurations = elementTypeSetConfiguration.getAdviceBindingsConfigurations(); - for (AbstractAdviceBindingConfiguration adviceBindingConfiguration : adviceBindingConfigurations) { - IAdviceBindingDescriptor editHelperAdviceDecriptor = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(adviceBindingConfiguration); - ElementTypeRegistryUtils.registerAdviceBinding(editHelperAdviceDecriptor); - context.bindId(editHelperAdviceDecriptor.getId()); - } - } - - return true; - } - - - public boolean unload(String contextId, String elementTypeSetId) { - if (elementTypeSetConfigurations == null) { - return false; - } - if (!elementTypeSetConfigurations.containsKey(contextId)) { - return false; - } - Map map = elementTypeSetConfigurations.get(contextId); - ElementTypeSetConfiguration elementTypeSet = map.remove(elementTypeSetId); - if (elementTypeSet == null) { - return false; - } - - // Remove elementTypes - ElementTypeRegistry registry = ElementTypeRegistry.getInstance(); - List elementTypes = new ArrayList(elementTypeSet.getElementTypeConfigurations().size()); - for (ElementTypeConfiguration elementTypeConfiguration : elementTypeSet.getElementTypeConfigurations()) { - if (elementTypeConfiguration != null && elementTypeConfiguration.getIdentifier() != null) { - String configIdentifier = elementTypeConfiguration.getIdentifier(); - IElementType elementType = registry.getType(configIdentifier); - if (elementType != null) { - elementTypes.add(elementType); - } - } - } - - ElementTypeUtil.deregisterElementTypes(elementTypes, ElementTypeUtil.ALL_DEPENDENTS); - - // Remove adviceBindings - List adviceBindingConfigurations = elementTypeSet.getAdviceBindingsConfigurations(); - for (AbstractAdviceBindingConfiguration adviceBindingConfiguration : adviceBindingConfigurations) { - IAdviceBindingDescriptor advice = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(adviceBindingConfiguration); - if (advice != null) { - ElementTypeRegistryUtils.removeAdviceDescriptorFromBindings(advice); - } - } - - // If I loaded this element-types configuration model, I should now unload it. Otherwise, - // I don't own this resource so I should not attempt to manage it - if (elementTypeSetConfigurationResourceSet != null) { - Resource resource = elementTypeSet.eResource(); - if ((resource != null) && (resource.getResourceSet() == elementTypeSetConfigurationResourceSet)) { - resource.unload(); - elementTypeSetConfigurationResourceSet.getResources().remove(resource); - } - } - - // Recompute adviceDependencies - HashSet advices = new HashSet(); - // The ones still registered - for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurations.get(contextId).values()) { - TreeIterator it = elementTypeSetConfiguration.eAllContents(); - while (it.hasNext()) { - EObject element = it.next(); - if (element instanceof AdviceConfiguration) { - advices.add((AdviceConfiguration) element); - } - - } - } - advicesDeps = ElementTypeConfigurationCycleUtil.getDependenciesAmongAdvices(advices); - - return true; - } - - - - protected void addElementTypeSetConfigurationToDefinitions(ElementTypeSetConfiguration set, String clientContextId, Map> existingDefinitions) { - if (set.getIdentifier() == null) { - Activator.log.warn("The following ElementTypesSetConfiguration has ill-defined ID and is therefore ignored: " + set.eResource().getURI()); - } else { - if (set != null) { - if (existingDefinitions.get(clientContextId) != null && containsElementTypeSet(existingDefinitions.get(clientContextId), set.getIdentifier())) { - Activator.log.warn("The following ElementTypesSetConfiguration has been ignored because the same ID already registreted: " + set.getIdentifier()); - } else { - if (!existingDefinitions.containsKey(clientContextId)) { - existingDefinitions.put(clientContextId, new HashSet()); - } - existingDefinitions.get(clientContextId).add(set); - } - } - } - } - - protected Map> readElementTypeSetConfigurationModelsFromExtensionPoints() { - Map> existingDefinitions = new HashMap<>(); - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IElementTypeSetExtensionPoint.EXTENSION_POINT_ID); - // for each element, parses and retrieve the model file. then loads it and returns the root element - for (IConfigurationElement element : elements) { - String modelPath = element.getAttribute(IElementTypeSetExtensionPoint.PATH); - String clientContextId = element.getAttribute(IElementTypeSetExtensionPoint.CLIENT_CONTEXT_ID); - String contributorID = element.getContributor().getName(); - if (Platform.inDebugMode()) { - Activator.log.debug("[Reading extension point]"); - Activator.log.debug("- Path to the model: " + modelPath); - Activator.log.debug("- ClientContext the model should be registreted to: " + clientContextId); - Activator.log.debug("- id of the container bundle: " + contributorID); - } - - ElementTypeSetConfiguration set = getElementTypeSetConfiguration(modelPath, contributorID); - if (set != null) { - // It will be null if the file was absent or malformed and so failed to load. - addElementTypeSetConfigurationToDefinitions(set, clientContextId, existingDefinitions); - } - - } - return existingDefinitions; - } - - protected boolean containsElementTypeSet(Set elementTypeSets, String elementTypeSetConfigurationId) { - if (elementTypeSets == null) { - return false; - } - - for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSets) { - if (elementTypeSetConfiguration.getIdentifier().equals(elementTypeSetConfigurationId)) { - return true; - } - } - return false; - } - - /** - *

- * Loads the resource containing the elementType set model. - *

- *

- * It looks the model file in the fragments first, then in the plugin itself.
- * If this is already a fragment, it should look in the fragment only - *

- * - * @param elementTypesID - * id of the elementType set to load - * @param modelPath - * path of the model in the bundle - * @param bundleId - * id of the bundle containing the model file - * @return the loaded file or null if some problem occured during loading - */ - protected ElementTypeSetConfiguration getElementTypeSetConfiguration(String modelPath, String bundleId) { - - Bundle bundle = Platform.getBundle(bundleId); - if (Platform.isFragment(bundle)) { - ElementTypeSetConfiguration configuration = getElementTypeSetConfigurationInBundle(modelPath, bundleId); - if (configuration == null) { - Activator.log.warn("Failed to load resource " + modelPath + " from bundle " + bundleId); - } - return configuration; - } else { // this is a plugin. Search in sub fragments, then in the plugin - ElementTypeSetConfiguration elementTypeSetConfiguration = null; - - Bundle[] fragments = Platform.getFragments(bundle); - - if (fragments != null) { - for (Bundle fragment : fragments) { - elementTypeSetConfiguration = getElementTypeSetConfigurationInBundle(modelPath, fragment.getSymbolicName()); - if (elementTypeSetConfiguration != null) { - break; - } - } - } // else no fragments, so the file should be in the plugin, itself - - if (elementTypeSetConfiguration == null) { - // not found in fragments. Look in the plugin itself - elementTypeSetConfiguration = getElementTypeSetConfigurationInBundle(modelPath, bundleId); - } - - if (elementTypeSetConfiguration == null) { - Activator.log.warn("Failed to load resource " + modelPath + " from bundle " + bundleId); - } - - return elementTypeSetConfiguration; - } - } - - /** - * - * @param modelPath - * path of the model in the bundle - * @param bundleId - * id of the bundle containing the model file - * @return the loaded file or null if some problem occured during loading - */ - protected ElementTypeSetConfiguration getElementTypeSetConfigurationInBundle(String modelPath, String bundleID) { - String path = bundleID + IPath.SEPARATOR + modelPath; - Resource resource = elementTypeSetConfigurationResourceSet.createResource(URI.createPlatformPluginURI(path, true)); - try { - resource.load(null); - } catch (IOException e) { - return null; // Don't log the error yet; we're trying several options - } - EObject content = resource.getContents().get(0); - if (content instanceof ElementTypeSetConfiguration) { - return (ElementTypeSetConfiguration) content; - } - return null; - } - - protected ResourceSet createResourceSet() { - ResourceSet set = new ResourceSetImpl(); - return set; - } - - public Map> getElementTypeSetConfigurations() { - return elementTypeSetConfigurations; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/MatcherConfigurationTypeRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/MatcherConfigurationTypeRegistry.java deleted file mode 100644 index f81a7efdf07..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/registries/MatcherConfigurationTypeRegistry.java +++ /dev/null @@ -1,100 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.registries; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.extensionpoints.IMatcherConfigurationTypeExtensionPoint; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IMatcherFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.DefaultMatcherFactory; - -public class MatcherConfigurationTypeRegistry { - - private static MatcherConfigurationTypeRegistry registry; - - protected Map> matcherConfigurationTypeToFactory = null; - - public static synchronized MatcherConfigurationTypeRegistry getInstance() { - if (registry == null) { - registry = new MatcherConfigurationTypeRegistry(); - registry.init(); - } - return registry; - } - - protected void init() { - matcherConfigurationTypeToFactory = new HashMap>(); - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IMatcherConfigurationTypeExtensionPoint.EXTENSION_POINT_ID); - for (IConfigurationElement configurationElement : elements) { - String configurationClass = configurationElement.getAttribute(IMatcherConfigurationTypeExtensionPoint.CONFIGURATION_CLASS); - try { - Object factoryClass = configurationElement.createExecutableExtension(IMatcherConfigurationTypeExtensionPoint.FACTORY_CLASS); - if (factoryClass instanceof IMatcherFactory) { - matcherConfigurationTypeToFactory.put(configurationClass, (IMatcherFactory) factoryClass); - } - } catch (CoreException e) { - Activator.log.error(e); - } - } - // Register default interpretation - matcherConfigurationTypeToFactory.put(ElementtypesconfigurationsPackage.eINSTANCE.getMatcherConfiguration().getInstanceTypeName(), new DefaultMatcherFactory()); - } - - protected IMatcherFactory getFactory(T matcherConfiguration) { - String matcherConfigurationType = matcherConfiguration.eClass().getInstanceTypeName(); - // We assume here that the right factory is registered for the right MatcherConfiguration - @SuppressWarnings("unchecked") - IMatcherFactory factory = (IMatcherFactory) matcherConfigurationTypeToFactory.get(matcherConfigurationType); - return factory; - } - - public IElementMatcher getMatcher(T matcherConfiguration) { - if (matcherConfiguration == null) { - return null; - } else { - IMatcherFactory factory = getFactory(matcherConfiguration); - if (factory == null) { - // Provide dummy interpretation - IElementMatcher matcher = new DummyElementMatcher(); - return matcher; - } else { - IElementMatcher matcher = factory.createElementMatcher(matcherConfiguration); - return matcher; - } - } - } - - public class DummyElementMatcher implements IElementMatcher { - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.IElementMatcher#matches(org.eclipse.emf.ecore.EObject) - * - * @param eObject - * @return - */ - @Override - public boolean matches(EObject eObject) { - return true; - } - - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceFactoryImpl.java deleted file mode 100644 index d79e1679ca3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceFactoryImpl.java +++ /dev/null @@ -1,28 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.resource; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsResourceFactoryImpl; - - -public class CustomElementtypesconfigurationsResourceFactoryImpl extends ElementtypesconfigurationsResourceFactoryImpl { - - @Override - public Resource createResource(URI uri) { - Resource result = new CustomElementtypesconfigurationsResourceImpl(uri); - return result; - } - -} // ElementtypesconfigurationsResourceFactoryImpl diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceImpl.java deleted file mode 100644 index 65955a484c8..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/resource/CustomElementtypesconfigurationsResourceImpl.java +++ /dev/null @@ -1,30 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.infra.elementtypesconfigurations.resource; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsResourceImpl; - - -public class CustomElementtypesconfigurationsResourceImpl extends ElementtypesconfigurationsResourceImpl { - - public CustomElementtypesconfigurationsResourceImpl(URI uri) { - super(uri); - } - - @Override - protected boolean useUUIDs() { - return true; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/AdviceComparator.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/AdviceComparator.java deleted file mode 100644 index 74626a3308f..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/AdviceComparator.java +++ /dev/null @@ -1,47 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.utils; - -import java.util.Comparator; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; - - -public class AdviceComparator implements Comparator { - - OrientedGraph dependencies; - - public AdviceComparator() { - this.dependencies = ElementTypeSetConfigurationRegistry.getInstance().getAdvicesDeps(); - } - - @Override - public int compare(IEditHelperAdvice arg0, IEditHelperAdvice arg1) { - String arg0Name = arg0.getClass().getName(); - String arg1Name = arg1.getClass().getName(); - if (dependencies.getEdges().containsKey(arg0Name)) { - if (dependencies.getAllConnex(arg0Name).contains(arg1Name)) { - return -1; - } - } - if (dependencies.getEdges().containsKey(arg1Name)) { - if (dependencies.getAllConnex(arg1Name).contains(arg0Name)) { - return 1; - } - } - return 0; - } - -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeConfigurationCycleUtil.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeConfigurationCycleUtil.java deleted file mode 100644 index 9c25d38f5d3..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeConfigurationCycleUtil.java +++ /dev/null @@ -1,127 +0,0 @@ -package org.eclipse.papyrus.infra.elementtypesconfigurations.utils; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.Stack; - -import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.AdviceConfigurationTypeRegistry; - -//Implements Tarjan's strongly connected components algorithm -public class ElementTypeConfigurationCycleUtil { - - - protected static Collection> computeStronglyConnectedComponents(Set vertices, Map> edges) { - int index = 0; - Map lowIndex = new HashMap(); - Collection visitedVertices = new HashSet(); - Stack stack = new Stack(); - Collection> stronglyConnnectedComponents = new ArrayList>(); - - for (String vertex : vertices) { - if (!visitedVertices.contains(vertex)) - dfs(vertex, vertices, edges, stronglyConnnectedComponents, stack, lowIndex, visitedVertices, index); - } - - return stronglyConnnectedComponents; - } - - - protected static void dfs(String vertex, Set vertices, Map> map, Collection> stronglyConnnectedComponents, Stack stack, Map lowIndex, Collection visitedVertices, - int index) { - lowIndex.put(vertex, index++); - visitedVertices.add(vertex); - stack.push(vertex); - int minIndex = lowIndex.get(vertex); - for (String targetVertex : map.get(vertex)) { - if (!visitedVertices.contains(targetVertex)) - dfs(targetVertex, vertices, map, stronglyConnnectedComponents, stack, lowIndex, visitedVertices, index); - if (lowIndex.get(targetVertex) < minIndex) - minIndex = lowIndex.get(targetVertex); - } - if (minIndex < lowIndex.get(vertex)) { - lowIndex.put(vertex, minIndex); - return; - } - List component = new ArrayList(); - String memberVertex; - do { - memberVertex = stack.pop(); - component.add(memberVertex); - lowIndex.put(memberVertex, vertices.size()); - } while (!memberVertex.equals(vertex)); - - if (component.size() > 1) { - stronglyConnnectedComponents.add(component); - } - } - - static public OrientedGraph getDependenciesAmongAdvices(Collection adviceConfigurations) { - OrientedGraph adviceDependencies = new OrientedGraph(); - for (AdviceConfiguration adviceConfiguration : adviceConfigurations) { - IAdviceBindingDescriptor descriptor = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(adviceConfiguration); - - String currentAdviceConfigurationClassName = descriptor.getEditHelperAdvice().getClass().getName(); - // Add current to the vertices - adviceDependencies.addVertex(currentAdviceConfigurationClassName); - - // Add dependencies vertices - for (String after : adviceConfiguration.getAfter()) { - if (after == null) { - Activator.log.warn("The following AdviceConfiguration has ill-defined after : " + adviceConfiguration); - break; - } - adviceDependencies.addEdge(currentAdviceConfigurationClassName, after); - } - - for (String before : adviceConfiguration.getBefore()) { - if (before == null) { - Activator.log.warn("The following AdviceConfiguration has ill-defined before : " + adviceConfiguration); - break; - } - adviceDependencies.addEdge(before, currentAdviceConfigurationClassName); - } - - } - - return adviceDependencies; - } - - static public Collection> getCyclesInAdvices(Set vertices, Map> edges) { - - return computeStronglyConnectedComponents(vertices, edges); - } - - static public OrientedGraph getDependenciesAmongElementTypes(Collection elementTypesConfigurations) { - OrientedGraph elementTypeDependencies = new OrientedGraph(); - - for (ElementTypeConfiguration elementTypeConfiguration : elementTypesConfigurations) { - String currentElementTypeID = elementTypeConfiguration.getIdentifier(); - - // Add current to the vertices - elementTypeDependencies.addVertex(currentElementTypeID); - - // Add dependencies vertices - if (elementTypeConfiguration instanceof SpecializationTypeConfiguration) { - for (String specializedTypeID : ((SpecializationTypeConfiguration) elementTypeConfiguration).getSpecializedTypesID()) { - elementTypeDependencies.addEdge(currentElementTypeID, specializedTypeID); - } - } - } - - return elementTypeDependencies; - } - - static public Collection> getCyclesAmongElementTypes(Set vertices, Map> edges) { - return computeStronglyConnectedComponents(vertices, edges); - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeRegistryUtils.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeRegistryUtils.java deleted file mode 100644 index 15678343ae6..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/ElementTypeRegistryUtils.java +++ /dev/null @@ -1,76 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 459174 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.utils; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.gmf.runtime.emf.type.core.ClientContext; -import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.IHintedType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; - -public class ElementTypeRegistryUtils { - - static public IElementType getType(IClientContext context, String elementTypeID) { - IElementType[] elementTypes = ElementTypeRegistry.getInstance().getElementTypes(context); - for (IElementType iElementType : elementTypes) { - if (iElementType.getId().equals(elementTypeID)) { - return iElementType; - } - } - return null; - } - - static public void registerAdviceBinding(IAdviceBindingDescriptor adviceDescriptor) { - ElementTypeRegistry.getInstance().registerAdvice(adviceDescriptor); - } - - static public void removeAdviceDescriptorFromBindings(IAdviceBindingDescriptor adviceDescriptor) { - ElementTypeRegistry.getInstance().deregisterAdvice(adviceDescriptor); - } - - static public void unBindID(IClientContext context, String typeId) { - if (context instanceof ClientContext) { - ((ClientContext) context).unbindId(typeId); - } else if (context != null) { - Activator.log.warn("Cannot unbind type ID from context of unknown class: " + context.getClass().getName()); - } - } - - static public List getElementTypesBySemanticHint(String semanticHint, String contextId) { - List matchingElementTypes = new ArrayList(); - - IClientContext context = ClientContextManager.getInstance().getClientContext(contextId); - - if (context != null) { - - IElementType[] elementTypes = ElementTypeRegistry.getInstance().getElementTypes(context); - - for (IElementType iElementType : elementTypes) { - if (iElementType instanceof IHintedType) { - if (((IHintedType) iElementType).getSemanticHint().equals(semanticHint)) { - matchingElementTypes.add(iElementType); - } - } - } - } - - return matchingElementTypes; - } -} diff --git a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/OrientedGraph.java b/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/OrientedGraph.java deleted file mode 100644 index bc4107f3acb..00000000000 --- a/plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations/src/org/eclipse/papyrus/infra/elementtypesconfigurations/utils/OrientedGraph.java +++ /dev/null @@ -1,97 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.utils; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -public class OrientedGraph { - private Map> graph; - - /** - * @return the vertices - */ - public Set getVertices() { - return graph.keySet(); - } - - /** - * @return the edges - */ - public Map> getEdges() { - return graph; - } - - public Set getAllConnex(T element) { - Set result = new HashSet(); - - Set directChildren = graph.get(element); - - result.addAll(directChildren); - - for (T child : directChildren) { - Set childChildren = getAllConnex(child); - result.addAll(childChildren); - } - - return result; - } - - - public OrientedGraph() { - graph = new HashMap>(); - } - - public OrientedGraph(Map> edges) { - this.graph = edges; - } - - public void clear() { - graph.clear(); - } - - public void addEdge(T source, T target) { - if (!graph.containsKey(source)) { - addVertex(source); - } - if (!graph.containsKey(target)) { - addVertex(target); - } - - graph.get(source).add(target); - } - - public void addVertex(T vertex) { - if (!graph.containsKey(vertex)) { - graph.put(vertex, new HashSet()); - } - - } - - public String toString() { - String result = ""; - for (T element : graph.keySet()) { - result += "- " + element + "\n"; - for (T target : graph.get(element)) { - result += "\t-> " + target + "\n"; - } - } - - return result; - - } - -} diff --git a/plugins/infra/pom.xml b/plugins/infra/pom.xml index 003f997e1ee..c347c3a4531 100644 --- a/plugins/infra/pom.xml +++ b/plugins/infra/pom.xml @@ -22,14 +22,7 @@ services newchild - - org.eclipse.papyrus.infra.elementtypesconfigurations - org.eclipse.papyrus.infra.elementtypesconfigurations.edit - org.eclipse.papyrus.infra.elementtypesconfigurations.editor - org.eclipse.papyrus.infra.elementtypesconfigurations.emf - org.eclipse.papyrus.infra.elementtypesconfigurations.emf.ui - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes - org.eclipse.papyrus.infra.elementtypesconfigurations.ui + types viewpoints nattable diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.classpath b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.classpath new file mode 100644 index 00000000000..eca7bdba8f0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.project b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.project new file mode 100644 index 00000000000..1ff0577ad7b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.core + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..62a08f4494d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/META-INF/MANIFEST.MF b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..0bd7772f3da --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/META-INF/MANIFEST.MF @@ -0,0 +1,29 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0";visibility:=reexport, + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.papyrus.infra.tools;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.types;bundle-version="1.2.0";visibility:=reexport +Export-Package: org.eclipse.papyrus.infra.types.core, + org.eclipse.papyrus.infra.types.core.extensionpoints, + org.eclipse.papyrus.infra.types.core.factories, + org.eclipse.papyrus.infra.types.core.factories.impl, + org.eclipse.papyrus.infra.types.core.impl, + org.eclipse.papyrus.infra.types.core.notification, + org.eclipse.papyrus.infra.types.core.notification.events, + org.eclipse.papyrus.infra.types.core.registries, + org.eclipse.papyrus.infra.types.core.utils +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Localization: plugin +Bundle-Name: %pluginName +Bundle-Activator: org.eclipse.papyrus.infra.types.core.Activator +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.core;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/about.html b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/build.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/build.properties new file mode 100644 index 00000000000..5d2b514cb3c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/build.properties @@ -0,0 +1,13 @@ +# +#Mon Sep 12 09:29:52 CEST 2011 +output..=bin/ +bin.includes = .,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + schema/,\ + about.html +jars.compile.order=. +src.includes = about.html +source.. = src/ +bin..=bin/ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.properties new file mode 100644 index 00000000000..546874c1e51 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.properties @@ -0,0 +1,13 @@ +############################################################################### +# 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: +# CEA LIST - initial API and implementation +############################################################################### +pluginName=Papyrus elementTypes configurations plugin +providerName=Eclipse Modeling Project +_UI_Elementtypesconfigurations_content_type = Elementtypesconfigurations File diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.xml new file mode 100644 index 00000000000..2c94fe32289 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/plugin.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/pom.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/pom.xml new file mode 100644 index 00000000000..affbc6c6eb8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-types + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.types.core + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/adviceConfigurationKind.exsd b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/adviceConfigurationKind.exsd new file mode 100644 index 00000000000..8734ce9b975 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/adviceConfigurationKind.exsd @@ -0,0 +1,126 @@ + + + + + + + + + Extension point to describe new kind of Pre/Post actions in the elementTypesConfigurations framework. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.10.1 + + + + + + + + + See examples in the emf or uml elementTypes configurations + + + + + + + + + [Enter API information here.] + + + + + + + + + [Enter information about supplied implementation of this extension point.] + + + + + + + + + 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: +CEA LIST - initial API and implementation + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/containerConfigurationKind.exsd b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/containerConfigurationKind.exsd new file mode 100644 index 00000000000..2946e38e2d5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/containerConfigurationKind.exsd @@ -0,0 +1,102 @@ + + + + + + + + + This extension point is used to registered new kind of container configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.10.2 + + + + + + + + + + + + Copyright (c) 2010-2013 CEA LIST +All rights reserved. This program and the accompanying materials +are made available under the terms of the Eclipse Public License +v1.0 which accompanies this distribution, and is available at +http://www.eclipse.org/legal/epl-v10.html +Contributors: +CEA LIST - initial API and implementation + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeConfigurationKind.exsd b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeConfigurationKind.exsd new file mode 100644 index 00000000000..b2e6f2c2947 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeConfigurationKind.exsd @@ -0,0 +1,107 @@ + + + + + + + + + This extension point is used to registered new kind of elementTypes configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + define a new configuration for an elementTypes set + + + + + + + + + + + + + + + + + Configuration class of the elementType. + + + + + + + + + + + + + + + 0.10.2 + + + + + + + + + + + + Copyright (c) 2010-2013 CEA LIST +All rights reserved. This program and the accompanying materials +are made available under the terms of the Eclipse Public License +v1.0 which accompanies this distribution, and is available at +http://www.eclipse.org/legal/epl-v10.html +Contributors: +CEA LIST - initial API and implementation + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeSetConfiguration.exsd b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeSetConfiguration.exsd new file mode 100644 index 00000000000..1f2b003b1e2 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/elementTypeSetConfiguration.exsd @@ -0,0 +1,106 @@ + + + + + + + + + This extension point is used to registered elementType sets configuration models + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + define a new configuration for an elementType set + + + + + + + The unique identifier of the clientContext this elementTypeSet must be registreted to. + + + + + + + Path to the model file in the bundle. + +Note: Do not forget to add the file in the binary build of the plugin! + + + + + + + + + + + + + + + 0.10.2 + + + + + + + + + + + + Copyright (c) 2010-2013 CEA LIST +All rights reserved. This program and the accompanying materials +are made available under the terms of the Eclipse Public License +v1.0 which accompanies this distribution, and is available at +http://www.eclipse.org/legal/epl-v10.html +Contributors: +CEA LIST - initial API and implementation + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/matcherConfigurationKind.exsd b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/matcherConfigurationKind.exsd new file mode 100644 index 00000000000..525c23db524 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/schema/matcherConfigurationKind.exsd @@ -0,0 +1,102 @@ + + + + + + + + + This extension point is used to registered new kind of matcher configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.10.2 + + + + + + + + + + + + Copyright (c) 2010-2013 CEA LIST +All rights reserved. This program and the accompanying materials +are made available under the terms of the Eclipse Public License +v1.0 which accompanies this distribution, and is available at +http://www.eclipse.org/legal/epl-v10.html +Contributors: +CEA LIST - initial API and implementation + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/Activator.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/Activator.java new file mode 100644 index 00000000000..0aa038b9c17 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/Activator.java @@ -0,0 +1,62 @@ +/***************************************************************************** + * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 485220 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core; + +import org.eclipse.core.runtime.Plugin; +import org.eclipse.papyrus.infra.core.log.LogHelper; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.types.core"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** Logging helper */ + public static LogHelper log; + + /** + * The constructor + */ + public Activator() { + } + + @Override + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + log = new LogHelper(this); + } + + @Override + public void stop(BundleContext context) throws Exception { + log = null; + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredContainerDescriptor.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredContainerDescriptor.java new file mode 100644 index 00000000000..1f669657cfd --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredContainerDescriptor.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core; + +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; + + +/** + * Descriptor for the configurable container descriptor + */ +public interface IConfiguredContainerDescriptor extends IContainerDescriptor { + + void init(T containerConfiguration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredEditHelperAdviceDescriptor.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredEditHelperAdviceDescriptor.java new file mode 100644 index 00000000000..872b2a3c651 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredEditHelperAdviceDescriptor.java @@ -0,0 +1,22 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 459174 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core; + +import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; + +public interface IConfiguredEditHelperAdviceDescriptor extends IAdviceBindingDescriptor { + + public void init(T configuration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredHintedElementType.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredHintedElementType.java new file mode 100644 index 00000000000..4547c75c070 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/IConfiguredHintedElementType.java @@ -0,0 +1,24 @@ +/***************************************************************************** + * Copyright (c) 2015 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.core; + +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; + + +public interface IConfiguredHintedElementType extends IHintedType { + + ElementTypeConfiguration getConfiguration(); + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java new file mode 100644 index 00000000000..ce1c5c024f9 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java @@ -0,0 +1,49 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core; + +import org.eclipse.papyrus.infra.core.services.IService; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.core.services.ServicesRegistry; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; + +/** + * Service to register elementTypes configurations + */ +public class TypesConfigurationsRegistryService implements IService { + + /** + * {@inheritDoc} + */ + public void init(ServicesRegistry servicesRegistry) throws ServiceException { + } + + /** + * {@inheritDoc} + */ + public void startService() throws ServiceException { + // register elements in elementType registry + ElementTypeSetConfigurationRegistry.getInstance(); + } + + /** + * {@inheritDoc} + */ + public void disposeService() throws ServiceException { + // Do nothing because registered elementtypes may be used somewhere else. + } + + public ElementTypeSetConfigurationRegistry getElementTypeSetRegistry() { + return ElementTypeSetConfigurationRegistry.getInstance(); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IAdviceKindExtensionPoint.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IAdviceKindExtensionPoint.java new file mode 100644 index 00000000000..1def9adfa2c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IAdviceKindExtensionPoint.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.extensionpoints; + +import org.eclipse.papyrus.infra.types.core.Activator; + +public interface IAdviceKindExtensionPoint { + + /** ID of the extension point */ + public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".adviceConfigurationKind"; + + public static final String FACTORY_CLASS = "factoryClass"; + + public static final String CONFIGURATION_CLASS = "configurationClass"; +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IContainerConfigurationKindExtensionPoint.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IContainerConfigurationKindExtensionPoint.java new file mode 100644 index 00000000000..6acdfbe21e8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IContainerConfigurationKindExtensionPoint.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.extensionpoints; + +import org.eclipse.papyrus.infra.types.core.Activator; + +public interface IContainerConfigurationKindExtensionPoint { + + /** ID of the extension point */ + public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".containerConfigurationKind"; + + public static final String FACTORY_CLASS = "factoryClass"; + + public static final String CONFIGURATION_CLASS = "configurationClass"; +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeConfigurationKindExtensionPoint.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeConfigurationKindExtensionPoint.java new file mode 100644 index 00000000000..a39a19da6d4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeConfigurationKindExtensionPoint.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.extensionpoints; + +import org.eclipse.papyrus.infra.types.core.Activator; + +/** + * Constants for the extension point elementTypeConfigurationType + */ +public interface IElementTypeConfigurationKindExtensionPoint { + + /** ID of the extension point */ + public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".elementTypeConfigurationKind"; + + /** attribute factoryClass */ + public static final String FACTORY_CLASS = "factoryClass"; + + /** attribute configurationClass */ + public static final String CONFIGURATION_CLASS = "configurationClass"; +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeSetExtensionPoint.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeSetExtensionPoint.java new file mode 100644 index 00000000000..24a09884fed --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IElementTypeSetExtensionPoint.java @@ -0,0 +1,27 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.extensionpoints; + +import org.eclipse.papyrus.infra.types.core.Activator; + +public interface IElementTypeSetExtensionPoint { + + /** ID of the extension point */ + public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".elementTypeSetConfiguration"; + + /** attribute: path to the model file in the bundle */ + public static final String PATH = "path"; + + /** attribute: identifier of the clientContext in which to register the elementTypeConfigurationSet */ + public static final String CLIENT_CONTEXT_ID = "clientContextID"; +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IMatcherConfigurationKindExtensionPoint.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IMatcherConfigurationKindExtensionPoint.java new file mode 100644 index 00000000000..819e9d32814 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/extensionpoints/IMatcherConfigurationKindExtensionPoint.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.extensionpoints; + +import org.eclipse.papyrus.infra.types.core.Activator; + +/** + * Constants for the extension point matcherConfigurationType + */ +public interface IMatcherConfigurationKindExtensionPoint { + + /** ID of the extension point */ + public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".matcherConfigurationKind"; + + /** attribute factoryClass */ + public static final String FACTORY_CLASS = "factoryClass"; + + /** attribute configurationClass */ + public static final String CONFIGURATION_CLASS = "configurationClass"; +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IContainerFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IContainerFactory.java new file mode 100644 index 00000000000..676136c7be3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IContainerFactory.java @@ -0,0 +1,21 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories; + +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.core.IConfiguredContainerDescriptor; + +public interface IContainerFactory { + + public IConfiguredContainerDescriptor createContainerDescriptor(T configuration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IEditHelperAdviceFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IEditHelperAdviceFactory.java new file mode 100644 index 00000000000..7a3831cbc76 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IEditHelperAdviceFactory.java @@ -0,0 +1,21 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories; + +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.core.IConfiguredEditHelperAdviceDescriptor; + +public interface IEditHelperAdviceFactory { + + public IConfiguredEditHelperAdviceDescriptor createEditHelperAdviceDescriptor(T configuration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IElementTypeConfigurationFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IElementTypeConfigurationFactory.java new file mode 100644 index 00000000000..2d5007089dd --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IElementTypeConfigurationFactory.java @@ -0,0 +1,21 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories; + +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; + +public interface IElementTypeConfigurationFactory { + + IHintedType createElementType(T elementTypeConfiguration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IMatcherFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IMatcherFactory.java new file mode 100644 index 00000000000..f72433f2090 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/IMatcherFactory.java @@ -0,0 +1,21 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories; + +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; + +public interface IMatcherFactory { + + public IElementMatcher createElementMatcher(T configuration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceBindingFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceBindingFactory.java new file mode 100644 index 00000000000..1bb0959254d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceBindingFactory.java @@ -0,0 +1,60 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.core.registries.ContainerConfigurationTypeRegistry; +import org.eclipse.papyrus.infra.types.core.registries.MatcherConfigurationTypeRegistry; + +public abstract class AbstractAdviceBindingFactory extends AbstractAdviceFactory { + + @Override + protected String getTypeId(T adviceConfiguration) { + return adviceConfiguration.getTarget().getIdentifier(); + } + + @Override + protected IContainerDescriptor getContainerDescriptor(T adviceConfiguration) { + ContainerConfiguration containerConfiguration = adviceConfiguration.getContainerConfiguration(); + if (containerConfiguration == null) { + return null; + } + IContainerDescriptor containerDescriptor = ContainerConfigurationTypeRegistry.getInstance().getContainerDescriptor(containerConfiguration); + return containerDescriptor; + } + + @Override + protected IElementMatcher getMatcher(T adviceConfiguration) { + AbstractMatcherConfiguration matcherConfiguration = adviceConfiguration.getMatcherConfiguration(); + if (matcherConfiguration == null) { + return null; + } + IElementMatcher matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); + return matcher; + } + + @Override + protected AdviceBindingInheritance getInheritance(T adviceConfiguration) { + return AdviceBindingInheritance.getAdviceBindingInheritance(adviceConfiguration.getInheritance().getName()); + } + + @Override + protected String getId(T adviceConfiguration) { + return adviceConfiguration.getIdentifier(); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceFactory.java new file mode 100644 index 00000000000..b00a766e027 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractAdviceFactory.java @@ -0,0 +1,44 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 459174 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.core.IConfiguredEditHelperAdviceDescriptor; +import org.eclipse.papyrus.infra.types.core.factories.IEditHelperAdviceFactory; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredEditHelperAdviceDescriptor; + +public abstract class AbstractAdviceFactory implements IEditHelperAdviceFactory { + + @Override + public IConfiguredEditHelperAdviceDescriptor createEditHelperAdviceDescriptor(T adviceConfiguration) { + return new ConfiguredEditHelperAdviceDescriptor(getId(adviceConfiguration), getTypeId(adviceConfiguration), getMatcher(adviceConfiguration), getContainerDescriptor(adviceConfiguration), getEditHelperAdvice(adviceConfiguration), + getInheritance(adviceConfiguration)); + } + + abstract protected String getId(T adviceConfiguration); + + abstract protected String getTypeId(T adviceConfiguration); + + abstract protected IElementMatcher getMatcher(T adviceConfiguration); + + abstract protected IContainerDescriptor getContainerDescriptor(T adviceConfiguration); + + abstract protected IEditHelperAdvice getEditHelperAdvice(T adviceConfiguration); + + abstract protected AdviceBindingInheritance getInheritance(T adviceConfiguration); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractEditHelperAdviceFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractEditHelperAdviceFactory.java new file mode 100644 index 00000000000..17c8f5e0983 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractEditHelperAdviceFactory.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.registries.ContainerConfigurationTypeRegistry; +import org.eclipse.papyrus.infra.types.core.registries.MatcherConfigurationTypeRegistry; + +public abstract class AbstractEditHelperAdviceFactory extends AbstractAdviceFactory { + + @Override + protected String getTypeId(T adviceConfiguration) { + return adviceConfiguration.getTarget().getIdentifier(); + } + + @Override + protected AdviceBindingInheritance getInheritance(T adviceConfiguration) { + return AdviceBindingInheritance.ALL; + } + + @Override + protected IContainerDescriptor getContainerDescriptor(T adviceConfiguration) { + ContainerConfiguration containerConfiguration = ((SpecializationTypeConfiguration) adviceConfiguration.eContainer()).getContainerConfiguration(); + if (containerConfiguration == null) { + return null; + } + IContainerDescriptor containerDescriptor = ContainerConfigurationTypeRegistry.getInstance().getContainerDescriptor(containerConfiguration); + return containerDescriptor; + } + + @Override + protected IElementMatcher getMatcher(T adviceConfiguration) { + AbstractMatcherConfiguration matcherConfiguration = ((SpecializationTypeConfiguration) adviceConfiguration.eContainer()).getMatcherConfiguration(); + if (matcherConfiguration == null) { + return null; + } + IElementMatcher matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); + return matcher; + } + + @Override + protected String getId(T adviceConfiguration) { + return adviceConfiguration.getTarget().getIdentifier(); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractElementTypeConfigurationFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractElementTypeConfigurationFactory.java new file mode 100644 index 00000000000..f23e83cba80 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/AbstractElementTypeConfigurationFactory.java @@ -0,0 +1,70 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import java.net.MalformedURLException; +import java.net.URL; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.IconEntry; +import org.eclipse.papyrus.infra.types.core.factories.IElementTypeConfigurationFactory; +import org.osgi.framework.Bundle; + +public abstract class AbstractElementTypeConfigurationFactory implements IElementTypeConfigurationFactory { + + protected String getDisplayName(T elementTypeConfiguration) { + return elementTypeConfiguration.getName(); + } + + protected URL getIconURL(T elementTypeConfiguration) { + // icon associated to the elementType (GUI) + IconEntry entry = elementTypeConfiguration.getIconEntry(); + URL iconURL = null; + if (entry != null) { + iconURL = getURLFromEntry(entry); + } + return iconURL; + } + + protected String getID(T elementTypeConfiguration) { + return elementTypeConfiguration.getIdentifier(); + } + + /** + * Returns the semantic hint for the elementType from the given configuration + */ + protected String getSemanticHint(T elementTypeConfiguration) { + return elementTypeConfiguration.getHint(); + } + + /** + * @param entry + * @return + */ + protected URL getURLFromEntry(IconEntry entry) { + Bundle bundle = Platform.getBundle(entry.getBundleId()); + if (bundle == null) { + return null; + } + URL result = bundle.getEntry(entry.getIconPath()); + if (result == null) { + try { + result = new URL(entry.getIconPath()); + } catch (MalformedURLException e) { + result = null; + } + } + return result; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultAdviceBindingFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultAdviceBindingFactory.java new file mode 100644 index 00000000000..36a8af3bf9d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultAdviceBindingFactory.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; +import org.eclipse.papyrus.infra.types.AdviceBindingConfiguration; + +public class DefaultAdviceBindingFactory extends AbstractAdviceBindingFactory { + + /** + * + * @see org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceFactory#getEditHelperAdvice(org.eclipse.papyrus.infra.types.AdviceConfiguration) + * + * @param adviceConfiguration + * @return + */ + @Override + protected IEditHelperAdvice getEditHelperAdvice(AdviceBindingConfiguration adviceConfiguration) { + IEditHelperAdvice editHelperAdvice = ClassLoaderHelper.newInstance(adviceConfiguration.getEditHelperAdviceClassName(), IEditHelperAdvice.class); + return editHelperAdvice; + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultEditHelperAdviceFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultEditHelperAdviceFactory.java new file mode 100644 index 00000000000..e4557022b85 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultEditHelperAdviceFactory.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; +import org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration; + +public class DefaultEditHelperAdviceFactory extends AbstractEditHelperAdviceFactory { + + /** + * + * @see org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceFactory#getEditHelperAdvice(org.eclipse.papyrus.infra.types.AdviceConfiguration) + * + * @param adviceConfiguration + * @return + */ + @Override + protected IEditHelperAdvice getEditHelperAdvice(EditHelperAdviceConfiguration adviceConfiguration) { + IEditHelperAdvice editHelperAdvice = ClassLoaderHelper.newInstance(adviceConfiguration.getEditHelperAdviceClassName(), IEditHelperAdvice.class); + return editHelperAdvice; + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultMatcherFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultMatcherFactory.java new file mode 100644 index 00000000000..ba4cf0ae713 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/DefaultMatcherFactory.java @@ -0,0 +1,35 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; +import org.eclipse.papyrus.infra.types.MatcherConfiguration; +import org.eclipse.papyrus.infra.types.core.factories.IMatcherFactory; + +public class DefaultMatcherFactory implements IMatcherFactory { + + /** + * + * @see org.eclipse.papyrus.infra.types.core.factories.IMatcherFactory#createElementMatcher(org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration) + * + * @param matcherConfiguration + * @return + */ + @Override + public IElementMatcher createElementMatcher(MatcherConfiguration matcherConfiguration) { + String matcherClassName = matcherConfiguration.getMatcherClassName(); + IElementMatcher matcher = ClassLoaderHelper.newInstance(matcherClassName, IElementMatcher.class); + return matcher; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/MetamodelTypeFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/MetamodelTypeFactory.java new file mode 100644 index 00000000000..5bf6f755a67 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/MetamodelTypeFactory.java @@ -0,0 +1,43 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper; +import org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedMetamodelElementType; + +public class MetamodelTypeFactory extends AbstractElementTypeConfigurationFactory { + + /** + * {@inheritDoc} + */ + public IHintedType createElementType(MetamodelTypeConfiguration configuration) { + return new ConfiguredHintedMetamodelElementType(getID(configuration), getIconURL(configuration), getDisplayName(configuration), getEClass(configuration), createEditHelper(configuration), getSemanticHint(configuration), configuration); + } + + protected EClass getEClass(MetamodelTypeConfiguration configuration) { + return configuration.getEClass(); + } + + protected IEditHelper createEditHelper(MetamodelTypeConfiguration configuration) { + String editHelperClassName = configuration.getEditHelperClassName(); + if (editHelperClassName == null) { + return null; + } + IEditHelper editHelper = ClassLoaderHelper.newInstance(editHelperClassName, IEditHelper.class); + return editHelper; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/SpecializationTypeFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/SpecializationTypeFactory.java new file mode 100644 index 00000000000..f790f9f6127 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/factories/impl/SpecializationTypeFactory.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 459174 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.factories.impl; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType; +import org.eclipse.papyrus.infra.types.core.impl.NullEditHelperAdvice; +import org.eclipse.papyrus.infra.types.core.registries.AdviceConfigurationTypeRegistry; +import org.eclipse.papyrus.infra.types.core.registries.ContainerConfigurationTypeRegistry; +import org.eclipse.papyrus.infra.types.core.registries.MatcherConfigurationTypeRegistry; + +public class SpecializationTypeFactory extends AbstractElementTypeConfigurationFactory { + + /** + * {@inheritDoc} + */ + @Override + public IHintedType createElementType(SpecializationTypeConfiguration elementTypeConfiguration) { + return new ConfiguredHintedSpecializationElementType(getID(elementTypeConfiguration), getIconURL(elementTypeConfiguration), getDisplayName(elementTypeConfiguration), getSpecializedID(elementTypeConfiguration), + createElementMatcher(elementTypeConfiguration), createContainerDescriptor(elementTypeConfiguration), getEditHelperAdvice(elementTypeConfiguration), getSemanticHint(elementTypeConfiguration), elementTypeConfiguration); + } + + protected IEditHelperAdvice getEditHelperAdvice(SpecializationTypeConfiguration elementTypeConfiguration) { + AbstractEditHelperAdviceConfiguration editHelperAdviceConfiguration = elementTypeConfiguration.getEditHelperAdviceConfiguration(); + if (editHelperAdviceConfiguration == null) { + return NullEditHelperAdvice.getInstance(); + } + IAdviceBindingDescriptor editHelperAdviceDescriptor = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(editHelperAdviceConfiguration); + return editHelperAdviceDescriptor.getEditHelperAdvice(); + } + + protected IContainerDescriptor createContainerDescriptor(SpecializationTypeConfiguration elementTypeConfiguration) { + ContainerConfiguration containerConfiguration = elementTypeConfiguration.getContainerConfiguration(); + if (containerConfiguration == null) { + return null; + } + IContainerDescriptor containerDescriptor = ContainerConfigurationTypeRegistry.getInstance().getContainerDescriptor(containerConfiguration); + return containerDescriptor; + } + + protected IElementType[] getSpecializedID(SpecializationTypeConfiguration elementTypeConfiguration) { + // Specialized elementTypes + List specializedTypes = new ArrayList((elementTypeConfiguration).getSpecializedTypesID().size()); + for (String specializedTypeId : (elementTypeConfiguration).getSpecializedTypesID()) { + IElementType specializedType = ElementTypeRegistry.getInstance().getType(specializedTypeId); + if (specializedType != null) { + specializedTypes.add(specializedType); + } else { + Activator.log.info("Unable to add specialization \"" + getID(elementTypeConfiguration) + "\" to \"" + specializedTypeId + "\""); + } + } + IElementType[] elementTypes = specializedTypes.toArray(new IElementType[] {}); + return elementTypes; + } + + protected IElementMatcher createElementMatcher(SpecializationTypeConfiguration configuration) { + AbstractMatcherConfiguration matcherConfiguration = configuration.getMatcherConfiguration(); + if (matcherConfiguration == null) { + return null; + } + IElementMatcher matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); + return matcher; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredEditHelperAdviceDescriptor.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredEditHelperAdviceDescriptor.java new file mode 100644 index 00000000000..88b47929651 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredEditHelperAdviceDescriptor.java @@ -0,0 +1,74 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.impl; + +import org.eclipse.gmf.runtime.emf.type.core.AdviceBindingInheritance; +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.core.IConfiguredEditHelperAdviceDescriptor; + +public class ConfiguredEditHelperAdviceDescriptor implements IConfiguredEditHelperAdviceDescriptor { + + protected T editHelperAdviceConfiguration; + + protected String id; + + protected String typeId; + + protected IElementMatcher matcher; + + protected IContainerDescriptor containerDescriptor; + + protected IEditHelperAdvice editHelperAdvice; + + protected AdviceBindingInheritance inheritance; + + public ConfiguredEditHelperAdviceDescriptor(String id, String typeId, IElementMatcher matcher, IContainerDescriptor containerDescriptor, IEditHelperAdvice editHelperAdvice, AdviceBindingInheritance inheritance) { + this.id = id; + this.typeId = typeId; + this.matcher = matcher; + this.containerDescriptor = containerDescriptor; + this.editHelperAdvice = editHelperAdvice; + this.inheritance = inheritance; + } + + public String getId() { + return this.id; + } + + public String getTypeId() { + return this.typeId; + } + + public IElementMatcher getMatcher() { + return this.matcher; + } + + public IContainerDescriptor getContainerDescriptor() { + return this.containerDescriptor; + } + + public IEditHelperAdvice getEditHelperAdvice() { + return this.editHelperAdvice; + } + + public AdviceBindingInheritance getInheritance() { + return this.inheritance; + } + + public void init(T editHelperAdviceConfiguration) { + this.editHelperAdviceConfiguration = editHelperAdviceConfiguration; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedMetamodelElementType.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedMetamodelElementType.java new file mode 100644 index 00000000000..c14be0aecb6 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedMetamodelElementType.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.impl; + +import java.net.URL; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.gmf.runtime.emf.type.core.MetamodelType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.IConfiguredHintedElementType; + +public class ConfiguredHintedMetamodelElementType extends MetamodelType implements IConfiguredHintedElementType { + + private String semanticHint; + + private ElementTypeConfiguration configuration; + + public ConfiguredHintedMetamodelElementType(String id, URL iconURL, String displayName, EClass eClass, IEditHelper editHelper, String semanticHint, MetamodelTypeConfiguration configuration) { + super(id, iconURL, displayName, eClass, editHelper); + this.semanticHint = semanticHint; + this.configuration = configuration; + } + + public String getSemanticHint() { + return semanticHint; + } + + public void setSemanticHint(String semanticHint) { + this.semanticHint = semanticHint; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return "Configured Metamodel Type: " + getDisplayName() + " [" + getId() + "]"; + } + + /** + * @see org.eclipse.papyrus.infra.types.IConfiguredHintedElementType#getConfiguration() + * + * @return + */ + @Override + public ElementTypeConfiguration getConfiguration() { + return configuration; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedSpecializationElementType.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedSpecializationElementType.java new file mode 100644 index 00000000000..58d4818e7e9 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/ConfiguredHintedSpecializationElementType.java @@ -0,0 +1,75 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.impl; + +import java.net.URL; + +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.SpecializationType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.IConfiguredHintedElementType; + + +public class ConfiguredHintedSpecializationElementType extends SpecializationType implements IConfiguredHintedElementType { + + private String semanticHint; + + private ElementTypeConfiguration configuration; + + /** + * @param id + * @param iconURL + * @param displayName + * @param elementTypes + * @param matcher + * @param descriptor + * @param editHelperAdvice + * @param iElementCreationValidator + */ + public ConfiguredHintedSpecializationElementType(String id, URL iconURL, String displayName, IElementType[] elementTypes, IElementMatcher matcher, IContainerDescriptor containerDescriptor, IEditHelperAdvice editHelperAdvice, String semanticHint, + SpecializationTypeConfiguration configuration) { + super(id, iconURL, displayName, elementTypes, matcher, containerDescriptor, editHelperAdvice); + this.semanticHint = semanticHint; + this.configuration = configuration; + } + + public String getSemanticHint() { + return semanticHint; + } + + public void setSemanticHint(String semanticHint) { + this.semanticHint = semanticHint; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return "Configured Specialization Type: " + getDisplayName() + " [" + getId() + "]"; + } + + /** + * @see org.eclipse.papyrus.infra.types.IConfiguredHintedElementType#getConfiguration() + * + * @return + */ + @Override + public ElementTypeConfiguration getConfiguration() { + return configuration; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/NullEditHelperAdvice.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/NullEditHelperAdvice.java new file mode 100644 index 00000000000..944ba6058f1 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/impl/NullEditHelperAdvice.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.impl; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; + +public class NullEditHelperAdvice extends AbstractEditHelperAdvice { + + private static NullEditHelperAdvice instance = null; + + private NullEditHelperAdvice() { + super(); + } + + public final static synchronized NullEditHelperAdvice getInstance() { + if(instance == null) { + instance = new NullEditHelperAdvice(); + } + return instance; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/AbstractNotifierEditHelper.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/AbstractNotifierEditHelper.java new file mode 100644 index 00000000000..0a030fda643 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/AbstractNotifierEditHelper.java @@ -0,0 +1,258 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.IdentityCommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceApprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceDisapprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdvicePhase; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceRequestEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperApprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperDisapprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperRequestEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ExecutableAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ExecutableEditHelperEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IdentityAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IdentityEditHelperEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.UnexecutableAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.UnexecutableEditHelperEvent; + +/** + * An override of the {@link AbstractEditHelper} to provide Notifications during edithelper execution. + * The notifications provide EditHelper trace information for testing and debugging purpose. + */ +public abstract class AbstractNotifierEditHelper extends AbstractEditHelper { + + /** + * + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#getEditCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) + * + * @param req + * @return + */ + @Override + public ICommand getEditCommand(IEditCommandRequest req) { + TypesEventsChain eventsChain = new TypesEventsChain(this, req); + // Get the matching edit helper advice + IEditHelperAdvice[] advice = getEditHelperAdvice(req); + // Consult advisors to allow them to configure the request + configureRequest(req, advice, eventsChain); + // Consult advisors to allow them approve the request + boolean approved = approveRequest(req, advice, eventsChain); + if (!approved) { + // Notify listeners + if (Platform.inDebugMode()) { + TypesListenersRegistry.getInstance().notifyChain(eventsChain); + } + return null; + } + ICommand result = getEditCommand(req, advice, eventsChain); + if (result != null) { + // Notify listeners + if (Platform.inDebugMode()) { + TypesListenersRegistry.getInstance().notifyChain(eventsChain); + } + return result.reduce(); + } + // Notify listeners + if (Platform.inDebugMode()) { + TypesListenersRegistry.getInstance().notifyChain(eventsChain); + } + return result; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#getEditCommand(IEditCommandRequest, IEditHelperAdvice[]) + * + * @param req + * @param advice + * @param eventsChain + * @return + */ + private ICommand getEditCommand(IEditCommandRequest req, IEditHelperAdvice[] advice, TypesEventsChain eventsChain) { + ICompositeCommand command = createCommand(req); + // Get 'before' commands from matching element type + // specializations + if (advice != null) { + for (int i = 0; i < advice.length; i++) { + IEditHelperAdvice nextAdvice = advice[i]; + // Before commands + ICommand beforeAdvice = nextAdvice.getBeforeEditCommand(req); + if (beforeAdvice != null) { + if (beforeAdvice.canExecute()) { + if (Platform.inDebugMode()) { + if (beforeAdvice.equals(IdentityCommand.INSTANCE)) { + IdentityAdviceEvent event = new IdentityAdviceEvent(req, this, nextAdvice, advice, AdvicePhase.before); + eventsChain.addBeforeAdvicesCommandsEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } else { + ExecutableAdviceEvent event = new ExecutableAdviceEvent(req, this, nextAdvice, beforeAdvice, advice, AdvicePhase.before); + eventsChain.addBeforeAdvicesCommandsEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + command.compose(beforeAdvice); + } else { + if (Platform.inDebugMode()) { + UnexecutableAdviceEvent event = new UnexecutableAdviceEvent(req, this, nextAdvice, beforeAdvice, advice, AdvicePhase.before); + eventsChain.addBeforeAdvicesCommandsEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + return beforeAdvice; + } + } + } + } + // Check if the parameter has been set to ignore the default edit command. + Object replaceParam = req.getParameter(IEditCommandRequest.REPLACE_DEFAULT_COMMAND); + if (replaceParam != Boolean.TRUE) { + // Get 'instead' command from this edit helper + ICommand insteadCommand = getInsteadCommand(req); + if (insteadCommand != null) { + if (insteadCommand.canExecute()) { + if (Platform.inDebugMode()) { + if (insteadCommand.equals(IdentityCommand.INSTANCE)) { + IdentityEditHelperEvent event = new IdentityEditHelperEvent(req, this); + eventsChain.setEditHelperCommandEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } else { + ExecutableEditHelperEvent event = new ExecutableEditHelperEvent(req, this, insteadCommand); + eventsChain.setEditHelperCommandEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + command.compose(insteadCommand); + } else { + if (Platform.inDebugMode()) { + UnexecutableEditHelperEvent event = new UnexecutableEditHelperEvent(req, this, insteadCommand); + eventsChain.setEditHelperCommandEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + return insteadCommand; + } + } + } + // Get 'after' commands from matching element type + // specializations + if (advice != null) { + for (int i = 0; i < advice.length; i++) { + IEditHelperAdvice nextAdvice = advice[i]; + // After commands + ICommand afterAdvice = nextAdvice.getAfterEditCommand(req); + if (afterAdvice != null) { + if (afterAdvice.canExecute()) { + if (Platform.inDebugMode()) { + if (afterAdvice.equals(IdentityCommand.INSTANCE)) { + IdentityAdviceEvent event = new IdentityAdviceEvent(req, this, nextAdvice, advice, AdvicePhase.after); + eventsChain.addBeforeAdvicesCommandsEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } else { + ExecutableAdviceEvent event = new ExecutableAdviceEvent(req, this, nextAdvice, afterAdvice, advice, AdvicePhase.after); + eventsChain.addBeforeAdvicesCommandsEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + command.compose(afterAdvice); + } else { + if (Platform.inDebugMode()) { + UnexecutableAdviceEvent event = new UnexecutableAdviceEvent(req, this, nextAdvice, afterAdvice, advice, AdvicePhase.after); + eventsChain.addBeforeAdvicesCommandsEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + return afterAdvice; + } + } + } + } + return command.isEmpty() ? null : command; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#configureRequest(IEditCommandRequest, IEditHelperAdvice[]) + * + * @param req + * @param advice + * @param eventsChain + */ + private void configureRequest(IEditCommandRequest req, IEditHelperAdvice[] advice, TypesEventsChain eventsChain) { + if (advice != null) { + for (int i = 0; i < advice.length; i++) { + IEditHelperAdvice nextAdvice = advice[i]; + nextAdvice.configureRequest(req); + if (Platform.inDebugMode()) { + AdviceRequestEvent event = new AdviceRequestEvent(req, this, nextAdvice, advice); + eventsChain.addAdviceRequestConfigurationEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + } + // All advice has configured the request. Now consult this edit helper. + configureRequest(req); + if (Platform.inDebugMode()) { + EditHelperRequestEvent event = new EditHelperRequestEvent(req, this); + eventsChain.setEditHelperRequestConfigurationEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper#approveRequest(IEditCommandRequest, IEditHelperAdvice[]) + * + * @param req + * @param advice + * @param eventsChain + * @return + */ + private boolean approveRequest(IEditCommandRequest req, IEditHelperAdvice[] advice, TypesEventsChain eventsChain) { + if (advice != null) { + for (int i = 0; i < advice.length; i++) { + IEditHelperAdvice nextAdvice = advice[i]; + boolean approved = nextAdvice.approveRequest(req); + if (!approved) { + if (Platform.inDebugMode()) { + AdviceDisapprovedEvent event = new AdviceDisapprovedEvent(req, this, nextAdvice, advice); + eventsChain.addAdviceApprovalEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + return false; + } else { + if (Platform.inDebugMode()) { + AdviceApprovedEvent event = new AdviceApprovedEvent(req, this, nextAdvice, advice); + eventsChain.addAdviceApprovalEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + } + } + // All advice has approved the request. Now consult this edit helper. + boolean approved = approveRequest(req); + if (Platform.inDebugMode()) { + if (!approved) { + EditHelperDisapprovedEvent event = new EditHelperDisapprovedEvent(req, this); + eventsChain.setEditHelperApprovalEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } else { + EditHelperApprovedEvent event = new EditHelperApprovedEvent(req, this); + eventsChain.setEditHelperApprovalEvent(event); + TypesListenersRegistry.getInstance().notifyEvent(event); + } + } + return approved; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsChainListener.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsChainListener.java new file mode 100644 index 00000000000..a149575e756 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsChainListener.java @@ -0,0 +1,21 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification; + +/** + * Interface to implemented by listeners that want to be notified of {@link TypesEventsChain} + */ +public interface ITypesEventsChainListener { + + public void notifyChain(TypesEventsChain chain); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsListener.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsListener.java new file mode 100644 index 00000000000..5dbbb5ab15b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/ITypesEventsListener.java @@ -0,0 +1,20 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification; + +import org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent; + +public interface ITypesEventsListener { + + public void notifyEvent(ITypesEvent event); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesEventsChain.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesEventsChain.java new file mode 100644 index 00000000000..1743aa3632d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesEventsChain.java @@ -0,0 +1,245 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.core.notification.events.AbstractTypesEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceApprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceDisapprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.AdviceRequestEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperApprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.EditHelperDisapprovedEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ExecutableAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.ExecutableEditHelperEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IdentityAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.IdentityEditHelperEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.UnexecutableAdviceEvent; +import org.eclipse.papyrus.infra.types.core.notification.events.UnexecutableEditHelperEvent; + +public class TypesEventsChain { + + /** + * Timestamp of the creation of the chain + */ + private long timestamp; + + /** + * The {@link IEditHelper} that triggered the {@link TypesEventsChain} + */ + private IEditHelper editHelper; + + /** + * The {@link IEditCommandRequest} that triggered the {@link TypesEventsChain} + */ + private IEditCommandRequest req; + + TypesEventsChain(IEditHelper editHelper, IEditCommandRequest req) { + timestamp = System.currentTimeMillis(); + this.editHelper = editHelper; + this.req = req; + } + + /** + * The various categories of events that occur during the execution of the {@link IEditHelper} + */ + private List adviceRequestConfigurationEvents = new ArrayList(); + + private AbstractTypesEvent editHelperRequestConfigurationEvent = null; + + private List adviceApprovalEvents = new ArrayList(); + + private AbstractTypesEvent editHelperApprovalEvent = null; + + private List beforeAdvicesCommandsEvents = new ArrayList(); + + private List afterAdvicesCommandsEvents = new ArrayList(); + + private AbstractTypesEvent editHelperCommandEvent = null; + + /** + * @return the adviceApprovalEvents + */ + public List getAdviceApprovalEvents() { + return adviceApprovalEvents; + } + + /** + * Add a {@link AdviceDisapprovedEvent} or {@link AdviceApprovedEvent} event + * + * @param adviceApprovalEvent + */ + public void addAdviceApprovalEvent(AbstractTypesEvent adviceApprovalEvent) { + if (adviceApprovalEvent instanceof AdviceDisapprovedEvent || adviceApprovalEvent instanceof AdviceApprovedEvent) { + adviceApprovalEvents.add(adviceApprovalEvent); + } + } + + /** + * @return the editHelperAprrovalEvent + */ + public AbstractTypesEvent getEditHelperApprovalEvent() { + return editHelperApprovalEvent; + } + + /** + * @param editHelperAprrovalEvent + * the editHelperAprrovalEvent to set + */ + public void setEditHelperApprovalEvent(AbstractTypesEvent editHelperApprovalEvent) { + if (editHelperApprovalEvent instanceof EditHelperDisapprovedEvent || editHelperApprovalEvent instanceof EditHelperApprovedEvent) { + this.editHelperApprovalEvent = editHelperApprovalEvent; + } + } + + /** + * @return the beforeAdvicesCommandsEvents + */ + public List getBeforeAdvicesCommandsEvents() { + return beforeAdvicesCommandsEvents; + } + + /** + * Add a {@link ExecutableAdviceEvent}, {@link UnexecutableAdviceEvent} or {@link IdentityAdviceEvent} event + * + * @param beforeAdvicesCommandsEvents + * the beforeAdvicesCommandsEvents to set + */ + public void addBeforeAdvicesCommandsEvent(AbstractTypesEvent beforeAdvicesCommandEvent) { + if (beforeAdvicesCommandEvent instanceof ExecutableAdviceEvent || beforeAdvicesCommandEvent instanceof UnexecutableAdviceEvent || beforeAdvicesCommandEvent instanceof IdentityAdviceEvent) { + beforeAdvicesCommandsEvents.add(beforeAdvicesCommandEvent); + } + } + + /** + * @return the afterAdvicesCommandsEvents + */ + public List getAfterAdvicesCommandsEvents() { + return afterAdvicesCommandsEvents; + } + + /** + * Add a {@link ExecutableAdviceEvent}, {@link UnexecutableAdviceEvent} or {@link IdentityAdviceEvent} event + * + * @param afterAdvicesCommandEvent + */ + public void addAfterAdvicesCommandsEvent(AbstractTypesEvent afterAdvicesCommandEvent) { + if (afterAdvicesCommandEvent instanceof ExecutableAdviceEvent || afterAdvicesCommandEvent instanceof UnexecutableAdviceEvent || afterAdvicesCommandEvent instanceof IdentityAdviceEvent) { + afterAdvicesCommandsEvents.add(afterAdvicesCommandEvent); + } + } + + /** + * @return the editHelperCommandEvent + */ + public AbstractTypesEvent getEditHelperCommandEvent() { + return editHelperCommandEvent; + } + + /** + * @param editHelperCommandEvent + * the editHelperCommandEvent to set ({@link ExecutableEditHelperEvent}, {@link UnexecutableEditHelperEvent} or + * {@link IdentityEditHelperEvent}) + */ + public void setEditHelperCommandEvent(AbstractTypesEvent editHelperCommandEvent) { + if (editHelperCommandEvent instanceof ExecutableEditHelperEvent || editHelperCommandEvent instanceof UnexecutableEditHelperEvent || editHelperCommandEvent instanceof IdentityEditHelperEvent) { + this.editHelperCommandEvent = editHelperCommandEvent; + } + } + + /** + * Returns all the events that occurred during the execution of the {@link IEditHelper} (i.e. all events categories) + * + * @return + */ + public List getAllEvents() { + List result = new ArrayList(); + if (!adviceRequestConfigurationEvents.isEmpty()) { + result.addAll(adviceRequestConfigurationEvents); + } + if (editHelperRequestConfigurationEvent != null) { + result.add(editHelperRequestConfigurationEvent); + } + if (!adviceApprovalEvents.isEmpty()) { + result.addAll(adviceApprovalEvents); + } + if (editHelperApprovalEvent != null) { + result.add(editHelperApprovalEvent); + } + if (!beforeAdvicesCommandsEvents.isEmpty()) { + result.addAll(beforeAdvicesCommandsEvents); + } + if (editHelperCommandEvent != null) { + result.add(editHelperCommandEvent); + } + if (!afterAdvicesCommandsEvents.isEmpty()) { + result.addAll(afterAdvicesCommandsEvents); + } + return result; + } + + /** + * @return the timestamp creation of this {@link TypesEventsChain} + */ + public long getTimestamp() { + return timestamp; + } + + /** + * @return the req + */ + public IEditCommandRequest getRequest() { + return req; + } + + /** + * The Simple Name of the class of the {@link IEditHelper} that triggered this {@link TypesEventsChain} + * + * @return + */ + public String getName() { + return editHelper.getClass().getSimpleName(); + } + + /** + * @return the adviceRequestConfigurationEvents + */ + public List getAdviceRequestConfigurationEvents() { + return adviceRequestConfigurationEvents; + } + + /** + * @param adviceConfigureEvent + */ + public void addAdviceRequestConfigurationEvent(AdviceRequestEvent adviceConfigureEvent) { + adviceRequestConfigurationEvents.add(adviceConfigureEvent); + } + + /** + * @return the editHelperRequestConfigurationEvent + */ + public AbstractTypesEvent getEditHelperRequestConfigurationEvent() { + return editHelperRequestConfigurationEvent; + } + + /** + * @param editHelperRequestConfigurationEvent + * the editHelperRequestConfigurationEvent to set + */ + public void setEditHelperRequestConfigurationEvent(AbstractTypesEvent editHelperRequestConfigurationEvent) { + this.editHelperRequestConfigurationEvent = editHelperRequestConfigurationEvent; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesListenersRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesListenersRegistry.java new file mode 100644 index 00000000000..e27face6403 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/TypesListenersRegistry.java @@ -0,0 +1,74 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent; + +/** + * Singleton used to register eventsChains listeners ({@link ITypesEventsChainListener}) + */ +public class TypesListenersRegistry { + + private static Set eventChainListeners = null; + + private static Set eventListeners = null; + + private static TypesListenersRegistry instance = null; + + private TypesListenersRegistry() { + } + + public static synchronized TypesListenersRegistry getInstance() { + if (instance == null) { + instance = new TypesListenersRegistry(); + init(); + } + return instance; + } + + public static void init() { + eventChainListeners = new HashSet(); + eventListeners = new HashSet(); + } + + public void addEventChainListener(ITypesEventsChainListener listener) { + eventChainListeners.add(listener); + } + + public void removeEventChainListener(ITypesEventsChainListener listener) { + eventChainListeners.remove(listener); + } + + public void addEventListener(ITypesEventsListener listener) { + eventListeners.add(listener); + } + + public void removeEventChainListener(ITypesEventsListener listener) { + eventListeners.remove(listener); + } + + public void notifyChain(TypesEventsChain chain) { + for (ITypesEventsChainListener eventsChainListener : eventChainListeners) { + eventsChainListener.notifyChain(chain); + } + } + + public void notifyEvent(ITypesEvent event) { + for (ITypesEventsListener eventsListener : eventListeners) { + eventsListener.notifyEvent(event); + } + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractApprovedEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractApprovedEvent.java new file mode 100644 index 00000000000..c651ef40cad --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractApprovedEvent.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractApprovedEvent extends AbstractTypesEvent { + + public AbstractApprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventType() + * + * @return + */ + @Override + public TypesEventKind getEventType() { + return TypesEventKind.Approved; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractDisapprovedEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractDisapprovedEvent.java new file mode 100644 index 00000000000..a535db4dcd4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractDisapprovedEvent.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractDisapprovedEvent extends AbstractTypesEvent { + + public AbstractDisapprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventType() + * + * @return + */ + @Override + public TypesEventKind getEventType() { + return TypesEventKind.Disapproved; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractExecutableEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractExecutableEvent.java new file mode 100644 index 00000000000..a1b2fb6fd8d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractExecutableEvent.java @@ -0,0 +1,46 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractExecutableEvent extends AbstractTypesEvent { + + private ICommand command; + + + public AbstractExecutableEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { + super(req, editHelper); + this.command = command; + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventType() + * + * @return + */ + @Override + public TypesEventKind getEventType() { + return TypesEventKind.Executable; + } + + /** + * @return the command + */ + public ICommand getCommand() { + return command; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractIdentityEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractIdentityEvent.java new file mode 100644 index 00000000000..2042399d0bc --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractIdentityEvent.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractIdentityEvent extends AbstractTypesEvent { + + public AbstractIdentityEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventType() + * + * @return + */ + @Override + public TypesEventKind getEventType() { + return TypesEventKind.Identity; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractRequestEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractRequestEvent.java new file mode 100644 index 00000000000..4f3ef2055b3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractRequestEvent.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractRequestEvent extends AbstractTypesEvent { + + public AbstractRequestEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventType() + * + * @return + */ + @Override + public TypesEventKind getEventType() { + return TypesEventKind.RequestConfiguration; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractTypesEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractTypesEvent.java new file mode 100644 index 00000000000..89d2bcc28e5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractTypesEvent.java @@ -0,0 +1,77 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractTypesEvent implements ITypesEvent { + + /** + * Timestamp of the creation of this event + */ + private long timestamp; + + /** + * The {@link IEditCommandRequest} that triggered this {@link ITypesEvent} + */ + private IEditCommandRequest request; + + private IEditHelper editHelper; + + public AbstractTypesEvent(IEditCommandRequest req, IEditHelper editHelper) { + this(); + this.request = req; + this.editHelper = editHelper; + } + + /** + * @return the {@link IEditCommandRequest} that triggered the event + */ + public IEditCommandRequest getRequest() { + return request; + } + + /** + * @return the {@link IEditHelper} that triggered the event + */ + public IEditHelper getEditHelper() { + return editHelper; + } + + AbstractTypesEvent() { + timestamp = System.currentTimeMillis(); + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getTimestamp() + * + * @return + */ + @Override + public long getTimestamp() { + return timestamp; + } + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventName() + * + * @return + */ + @Override + public String getEventName() { + return this.getClass().getSimpleName(); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractUnexecutableEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractUnexecutableEvent.java new file mode 100644 index 00000000000..b80125a14db --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AbstractUnexecutableEvent.java @@ -0,0 +1,48 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractUnexecutableEvent extends AbstractTypesEvent { + + public AbstractUnexecutableEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { + super(req, editHelper); + this.command = command; + } + + /** + * @return the command + */ + public ICommand getCommand() { + return command; + } + + private ICommand command; + + + + + /** + * + * @see org.eclipse.papyrus.infra.types.core.notification.events.ITypesEvent#getEventType() + * + * @return + */ + @Override + public TypesEventKind getEventType() { + return TypesEventKind.Unexecutable; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceApprovedEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceApprovedEvent.java new file mode 100644 index 00000000000..031a6c45e21 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceApprovedEvent.java @@ -0,0 +1,46 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class AdviceApprovedEvent extends AbstractApprovedEvent implements IAdviceEvent { + + private IEditHelperAdvice advice; + + private IEditHelperAdvice[] advices; + + public AdviceApprovedEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice nextAdvice, IEditHelperAdvice[] advices) { + super(req, editHelper); + this.advice = nextAdvice; + this.advices = advices; + } + + /** + * @return the advice + */ + @Override + public IEditHelperAdvice getAdvice() { + return advice; + } + + /** + * @return the advices + */ + @Override + public IEditHelperAdvice[] getAdvices() { + return advices; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceDisapprovedEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceDisapprovedEvent.java new file mode 100644 index 00000000000..6dc87187828 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceDisapprovedEvent.java @@ -0,0 +1,46 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class AdviceDisapprovedEvent extends AbstractDisapprovedEvent implements IAdviceEvent { + + private IEditHelperAdvice advice; + + IEditHelperAdvice[] advices; + + /** + * @return the advice + */ + @Override + public IEditHelperAdvice getAdvice() { + return advice; + } + + /** + * @return the advices + */ + @Override + public IEditHelperAdvice[] getAdvices() { + return advices; + } + + public AdviceDisapprovedEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice nextAdvice, IEditHelperAdvice[] advices) { + super(req, editHelper); + this.advice = nextAdvice; + this.advices = advices; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdvicePhase.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdvicePhase.java new file mode 100644 index 00000000000..cee10473d8a --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdvicePhase.java @@ -0,0 +1,17 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +public enum AdvicePhase { + before, after +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceRequestEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceRequestEvent.java new file mode 100644 index 00000000000..f83e1ebcd36 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/AdviceRequestEvent.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class AdviceRequestEvent extends AbstractRequestEvent implements IAdviceEvent { + + private IEditHelperAdvice advice; + + private IEditHelperAdvice[] advices; + + public AdviceRequestEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, IEditHelperAdvice[] advices) { + super(req, editHelper); + this.advice = advice; + this.advices = advices; + } + + /** + * @see org.eclipse.papyrus.infra.types.notification.events.IAdviceEvent#getAdvice() + * + * @return + */ + @Override + public IEditHelperAdvice getAdvice() { + return advice; + } + + /** + * @see org.eclipse.papyrus.infra.types.notification.events.IAdviceEvent#getAdvices() + * + * @return + */ + @Override + public IEditHelperAdvice[] getAdvices() { + return advices; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperApprovedEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperApprovedEvent.java new file mode 100644 index 00000000000..de929f2a089 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperApprovedEvent.java @@ -0,0 +1,23 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class EditHelperApprovedEvent extends AbstractApprovedEvent { + + public EditHelperApprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperDisapprovedEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperDisapprovedEvent.java new file mode 100644 index 00000000000..3f736c2b299 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperDisapprovedEvent.java @@ -0,0 +1,23 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class EditHelperDisapprovedEvent extends AbstractDisapprovedEvent { + + public EditHelperDisapprovedEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperRequestEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperRequestEvent.java new file mode 100644 index 00000000000..2ab1cd9a095 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/EditHelperRequestEvent.java @@ -0,0 +1,23 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class EditHelperRequestEvent extends AbstractRequestEvent { + + public EditHelperRequestEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableAdviceEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableAdviceEvent.java new file mode 100644 index 00000000000..e36c736393f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableAdviceEvent.java @@ -0,0 +1,57 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class ExecutableAdviceEvent extends AbstractExecutableEvent implements IAdviceEvent { + + private IEditHelperAdvice advice; + + private IEditHelperAdvice[] advices; + + private AdvicePhase advicePhase; + + public ExecutableAdviceEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, ICommand command, IEditHelperAdvice[] advices, AdvicePhase advicePhase) { + super(req, editHelper, command); + this.advice = advice; + this.advices = advices; + this.advicePhase = advicePhase; + } + + /** + * @return the advice + */ + @Override + public IEditHelperAdvice getAdvice() { + return advice; + } + + /** + * @return the advices + */ + @Override + public IEditHelperAdvice[] getAdvices() { + return advices; + } + + /** + * @return the advicePhase + */ + public AdvicePhase getAdvicePhase() { + return advicePhase; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableEditHelperEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableEditHelperEvent.java new file mode 100644 index 00000000000..28736d0503d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ExecutableEditHelperEvent.java @@ -0,0 +1,24 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class ExecutableEditHelperEvent extends AbstractExecutableEvent { + + public ExecutableEditHelperEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { + super(req, editHelper, command); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IAdviceEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IAdviceEvent.java new file mode 100644 index 00000000000..e4c1c07caec --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IAdviceEvent.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; + +public interface IAdviceEvent extends ITypesEvent { + + /** + * @return the advice + */ + public IEditHelperAdvice getAdvice(); + + /** + * @return the advices + */ + public IEditHelperAdvice[] getAdvices(); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ITypesEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ITypesEvent.java new file mode 100644 index 00000000000..b72c243279d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/ITypesEvent.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public interface ITypesEvent { + + public long getTimestamp(); + + public String getEventName(); + + public TypesEventKind getEventType(); + + public IEditCommandRequest getRequest(); + + public IEditHelper getEditHelper(); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityAdviceEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityAdviceEvent.java new file mode 100644 index 00000000000..ceaebb3abb7 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityAdviceEvent.java @@ -0,0 +1,56 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class IdentityAdviceEvent extends AbstractIdentityEvent implements IAdviceEvent { + + private IEditHelperAdvice advice; + + private IEditHelperAdvice[] advices; + + private AdvicePhase advicePhase; + + public IdentityAdviceEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, IEditHelperAdvice[] advices, AdvicePhase advicePhase) { + super(req, editHelper); + this.advice = advice; + this.advices = advices; + this.advicePhase = advicePhase; + } + + /** + * @return the advice + */ + @Override + public IEditHelperAdvice getAdvice() { + return advice; + } + + /** + * @return the advices + */ + @Override + public IEditHelperAdvice[] getAdvices() { + return advices; + } + + /** + * @return the advicePhase + */ + public AdvicePhase getAdvicePhase() { + return advicePhase; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityEditHelperEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityEditHelperEvent.java new file mode 100644 index 00000000000..cef227624ba --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/IdentityEditHelperEvent.java @@ -0,0 +1,24 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class IdentityEditHelperEvent extends AbstractIdentityEvent { + + + public IdentityEditHelperEvent(IEditCommandRequest req, IEditHelper editHelper) { + super(req, editHelper); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/TypesEventKind.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/TypesEventKind.java new file mode 100644 index 00000000000..1333067dd5b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/TypesEventKind.java @@ -0,0 +1,17 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +public enum TypesEventKind { + Disapproved, Unexecutable, Approved, Executable, Identity, RequestConfiguration +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableAdviceEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableAdviceEvent.java new file mode 100644 index 00000000000..155f1415426 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableAdviceEvent.java @@ -0,0 +1,57 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class UnexecutableAdviceEvent extends AbstractUnexecutableEvent implements IAdviceEvent { + + private IEditHelperAdvice advice; + + private IEditHelperAdvice[] advices; + + private AdvicePhase advicePhase; + + public UnexecutableAdviceEvent(IEditCommandRequest req, IEditHelper editHelper, IEditHelperAdvice advice, ICommand command, IEditHelperAdvice[] advices, AdvicePhase advicePhase) { + super(req, editHelper, command); + this.advice = advice; + this.advices = advices; + this.advicePhase = advicePhase; + } + + /** + * @return the advice + */ + @Override + public IEditHelperAdvice getAdvice() { + return advice; + } + + /** + * @return the advices + */ + @Override + public IEditHelperAdvice[] getAdvices() { + return advices; + } + + /** + * @return the advicePhase + */ + public AdvicePhase getAdvicePhase() { + return advicePhase; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableEditHelperEvent.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableEditHelperEvent.java new file mode 100644 index 00000000000..05448d6b297 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/notification/events/UnexecutableEditHelperEvent.java @@ -0,0 +1,24 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.notification.events; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelper; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public class UnexecutableEditHelperEvent extends AbstractUnexecutableEvent { + + public UnexecutableEditHelperEvent(IEditCommandRequest req, IEditHelper editHelper, ICommand command) { + super(req, editHelper, command); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/AdviceConfigurationTypeRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/AdviceConfigurationTypeRegistry.java new file mode 100644 index 00000000000..35bd5225e06 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/AdviceConfigurationTypeRegistry.java @@ -0,0 +1,133 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 459174 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.registries; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.Platform; +import org.eclipse.emf.common.notify.impl.AdapterImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.IConfiguredEditHelperAdviceDescriptor; +import org.eclipse.papyrus.infra.types.core.extensionpoints.IAdviceKindExtensionPoint; +import org.eclipse.papyrus.infra.types.core.factories.IEditHelperAdviceFactory; +import org.eclipse.papyrus.infra.types.core.factories.impl.DefaultAdviceBindingFactory; +import org.eclipse.papyrus.infra.types.core.factories.impl.DefaultEditHelperAdviceFactory; + +public class AdviceConfigurationTypeRegistry { + + private static AdviceConfigurationTypeRegistry registry; + + protected Map> adviceConfigurationTypeToFactory = null; + + /** + * returns the singleton instance of this registry + * + * @return the singleton instance of this registry + */ + public static synchronized AdviceConfigurationTypeRegistry getInstance() { + if (registry == null) { + registry = new AdviceConfigurationTypeRegistry(); + registry.init(); + } + return registry; + } + + /** + * Inits the registry. + */ + protected void init() { + adviceConfigurationTypeToFactory = new HashMap>(); + IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IAdviceKindExtensionPoint.EXTENSION_POINT_ID); + for (IConfigurationElement configurationElement : elements) { + String configurationClass = configurationElement.getAttribute(IAdviceKindExtensionPoint.CONFIGURATION_CLASS); + try { + Object factoryClass = configurationElement.createExecutableExtension(IAdviceKindExtensionPoint.FACTORY_CLASS); + if (factoryClass instanceof IEditHelperAdviceFactory) { + adviceConfigurationTypeToFactory.put(configurationClass, (IEditHelperAdviceFactory) factoryClass); + } + } catch (CoreException e) { + Activator.log.error(e); + } + } + // Register default interpretations + adviceConfigurationTypeToFactory.put(ElementTypesConfigurationsPackage.eINSTANCE.getEditHelperAdviceConfiguration().getInstanceTypeName(), new DefaultEditHelperAdviceFactory()); + adviceConfigurationTypeToFactory.put(ElementTypesConfigurationsPackage.eINSTANCE.getAdviceBindingConfiguration().getInstanceTypeName(), new DefaultAdviceBindingFactory()); + } + + public IEditHelperAdviceFactory getFactory(AdviceConfiguration adviceConfiguration) { + String adviceConfigurationType = adviceConfiguration.eClass().getInstanceTypeName(); + // We assume here that the right factory is registered for the right AdviceConfiguration + @SuppressWarnings("unchecked") + IEditHelperAdviceFactory factory = (IEditHelperAdviceFactory) adviceConfigurationTypeToFactory.get(adviceConfigurationType); + + return factory; + } + + public IAdviceBindingDescriptor getEditHelperAdviceDecriptor(T adviceConfiguration) { + IAdviceBindingDescriptor result = null; + + if (adviceConfiguration != null) { + AdviceDescriptorAdapter adapter = AdviceDescriptorAdapter.get(adviceConfiguration); + if (adapter == null) { + IEditHelperAdviceFactory factory = getFactory(adviceConfiguration); + if (factory != null) { + IConfiguredEditHelperAdviceDescriptor editHelperAdvice = factory.createEditHelperAdviceDescriptor(adviceConfiguration); + editHelperAdvice.init(adviceConfiguration); + adapter = new AdviceDescriptorAdapter(editHelperAdvice); + adviceConfiguration.eAdapters().add(adapter); + } + } + + if (adapter != null) { + result = adapter.getAdviceDescriptor(); + } + } + + return result; + } + + // + // Nested types + // + + private static class AdviceDescriptorAdapter extends AdapterImpl { + private final IAdviceBindingDescriptor adviceDescriptor; + + AdviceDescriptorAdapter(IAdviceBindingDescriptor adviceDescriptor) { + super(); + + this.adviceDescriptor = adviceDescriptor; + } + + @Override + public boolean isAdapterForType(Object type) { + return type == IAdviceBindingDescriptor.class; + } + + public IAdviceBindingDescriptor getAdviceDescriptor() { + return adviceDescriptor; + } + + static AdviceDescriptorAdapter get(AdviceConfiguration configuration) { + return (AdviceDescriptorAdapter) EcoreUtil.getExistingAdapter(configuration, IAdviceBindingDescriptor.class); + } + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ContainerConfigurationTypeRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ContainerConfigurationTypeRegistry.java new file mode 100644 index 00000000000..32159cd95e7 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ContainerConfigurationTypeRegistry.java @@ -0,0 +1,125 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.registries; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.Platform; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.IConfiguredContainerDescriptor; +import org.eclipse.papyrus.infra.types.core.extensionpoints.IContainerConfigurationKindExtensionPoint; +import org.eclipse.papyrus.infra.types.core.factories.IContainerFactory; + +/** + * Registry that manages all possible containerConfiguration + */ +public class ContainerConfigurationTypeRegistry { + + private static ContainerConfigurationTypeRegistry registry; + + protected Map> containerConfigurationTypeToFactory = null; + + /** + * returns the singleton instance of this registry + * + * @return the singleton instance of this registry + */ + public static synchronized ContainerConfigurationTypeRegistry getInstance() { + if (registry == null) { + registry = new ContainerConfigurationTypeRegistry(); + registry.init(); + } + return registry; + } + + /** + * Inits the registry. + */ + protected void init() { + containerConfigurationTypeToFactory = new HashMap>(); + IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IContainerConfigurationKindExtensionPoint.EXTENSION_POINT_ID); + for (IConfigurationElement configurationElement : elements) { + String configurationClass = configurationElement.getAttribute(IContainerConfigurationKindExtensionPoint.CONFIGURATION_CLASS); + try { + Object factoryClass = configurationElement.createExecutableExtension(IContainerConfigurationKindExtensionPoint.FACTORY_CLASS); + if (factoryClass instanceof IContainerFactory) { + containerConfigurationTypeToFactory.put(configurationClass, (IContainerFactory) factoryClass); + } + } catch (CoreException e) { + Activator.log.error(e); + } + } + } + + protected IContainerFactory getFactory(ContainerConfiguration containerConfiguration) { + String containerConfigurationType = containerConfiguration.eClass().getInstanceTypeName(); + // We assume here that the right factory is registered for the right ContainerConfiguration + @SuppressWarnings("unchecked") + IContainerFactory factory = (IContainerFactory) containerConfigurationTypeToFactory.get(containerConfigurationType); + return factory; + } + + public IContainerDescriptor getContainerDescriptor(T containerConfiguration) { + if (containerConfiguration == null) { + return null; + } else { + IContainerFactory factory = getFactory(containerConfiguration); + IConfiguredContainerDescriptor containerDescriptor; + if (factory == null) { + // Provide default interpretation + containerDescriptor = new DefaultContainerDescriptor(containerConfiguration); + } else { + containerDescriptor = factory.createContainerDescriptor(containerConfiguration); + } + containerDescriptor.init(containerConfiguration); + return containerDescriptor; + } + } + + public class DefaultContainerDescriptor implements IConfiguredContainerDescriptor { + + protected ContainerConfiguration containerConfiguration; + + protected IElementMatcher matcher; + + protected EReference[] references; + + public DefaultContainerDescriptor(ContainerConfiguration containerConfiguration) { + AbstractMatcherConfiguration matcherConfiguration = containerConfiguration.getContainerMatcherConfiguration(); + matcher = MatcherConfigurationTypeRegistry.getInstance().getMatcher(matcherConfiguration); + EList eContainmentFeatures = containerConfiguration.getEContainmentFeatures(); + references = eContainmentFeatures.toArray(new EReference[] {}); + } + + public IElementMatcher getMatcher() { + return matcher; + } + + public EReference[] getContainmentFeatures() { + return references; + } + + public void init(ContainerConfiguration containerConfiguration) { + this.containerConfiguration = containerConfiguration; + } + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeConfigurationTypeRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeConfigurationTypeRegistry.java new file mode 100644 index 00000000000..b65a2ec732f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeConfigurationTypeRegistry.java @@ -0,0 +1,95 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.registries; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.Platform; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.extensionpoints.IElementTypeConfigurationKindExtensionPoint; +import org.eclipse.papyrus.infra.types.core.factories.IElementTypeConfigurationFactory; +import org.eclipse.papyrus.infra.types.core.factories.impl.MetamodelTypeFactory; +import org.eclipse.papyrus.infra.types.core.factories.impl.SpecializationTypeFactory; + +/** + * Registry that manages all possible elementTypeConfigurationTypes + */ +public class ElementTypeConfigurationTypeRegistry { + + private static ElementTypeConfigurationTypeRegistry registry; + + protected Map> elementTypeConfigurationTypeToFactory = null; + + /** + * returns the singleton instance of this registry + * + * @return the singleton instance of this registry + */ + public static synchronized ElementTypeConfigurationTypeRegistry getInstance() { + if (registry == null) { + registry = new ElementTypeConfigurationTypeRegistry(); + registry.init(); + } + return registry; + } + + /** + * Inits the registry. + */ + protected void init() { + elementTypeConfigurationTypeToFactory = new HashMap>(); + IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IElementTypeConfigurationKindExtensionPoint.EXTENSION_POINT_ID); + for (IConfigurationElement configurationElement : elements) { + String configurationClass = configurationElement.getAttribute(IElementTypeConfigurationKindExtensionPoint.CONFIGURATION_CLASS); + try { + Object factoryClass = configurationElement.createExecutableExtension(IElementTypeConfigurationKindExtensionPoint.FACTORY_CLASS); + if (factoryClass instanceof IElementTypeConfigurationFactory) { + elementTypeConfigurationTypeToFactory.put(configurationClass, (IElementTypeConfigurationFactory) factoryClass); + } + } catch (CoreException e) { + Activator.log.error(e); + } + } + // Register default interpretations + elementTypeConfigurationTypeToFactory.put(ElementTypesConfigurationsPackage.eINSTANCE.getMetamodelTypeConfiguration().getInstanceTypeName(), new MetamodelTypeFactory()); + elementTypeConfigurationTypeToFactory.put(ElementTypesConfigurationsPackage.eINSTANCE.getSpecializationTypeConfiguration().getInstanceTypeName(), new SpecializationTypeFactory()); + } + + protected IElementTypeConfigurationFactory getFactory(ElementTypeConfiguration elementTypeConfiguration) { + String elementTypeConfigurationType = elementTypeConfiguration.eClass().getInstanceTypeName(); + // We assume here that the right factory is registered for the right ElementTypeConfiguration + @SuppressWarnings("unchecked") + IElementTypeConfigurationFactory factory = (IElementTypeConfigurationFactory) elementTypeConfigurationTypeToFactory.get(elementTypeConfigurationType); + return factory; + } + + public IElementType getElementType(T elementTypeConfiguration) { + if (elementTypeConfiguration == null) { + return null; + } else { + IElementTypeConfigurationFactory factory = getFactory(elementTypeConfiguration); + if (factory != null) { + IHintedType elementType = factory.createElementType(elementTypeConfiguration); + return elementType; + } + } + return null; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeSetConfigurationRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeSetConfigurationRegistry.java new file mode 100644 index 00000000000..65f8e6e4ac3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/ElementTypeSetConfigurationRegistry.java @@ -0,0 +1,566 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 459174 + * Christian W. Damus - bug 467207 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.registries; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.Platform; +import org.eclipse.emf.common.util.TreeIterator; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EObject; +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.gmf.runtime.emf.type.core.ClientContextManager; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeUtil; +import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType; +import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType; +import org.eclipse.gmf.runtime.emf.type.core.NullElementType; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.extensionpoints.IElementTypeSetExtensionPoint; +import org.eclipse.papyrus.infra.types.core.utils.ElementTypeRegistryUtils; +import org.eclipse.papyrus.infra.types.core.utils.OrientedGraph; +import org.eclipse.papyrus.infra.types.core.utils.TypesConfigurationsCycleUtil; +import org.osgi.framework.Bundle; + +/** + * Registry to manage load/unloaded {@link ElementTypeSetConfiguration}. + */ +public class ElementTypeSetConfigurationRegistry { + + protected static ElementTypeSetConfigurationRegistry elementTypeSetConfigurationRegistry; + + /** Map of retrieved elementType sets, key is their identifier */ + protected Map> elementTypeSetConfigurations = null; + + protected OrientedGraph advicesDeps = null; + + + /** unique resource set to load all elementType sets models */ + protected ResourceSet elementTypeSetConfigurationResourceSet = null; + + /** + * returns the singleton instance of this registry + * + * @return the singleton instance of this registry + */ + public static synchronized ElementTypeSetConfigurationRegistry getInstance() { + if (elementTypeSetConfigurationRegistry == null) { + elementTypeSetConfigurationRegistry = new ElementTypeSetConfigurationRegistry(); + elementTypeSetConfigurationRegistry.init(); + } + return elementTypeSetConfigurationRegistry; + } + + /** + * Inits the registry. + */ + protected void init() { + // 0. Resets values + elementTypeSetConfigurationResourceSet = null; + elementTypeSetConfigurations = new HashMap>(); + // 1. creates the resource set + elementTypeSetConfigurationResourceSet = createResourceSet(); + // 2. creates the list only when registry is acceded for the first time, + Map> elementTypeSetConfigurationsToLoad = readElementTypeSetConfigurationModelsFromExtensionPoints(); + // Try to load all elementType set definitions + for (String contexId : elementTypeSetConfigurationsToLoad.keySet()) { + loadElementTypeSetConfigurations(contexId, elementTypeSetConfigurationsToLoad.get(contexId)); + } + + } + + + protected Map> readElementTypeSetConfigurationModels() { + Map> elementTypeSetConfigurations = new HashMap>(); + + + + return elementTypeSetConfigurations; + } + + /** + * Dispose this registry, i.e. remove all contribution on the elementType registry. + */ + public synchronized void dispose() { + if (elementTypeSetConfigurations == null) { + return; + } + + for (String contextId : elementTypeSetConfigurations.keySet()) { + for (String elementTypeSetId : elementTypeSetConfigurations.get(contextId).keySet()) { + unload(contextId, elementTypeSetId); + } + + } + elementTypeSetConfigurationResourceSet = null; + elementTypeSetConfigurations = null; + elementTypeSetConfigurationRegistry = null; + } + + /** + * Loads a given elementType set from a given identifier + */ + public boolean loadElementTypeSetConfiguration(String contextId, String path) { + + if (path == null) { + Activator.log.warn("Path must not be null" + path); + return false; + } + + if (contextId == null) { + Activator.log.warn("contextId must not be null" + path); + return false; + } + URI localURI = URI.createPlatformResourceURI(path, true); + Resource resource = elementTypeSetConfigurationResourceSet.createResource(localURI); + try { + resource.load(null); + EObject content = resource.getContents().get(0); + if (content instanceof ElementTypeSetConfiguration) { + return loadElementTypeSetConfiguration(contextId, (ElementTypeSetConfiguration) content); + } + } catch (IOException e) { + Activator.log.error(e); + } + + return false; + + } + + public boolean loadElementTypeSetConfiguration(String clientContextID, ElementTypeSetConfiguration elementTypeSetConfiguration) { + return loadElementTypeSetConfigurations(clientContextID, Collections.singleton(elementTypeSetConfiguration)); + } + + public OrientedGraph getAdvicesDeps() { + if (advicesDeps == null) { + advicesDeps = new OrientedGraph<>(); + } + return advicesDeps; + } + + protected boolean isAlreadyRegistred(String elementTypeID, IClientContext context) { + if (ElementTypeRegistry.getInstance().getType(elementTypeID) != null) { + if (!elementTypeID.equals(NullElementType.ID)) { + if (ElementTypeRegistryUtils.getType(context, elementTypeID) == null) { + // The elementType is already existing but not binded yet + context.bindId(elementTypeID); + Activator.log.info(elementTypeID + " is already registred elementtype but it is not binded yet. It has been binded to Papyrus context. "); + } + } + return true; + } + + return false; + } + + protected boolean registerElementTypeConfiguration(ElementTypeConfiguration elementTypeConfiguration, Map elementTypeConfigurationsDefinitions, IClientContext context) { + String elementTypeID = elementTypeConfiguration.getIdentifier(); + if (isAlreadyRegistred(elementTypeID, context)) { + return true; + } + + if (elementTypeConfiguration instanceof SpecializationTypeConfiguration) { + // First, check if dependencies are registered + for (String specializedTypeId : ((SpecializationTypeConfiguration) elementTypeConfiguration).getSpecializedTypesID()) { + + if (!isAlreadyRegistred(specializedTypeId, context)) { + // try to register the dependency + ElementTypeConfiguration specializedTypeConfiguration = elementTypeConfigurationsDefinitions.get(specializedTypeId); + if (specializedTypeConfiguration != null) { + boolean registred = registerElementTypeConfiguration(specializedTypeConfiguration, elementTypeConfigurationsDefinitions, context); + if (!registred) { + Activator.log.info("Failed to register " + specializedTypeId); + return false; + } + } else { + if (!specializedTypeId.equals(NullElementType.ID)) { + Activator.log.info("Cannot find ElementTypeConfiguration for " + specializedTypeId); + return false; + } + } + } + } + + } + + IElementType elementType = ElementTypeConfigurationTypeRegistry.getInstance().getElementType(elementTypeConfiguration); + if (elementType != null) { + // register elementType + if (elementType instanceof ISpecializationType) { + if (ElementTypeRegistry.getInstance().register((ISpecializationType) elementType)) { + context.bindId(elementType.getId()); + return true; + } else { + Activator.log.info("SpecializationType not added: " + elementType); + } + } else if (elementType instanceof IMetamodelType) { + if (ElementTypeRegistry.getInstance().register((IMetamodelType) elementType)) { + context.bindId(elementType.getId()); + return true; + } else { + Activator.log.info("MetamodelType not added: " + elementType); + ElementTypeRegistry.getInstance().register((IMetamodelType) elementType); + } + } + } + + return false; + + } + + public boolean loadElementTypeSetConfigurations(String contexId, Collection elementTypeSetConfigurationsToRegister) { + + if (contexId == null) { + Activator.log.warn("contexId must not be null. Loading aborted. "); + return false; + } + + IClientContext context = ClientContextManager.getInstance().getClientContext(contexId); + if (context == null) { + Activator.log.warn("contexId couldn't be found. Loading aborted. "); + return false; + } + + Map elementTypeConfigurationsDefinitions = new HashMap(); + + + + // Read from elementTypeSetConfigurations + Set registrableElementTypeSetConfiguration = new HashSet(); + for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurationsToRegister) { + if (elementTypeSetConfiguration == null) { + Activator.log.warn("The collection of elementTypesconfigurations contains a null value. Loading aborted. "); + return false; + } + // Check if not already registered + if (elementTypeSetConfigurations.containsKey(elementTypeSetConfiguration.getIdentifier())) { + Activator.log.warn("The following ElementTypesSetConfiguration has been ignored because the same ID already registreted: " + elementTypeSetConfiguration.getIdentifier()); + } else { + registrableElementTypeSetConfiguration.add(elementTypeSetConfiguration); + for (ElementTypeConfiguration elementTypeConfiguration : elementTypeSetConfiguration.getElementTypeConfigurations()) { + elementTypeConfigurationsDefinitions.put(elementTypeConfiguration.getIdentifier(), elementTypeConfiguration); + } + } + } + + // Check there is no cyclic dependencies among elementTypes introduced by this loading + HashSet elementTypesToCheck = new HashSet(); + // The old ones already registered + if (elementTypeSetConfigurations.containsKey(contexId)) { + for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurations.get(contexId).values()) { + elementTypesToCheck.addAll(elementTypeSetConfiguration.getElementTypeConfigurations()); + } + } + // The new ones we wan to register + elementTypesToCheck.addAll(elementTypeConfigurationsDefinitions.values()); + OrientedGraph elementTypesDeps = TypesConfigurationsCycleUtil.getDependenciesAmongElementTypes(elementTypesToCheck); + + Collection> cyclesElementTypes = TypesConfigurationsCycleUtil.getCyclesAmongElementTypes(elementTypesDeps.getVertices(), elementTypesDeps.getEdges()); + if (!cyclesElementTypes.isEmpty()) { + Activator.log.warn("The ElementTypesConfiguration registration has been aborted because there is at least a cyclic-dependency in the ElementTypes definitions: " + cyclesElementTypes); + return false; + } + + // Collect all advicesconfiguration + HashSet adviceToCheck = new HashSet(); + // The old ones already registered + if (elementTypeSetConfigurations.containsKey(contexId)) { + for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurations.get(contexId).values()) { + TreeIterator it = elementTypeSetConfiguration.eAllContents(); + while (it.hasNext()) { + EObject element = (EObject) it.next(); + if (element instanceof AdviceConfiguration) { + adviceToCheck.add((AdviceConfiguration) element); + } + + } + } + } + // The new ones we want to register + for (ElementTypeSetConfiguration elementTypeSetConfiguration : registrableElementTypeSetConfiguration) { + TreeIterator it = elementTypeSetConfiguration.eAllContents(); + while (it.hasNext()) { + EObject element = (EObject) it.next(); + if (element instanceof AdviceConfiguration) { + adviceToCheck.add((AdviceConfiguration) element); + + } + } + } + + // Check that there is no cyclic dependencies among advices introduced by this loading + advicesDeps = TypesConfigurationsCycleUtil.getDependenciesAmongAdvices(adviceToCheck); + Collection> cyclesAdvices = TypesConfigurationsCycleUtil.getCyclesInAdvices(advicesDeps.getVertices(), advicesDeps.getEdges()); + if (!cyclesAdvices.isEmpty()) { + Activator.log.warn("The ElementTypesConfiguration registration has been aborted because there is at least a cyclic-dependencies in the Advices definitions: " + cyclesAdvices); + return false; + } + + // If we reached that point, we should be able to register safely the none already registered elementTypeSets + for (ElementTypeSetConfiguration elementTypeSetConfiguration : registrableElementTypeSetConfiguration) { + if (!elementTypeSetConfigurations.containsKey(contexId)) { + elementTypeSetConfigurations.put(contexId, new HashMap()); + } + elementTypeSetConfigurations.get(contexId).put(elementTypeSetConfiguration.getIdentifier(), elementTypeSetConfiguration); + } + + // New ElementTypesConfigurations can be registered + for (ElementTypeConfiguration elementTypeConfiguration : elementTypeConfigurationsDefinitions.values()) { + registerElementTypeConfiguration(elementTypeConfiguration, elementTypeConfigurationsDefinitions, context); + } + + // Register adviceBindings + for (ElementTypeSetConfiguration elementTypeSetConfiguration : registrableElementTypeSetConfiguration) { + List adviceBindingConfigurations = elementTypeSetConfiguration.getAdviceBindingsConfigurations(); + for (AbstractAdviceBindingConfiguration adviceBindingConfiguration : adviceBindingConfigurations) { + IAdviceBindingDescriptor editHelperAdviceDecriptor = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(adviceBindingConfiguration); + ElementTypeRegistryUtils.registerAdviceBinding(editHelperAdviceDecriptor); + context.bindId(editHelperAdviceDecriptor.getId()); + } + } + + return true; + } + + + public boolean unload(String contextId, String elementTypeSetId) { + if (elementTypeSetConfigurations == null) { + return false; + } + if (!elementTypeSetConfigurations.containsKey(contextId)) { + return false; + } + Map map = elementTypeSetConfigurations.get(contextId); + ElementTypeSetConfiguration elementTypeSet = map.remove(elementTypeSetId); + if (elementTypeSet == null) { + return false; + } + + // Remove elementTypes + ElementTypeRegistry registry = ElementTypeRegistry.getInstance(); + List elementTypes = new ArrayList(elementTypeSet.getElementTypeConfigurations().size()); + for (ElementTypeConfiguration elementTypeConfiguration : elementTypeSet.getElementTypeConfigurations()) { + if (elementTypeConfiguration != null && elementTypeConfiguration.getIdentifier() != null) { + String configIdentifier = elementTypeConfiguration.getIdentifier(); + IElementType elementType = registry.getType(configIdentifier); + if (elementType != null) { + elementTypes.add(elementType); + } + } + } + + ElementTypeUtil.deregisterElementTypes(elementTypes, ElementTypeUtil.ALL_DEPENDENTS); + + // Remove adviceBindings + List adviceBindingConfigurations = elementTypeSet.getAdviceBindingsConfigurations(); + for (AbstractAdviceBindingConfiguration adviceBindingConfiguration : adviceBindingConfigurations) { + IAdviceBindingDescriptor advice = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(adviceBindingConfiguration); + if (advice != null) { + ElementTypeRegistryUtils.removeAdviceDescriptorFromBindings(advice); + } + } + + // If I loaded this element-types configuration model, I should now unload it. Otherwise, + // I don't own this resource so I should not attempt to manage it + if (elementTypeSetConfigurationResourceSet != null) { + Resource resource = elementTypeSet.eResource(); + if ((resource != null) && (resource.getResourceSet() == elementTypeSetConfigurationResourceSet)) { + resource.unload(); + elementTypeSetConfigurationResourceSet.getResources().remove(resource); + } + } + + // Recompute adviceDependencies + HashSet advices = new HashSet(); + // The ones still registered + for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSetConfigurations.get(contextId).values()) { + TreeIterator it = elementTypeSetConfiguration.eAllContents(); + while (it.hasNext()) { + EObject element = (EObject) it.next(); + if (element instanceof AdviceConfiguration) { + advices.add((AdviceConfiguration) element); + } + + } + } + advicesDeps = TypesConfigurationsCycleUtil.getDependenciesAmongAdvices(advices); + + return true; + } + + + + protected void addElementTypeSetConfigurationToDefinitions(ElementTypeSetConfiguration set, String clientContextId, Map> existingDefinitions) { + if (set.getIdentifier() == null) { + Activator.log.warn("The following ElementTypesSetConfiguration has ill-defined ID and is therefore ignored: " + set.eResource().getURI()); + } else { + if (set != null) { + if (existingDefinitions.get(clientContextId) != null && containsElementTypeSet(existingDefinitions.get(clientContextId), set.getIdentifier())) { + Activator.log.warn("The following ElementTypesSetConfiguration has been ignored because the same ID already registreted: " + set.getIdentifier()); + } else { + if (!existingDefinitions.containsKey(clientContextId)) { + existingDefinitions.put(clientContextId, new HashSet()); + } + existingDefinitions.get(clientContextId).add(set); + } + } + } + } + + protected Map> readElementTypeSetConfigurationModelsFromExtensionPoints() { + Map> existingDefinitions = new HashMap<>(); + IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IElementTypeSetExtensionPoint.EXTENSION_POINT_ID); + // for each element, parses and retrieve the model file. then loads it and returns the root element + for (IConfigurationElement element : elements) { + String modelPath = element.getAttribute(IElementTypeSetExtensionPoint.PATH); + String clientContextId = element.getAttribute(IElementTypeSetExtensionPoint.CLIENT_CONTEXT_ID); + String contributorID = element.getContributor().getName(); + if (Platform.inDebugMode()) { + Activator.log.debug("[Reading extension point]"); + Activator.log.debug("- Path to the model: " + modelPath); + Activator.log.debug("- ClientContext the model should be registreted to: " + clientContextId); + Activator.log.debug("- id of the container bundle: " + contributorID); + } + ElementTypeSetConfiguration set = getElementTypeSetConfiguration(modelPath, contributorID); + + if (set != null) { + addElementTypeSetConfigurationToDefinitions(set, clientContextId, existingDefinitions); + } + + } + return existingDefinitions; + } + + protected boolean containsElementTypeSet(Set elementTypeSets, String elementTypeSetConfigurationId) { + if (elementTypeSets == null) { + return false; + } + + for (ElementTypeSetConfiguration elementTypeSetConfiguration : elementTypeSets) { + if (elementTypeSetConfiguration.getIdentifier().equals(elementTypeSetConfigurationId)) { + return true; + } + } + return false; + } + + /** + *

+ * Loads the resource containing the elementType set model. + *

+ *

+ * It looks the model file in the fragments first, then in the plugin itself.
+ * If this is already a fragment, it should look in the fragment only + *

+ * + * @param elementTypesID + * id of the elementType set to load + * @param modelPath + * path of the model in the bundle + * @param bundleId + * id of the bundle containing the model file + * @return the loaded file or null if some problem occured during loading + */ + protected ElementTypeSetConfiguration getElementTypeSetConfiguration(String modelPath, String bundleId) { + + Bundle bundle = Platform.getBundle(bundleId); + if (Platform.isFragment(bundle)) { + ElementTypeSetConfiguration configuration = getElementTypeSetConfigurationInBundle(modelPath, bundleId); + if (configuration == null) { + Activator.log.warn("Cannot find resource " + modelPath + " in bundle " + bundleId); + } + return configuration; + } else { // this is a plugin. Search in sub fragments, then in the plugin + Bundle[] fragments = Platform.getFragments(bundle); + // no fragment, so the file should be in the plugin itself + if (fragments == null) { + return getElementTypeSetConfigurationInBundle(modelPath, bundleId); + } else { + + ElementTypeSetConfiguration elementTypeSetConfiguration = null; + + for (Bundle fragment : fragments) { + elementTypeSetConfiguration = getElementTypeSetConfigurationInBundle(modelPath, fragment.getSymbolicName()); + if (elementTypeSetConfiguration != null) { + break; + } + } + + if (elementTypeSetConfiguration == null) { + // not found in fragments. Look in the plugin itself + elementTypeSetConfiguration = getElementTypeSetConfigurationInBundle(modelPath, bundleId); + } + + if (elementTypeSetConfiguration == null) { + Activator.log.warn("Cannot find resource " + modelPath + " in bundle " + bundleId); + } + + return elementTypeSetConfiguration; + } + } + } + + /** + * + * @param modelPath + * path of the model in the bundle + * @param bundleId + * id of the bundle containing the model file + * @return the loaded file or null if some problem occured during loading + */ + protected ElementTypeSetConfiguration getElementTypeSetConfigurationInBundle(String modelPath, String bundleID) { + String path = bundleID + IPath.SEPARATOR + modelPath; + Resource resource = elementTypeSetConfigurationResourceSet.createResource(URI.createPlatformPluginURI(path, true)); + try { + resource.load(null); + } catch (IOException e) { + return null; // Don't log the error yet; we're trying several options + } + EObject content = resource.getContents().get(0); + if (content instanceof ElementTypeSetConfiguration) { + return (ElementTypeSetConfiguration) content; + } + return null; + } + + protected ResourceSet createResourceSet() { + ResourceSet set = new ResourceSetImpl(); + return set; + } + + public Map> getElementTypeSetConfigurations() { + return elementTypeSetConfigurations; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/MatcherConfigurationTypeRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/MatcherConfigurationTypeRegistry.java new file mode 100644 index 00000000000..572a9397348 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/registries/MatcherConfigurationTypeRegistry.java @@ -0,0 +1,100 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.registries; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.Platform; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.extensionpoints.IMatcherConfigurationKindExtensionPoint; +import org.eclipse.papyrus.infra.types.core.factories.IMatcherFactory; +import org.eclipse.papyrus.infra.types.core.factories.impl.DefaultMatcherFactory; + +public class MatcherConfigurationTypeRegistry { + + private static MatcherConfigurationTypeRegistry registry; + + protected Map> matcherConfigurationTypeToFactory = null; + + public static synchronized MatcherConfigurationTypeRegistry getInstance() { + if (registry == null) { + registry = new MatcherConfigurationTypeRegistry(); + registry.init(); + } + return registry; + } + + protected void init() { + matcherConfigurationTypeToFactory = new HashMap>(); + IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IMatcherConfigurationKindExtensionPoint.EXTENSION_POINT_ID); + for (IConfigurationElement configurationElement : elements) { + String configurationClass = configurationElement.getAttribute(IMatcherConfigurationKindExtensionPoint.CONFIGURATION_CLASS); + try { + Object factoryClass = configurationElement.createExecutableExtension(IMatcherConfigurationKindExtensionPoint.FACTORY_CLASS); + if (factoryClass instanceof IMatcherFactory) { + matcherConfigurationTypeToFactory.put(configurationClass, (IMatcherFactory) factoryClass); + } + } catch (CoreException e) { + Activator.log.error(e); + } + } + // Register default interpretation + matcherConfigurationTypeToFactory.put(ElementTypesConfigurationsPackage.eINSTANCE.getMatcherConfiguration().getInstanceTypeName(), new DefaultMatcherFactory()); + } + + protected IMatcherFactory getFactory(T matcherConfiguration) { + String matcherConfigurationType = matcherConfiguration.eClass().getInstanceTypeName(); + // We assume here that the right factory is registered for the right MatcherConfiguration + @SuppressWarnings("unchecked") + IMatcherFactory factory = (IMatcherFactory) matcherConfigurationTypeToFactory.get(matcherConfigurationType); + return factory; + } + + public IElementMatcher getMatcher(T matcherConfiguration) { + if (matcherConfiguration == null) { + return null; + } else { + IMatcherFactory factory = getFactory(matcherConfiguration); + if (factory == null) { + // Provide dummy interpretation + IElementMatcher matcher = new DummyElementMatcher(); + return matcher; + } else { + IElementMatcher matcher = factory.createElementMatcher(matcherConfiguration); + return matcher; + } + } + } + + public class DummyElementMatcher implements IElementMatcher { + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.IElementMatcher#matches(org.eclipse.emf.ecore.EObject) + * + * @param eObject + * @return + */ + @Override + public boolean matches(EObject eObject) { + return true; + } + + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/AdviceComparator.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/AdviceComparator.java new file mode 100644 index 00000000000..5f8c3befd49 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/AdviceComparator.java @@ -0,0 +1,47 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.core.utils; + +import java.util.Comparator; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; + + +public class AdviceComparator implements Comparator { + + OrientedGraph dependencies; + + public AdviceComparator() { + this.dependencies = ElementTypeSetConfigurationRegistry.getInstance().getAdvicesDeps(); + } + + @Override + public int compare(IEditHelperAdvice arg0, IEditHelperAdvice arg1) { + String arg0Name = arg0.getClass().getName(); + String arg1Name = arg1.getClass().getName(); + if (dependencies.getEdges().containsKey(arg0Name)) { + if (dependencies.getAllConnex(arg0Name).contains(arg1Name)) { + return -1; + } + } + if (dependencies.getEdges().containsKey(arg1Name)) { + if (dependencies.getAllConnex(arg1Name).contains(arg0Name)) { + return 1; + } + } + return 0; + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/ElementTypeRegistryUtils.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/ElementTypeRegistryUtils.java new file mode 100644 index 00000000000..0981619d310 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/ElementTypeRegistryUtils.java @@ -0,0 +1,76 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 459174 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.utils; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.gmf.runtime.emf.type.core.ClientContext; +import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.IHintedType; +import org.eclipse.papyrus.infra.types.core.Activator; + +public class ElementTypeRegistryUtils { + + static public IElementType getType(IClientContext context, String elementTypeID) { + IElementType[] elementTypes = ElementTypeRegistry.getInstance().getElementTypes(context); + for (IElementType iElementType : elementTypes) { + if (iElementType.getId().equals(elementTypeID)) { + return iElementType; + } + } + return null; + } + + static public void registerAdviceBinding(IAdviceBindingDescriptor adviceDescriptor) { + ElementTypeRegistry.getInstance().registerAdvice(adviceDescriptor); + } + + static public void removeAdviceDescriptorFromBindings(IAdviceBindingDescriptor adviceDescriptor) { + ElementTypeRegistry.getInstance().deregisterAdvice(adviceDescriptor); + } + + static public void unBindID(IClientContext context, String typeId) { + if (context instanceof ClientContext) { + ((ClientContext) context).unbindId(typeId); + } else if (context != null) { + Activator.log.warn("Cannot unbind type ID from context of unknown class: " + context.getClass().getName()); + } + } + + static public List getElementTypesBySemanticHint(String semanticHint, String contextId) { + List matchingElementTypes = new ArrayList(); + + IClientContext context = ClientContextManager.getInstance().getClientContext(contextId); + + if (context != null) { + + IElementType[] elementTypes = ElementTypeRegistry.getInstance().getElementTypes(context); + + for (IElementType iElementType : elementTypes) { + if (iElementType instanceof IHintedType) { + if (((IHintedType) iElementType).getSemanticHint().equals(semanticHint)) { + matchingElementTypes.add(iElementType); + } + } + } + } + + return matchingElementTypes; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/OrientedGraph.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/OrientedGraph.java new file mode 100644 index 00000000000..ea61fc8a1dd --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/OrientedGraph.java @@ -0,0 +1,97 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.core.utils; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +public class OrientedGraph { + private Map> graph; + + /** + * @return the vertices + */ + public Set getVertices() { + return graph.keySet(); + } + + /** + * @return the edges + */ + public Map> getEdges() { + return graph; + } + + public Set getAllConnex(T element) { + Set result = new HashSet(); + + Set directChildren = graph.get(element); + + result.addAll(directChildren); + + for (T child : directChildren) { + Set childChildren = getAllConnex(child); + result.addAll(childChildren); + } + + return result; + } + + + public OrientedGraph() { + graph = new HashMap>(); + } + + public OrientedGraph(Map> edges) { + this.graph = edges; + } + + public void clear() { + graph.clear(); + } + + public void addEdge(T source, T target) { + if (!graph.containsKey(source)) { + addVertex(source); + } + if (!graph.containsKey(target)) { + addVertex(target); + } + + graph.get(source).add(target); + } + + public void addVertex(T vertex) { + if (!graph.containsKey(vertex)) { + graph.put(vertex, new HashSet()); + } + + } + + public String toString() { + String result = ""; + for (T element : graph.keySet()) { + result += "- " + element + "\n"; + for (T target : graph.get(element)) { + result += "\t-> " + target + "\n"; + } + } + + return result; + + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/TypesConfigurationsCycleUtil.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/TypesConfigurationsCycleUtil.java new file mode 100644 index 00000000000..7ea83f59f05 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/utils/TypesConfigurationsCycleUtil.java @@ -0,0 +1,127 @@ +package org.eclipse.papyrus.infra.types.core.utils; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Stack; + +import org.eclipse.gmf.runtime.emf.type.core.IAdviceBindingDescriptor; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.registries.AdviceConfigurationTypeRegistry; + +//Implements Tarjan's strongly connected components algorithm +public class TypesConfigurationsCycleUtil { + + + protected static Collection> computeStronglyConnectedComponents(Set vertices, Map> edges) { + int index = 0; + Map lowIndex = new HashMap(); + Collection visitedVertices = new HashSet(); + Stack stack = new Stack(); + Collection> stronglyConnnectedComponents = new ArrayList>(); + + for (String vertex : vertices) { + if (!visitedVertices.contains(vertex)) + dfs(vertex, vertices, edges, stronglyConnnectedComponents, stack, lowIndex, visitedVertices, index); + } + + return stronglyConnnectedComponents; + } + + + protected static void dfs(String vertex, Set vertices, Map> map, Collection> stronglyConnnectedComponents, Stack stack, Map lowIndex, Collection visitedVertices, + int index) { + lowIndex.put(vertex, index++); + visitedVertices.add(vertex); + stack.push(vertex); + int minIndex = lowIndex.get(vertex); + for (String targetVertex : map.get(vertex)) { + if (!visitedVertices.contains(targetVertex)) + dfs(targetVertex, vertices, map, stronglyConnnectedComponents, stack, lowIndex, visitedVertices, index); + if (lowIndex.get(targetVertex) < minIndex) + minIndex = lowIndex.get(targetVertex); + } + if (minIndex < lowIndex.get(vertex)) { + lowIndex.put(vertex, minIndex); + return; + } + List component = new ArrayList(); + String memberVertex; + do { + memberVertex = stack.pop(); + component.add(memberVertex); + lowIndex.put(memberVertex, vertices.size()); + } while (!memberVertex.equals(vertex)); + + if (component.size() > 1) { + stronglyConnnectedComponents.add(component); + } + } + + static public OrientedGraph getDependenciesAmongAdvices(Collection adviceConfigurations) { + OrientedGraph adviceDependencies = new OrientedGraph(); + for (AdviceConfiguration adviceConfiguration : adviceConfigurations) { + IAdviceBindingDescriptor descriptor = AdviceConfigurationTypeRegistry.getInstance().getEditHelperAdviceDecriptor(adviceConfiguration); + + String currentAdviceConfigurationClassName = descriptor.getEditHelperAdvice().getClass().getName(); + // Add current to the vertices + adviceDependencies.addVertex(currentAdviceConfigurationClassName); + + // Add dependencies vertices + for (String after : adviceConfiguration.getAfter()) { + if (after == null) { + Activator.log.warn("The following AdviceConfiguration has ill-defined after : " + adviceConfiguration); + break; + } + adviceDependencies.addEdge(currentAdviceConfigurationClassName, after); + } + + for (String before : adviceConfiguration.getBefore()) { + if (before == null) { + Activator.log.warn("The following AdviceConfiguration has ill-defined before : " + adviceConfiguration); + break; + } + adviceDependencies.addEdge(before, currentAdviceConfigurationClassName); + } + + } + + return adviceDependencies; + } + + static public Collection> getCyclesInAdvices(Set vertices, Map> edges) { + + return computeStronglyConnectedComponents(vertices, edges); + } + + static public OrientedGraph getDependenciesAmongElementTypes(Collection elementTypesConfigurations) { + OrientedGraph elementTypeDependencies = new OrientedGraph(); + + for (ElementTypeConfiguration elementTypeConfiguration : elementTypesConfigurations) { + String currentElementTypeID = elementTypeConfiguration.getIdentifier(); + + // Add current to the vertices + elementTypeDependencies.addVertex(currentElementTypeID); + + // Add dependencies vertices + if (elementTypeConfiguration instanceof SpecializationTypeConfiguration) { + for (String specializedTypeID : ((SpecializationTypeConfiguration) elementTypeConfiguration).getSpecializedTypesID()) { + elementTypeDependencies.addEdge(currentElementTypeID, specializedTypeID); + } + } + } + + return elementTypeDependencies; + } + + static public Collection> getCyclesAmongElementTypes(Set vertices, Map> edges) { + return computeStronglyConnectedComponents(vertices, edges); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.classpath b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.classpath new file mode 100644 index 00000000000..858bac421b8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.project b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.project new file mode 100644 index 00000000000..83a370a8728 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.edit + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..4d72ad12656 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,288 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/META-INF/MANIFEST.MF b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..0821d2166a6 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Export-Package: org.eclipse.papyrus.infra.types.provider +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.papyrus.infra.types;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport, + org.eclipse.papyrus.infra.types;bundle-version="1.2.0";visibility:=reexport +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin$Implementation +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.edit;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/about.html b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/build.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/build.properties new file mode 100644 index 00000000000..f6981c49151 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/build.properties @@ -0,0 +1,23 @@ +# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. +# +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation +# Christian W. Damus - bug 451230 +# + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html +jars.compile.order = . +source.. = src-gen/ +output.. = bin/ +src.includes = about.html diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif new file mode 100644 index 00000000000..6135e64b5fc Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif new file mode 100644 index 00000000000..d84cb0a088c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif new file mode 100644 index 00000000000..6135e64b5fc Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_containerConfiguration_ContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif new file mode 100644 index 00000000000..d84cb0a088c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_MatcherConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif new file mode 100644 index 00000000000..d84cb0a088c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_MatcherConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif new file mode 100644 index 00000000000..6f73fe27ba1 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeConfiguration_iconEntry_IconEntry.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif new file mode 100644 index 00000000000..06f97473e10 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_AdviceBindingConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif new file mode 100644 index 00000000000..d1e84691c85 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_MetamodelTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif new file mode 100644 index 00000000000..f6149c3081a Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_SpecializationTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif new file mode 100644 index 00000000000..6135e64b5fc Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_containerConfiguration_ContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif new file mode 100644 index 00000000000..75f44fbcbc9 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_editHelperAdviceConfiguration_EditHelperAdviceConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif new file mode 100644 index 00000000000..d84cb0a088c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_MatcherConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/AdviceBindingConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/AdviceBindingConfiguration.gif new file mode 100644 index 00000000000..06f97473e10 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/AdviceBindingConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ContainerConfiguration.gif new file mode 100644 index 00000000000..6135e64b5fc Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif new file mode 100644 index 00000000000..75f44fbcbc9 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/EditHelperAdviceConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ElementTypeSetConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ElementTypeSetConfiguration.gif new file mode 100644 index 00000000000..68acdf43c80 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/ElementTypeSetConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/IconEntry.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/IconEntry.gif new file mode 100644 index 00000000000..6f73fe27ba1 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/IconEntry.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MatcherConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MatcherConfiguration.gif new file mode 100644 index 00000000000..d84cb0a088c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MatcherConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MetamodelTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MetamodelTypeConfiguration.gif new file mode 100644 index 00000000000..d1e84691c85 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/MetamodelTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/SpecializationTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/SpecializationTypeConfiguration.gif new file mode 100644 index 00000000000..f6149c3081a Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/icons/full/obj16/SpecializationTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.properties new file mode 100644 index 00000000000..7a9ac74f45c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.properties @@ -0,0 +1,82 @@ +# +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation + +pluginName = Papyrus TypesConfigurations Edit Support +providerName = Eclipse Modeling Project + + +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. +_UI_PropertyDescriptor_description = The {0} of the {1} +_UI_ElementTypeSetConfiguration_type = Element Type Set Configuration +_UI_ElementTypeConfiguration_type = Element Type Configuration +_UI_IconEntry_type = Icon Entry +_UI_ConfigurationElement_type = Configuration Element +_UI_AbstractMatcherConfiguration_type = Abstract Matcher Configuration +_UI_AdviceConfiguration_type = Advice Configuration +_UI_AbstractAdviceBindingConfiguration_type = Abstract Advice Binding Configuration +_UI_SpecializationTypeConfiguration_type = Specialization Type Configuration +_UI_ContainerConfiguration_type = Container Configuration +_UI_MetamodelTypeConfiguration_type = Metamodel Type Configuration +_UI_AbstractEditHelperAdviceConfiguration_type = Abstract Edit Helper Advice Configuration +_UI_DefaultEditHelperAdviceConfiguration_type = Default Edit Helper Advice Configuration +_UI_DefaultAdviceBindingConfiguration_type = Default Advice Binding Configuration +_UI_DefaultMatcherConfiguration_type = Default Matcher Configuration +_UI_Unknown_type = Object +_UI_Unknown_datatype= Value +_UI_ElementTypeSetConfiguration_elementTypeConfigurations_feature = Element Type Configurations +_UI_ElementTypeSetConfiguration_adviceBindingsConfigurations_feature = Advice Bindings Configurations +_UI_ElementTypeSetConfiguration_metamodelNsURI_feature = Metamodel Ns URI +_UI_ElementTypeConfiguration_hint_feature = Hint +_UI_ElementTypeConfiguration_kind_feature = Kind +_UI_ElementTypeConfiguration_iconEntry_feature = Icon Entry +_UI_IconEntry_iconPath_feature = Icon Path +_UI_IconEntry_bundleId_feature = Bundle Id +_UI_ConfigurationElement_name_feature = Name +_UI_ConfigurationElement_description_feature = Description +_UI_ConfigurationElement_identifier_feature = Identifier +_UI_AdviceConfiguration_before_feature = Before +_UI_AdviceConfiguration_after_feature = After +_UI_AdviceConfiguration_inheritance_feature = Inheritance +_UI_AbstractAdviceBindingConfiguration_target_feature = Target +_UI_AbstractAdviceBindingConfiguration_containerConfiguration_feature = Container Configuration +_UI_AbstractAdviceBindingConfiguration_matcherConfiguration_feature = Matcher Configuration +_UI_SpecializationTypeConfiguration_specializedTypesID_feature = Specialized Types ID +_UI_SpecializationTypeConfiguration_editHelperAdviceConfiguration_feature = Edit Helper Advice Configuration +_UI_SpecializationTypeConfiguration_containerConfiguration_feature = Container Configuration +_UI_SpecializationTypeConfiguration_matcherConfiguration_feature = Matcher Configuration +_UI_ContainerConfiguration_containerMatcherConfiguration_feature = Container Matcher Configuration +_UI_ContainerConfiguration_eContainmentFeatures_feature = EContainment Features +_UI_MetamodelTypeConfiguration_eClass_feature = EClass +_UI_MetamodelTypeConfiguration_editHelperClassName_feature = Edit Helper Class Name +_UI_AbstractEditHelperAdviceConfiguration_target_feature = Target +_UI_DefaultEditHelperAdviceConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name +_UI_DefaultAdviceBindingConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name +_UI_DefaultMatcherConfiguration_matcherClassName_feature = Matcher Class Name +_UI_Unknown_feature = Unspecified +_UI_InheritanceKind_none_literal = none +_UI_InheritanceKind_all_literal = all +_UI_EditHelperAdviceConfiguration_type = Edit Helper Advice Configuration +_UI_AdviceBindingConfiguration_type = Advice Binding Configuration +_UI_MatcherConfiguration_type = Matcher Configuration +_UI_EditHelperAdviceConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name +_UI_AdviceBindingConfiguration_editHelperAdviceClassName_feature = Edit Helper Advice Class Name +_UI_MatcherConfiguration_matcherClassName_feature = Matcher Class Name +_UI_AbstractAdviceBindingConfiguration_inheritance_feature = Inheritance +_UI_IdentifiedConfiguration_type = Identified Configuration +_UI_IdentifiedConfiguration_identifier_feature = Identifier +_UI_IdentifiedConfiguration_name_feature = Name +_UI_ElementTypeConfiguration_name_feature = Name +_UI_NamedConfiguration_type = Named Configuration +_UI_NamedConfiguration_name_feature = Name diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.xml new file mode 100644 index 00000000000..5d3afce825c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/plugin.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/pom.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/pom.xml new file mode 100644 index 00000000000..f5a3f6077da --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-types + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.types.edit + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractAdviceBindingConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractAdviceBindingConfigurationItemProvider.java new file mode 100644 index 00000000000..7494565c8e4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractAdviceBindingConfigurationItemProvider.java @@ -0,0 +1,226 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration} object. + * + * + * @generated + */ +public class AbstractAdviceBindingConfigurationItemProvider extends AdviceConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public AbstractAdviceBindingConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addTargetPropertyDescriptor(object); + addInheritancePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IdentifiedConfiguration_identifier_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_IdentifiedConfiguration_identifier_feature", "_UI_IdentifiedConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.IDENTIFIED_CONFIGURATION__IDENTIFIER, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Target feature. + * + * + * @generated + */ + protected void addTargetPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_AbstractAdviceBindingConfiguration_target_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_AbstractAdviceBindingConfiguration_target_feature", "_UI_AbstractAdviceBindingConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET, + true, + false, + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Inheritance feature. + * + * + * @generated + */ + protected void addInheritancePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_AbstractAdviceBindingConfiguration_inheritance_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_AbstractAdviceBindingConfiguration_inheritance_feature", "_UI_AbstractAdviceBindingConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((AbstractAdviceBindingConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_AbstractAdviceBindingConfiguration_type") : + getString("_UI_AbstractAdviceBindingConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(AbstractAdviceBindingConfiguration.class)) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, + ElementTypesConfigurationsFactory.eINSTANCE.createContainerConfiguration())); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, + ElementTypesConfigurationsFactory.eINSTANCE.createMatcherConfiguration())); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractEditHelperAdviceConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractEditHelperAdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..f72e7d3a639 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractEditHelperAdviceConfigurationItemProvider.java @@ -0,0 +1,98 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration} object. + * + * + * @generated + */ +public class AbstractEditHelperAdviceConfigurationItemProvider extends AdviceConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public AbstractEditHelperAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((AbstractEditHelperAdviceConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_AbstractEditHelperAdviceConfiguration_type") : + getString("_UI_AbstractEditHelperAdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractMatcherConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractMatcherConfigurationItemProvider.java new file mode 100644 index 00000000000..8f2623c899b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AbstractMatcherConfigurationItemProvider.java @@ -0,0 +1,120 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration} object. + * + * + * @generated + */ +public class AbstractMatcherConfigurationItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public AbstractMatcherConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_AbstractMatcherConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceBindingConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceBindingConfigurationItemProvider.java new file mode 100644 index 00000000000..70197640729 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceBindingConfigurationItemProvider.java @@ -0,0 +1,142 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.AdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration} object. + * + * + * @generated + */ +public class AdviceBindingConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public AdviceBindingConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addEditHelperAdviceClassNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Edit Helper Advice Class Name feature. + * + * + * @generated + */ + protected void addEditHelperAdviceClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_AdviceBindingConfiguration_editHelperAdviceClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_AdviceBindingConfiguration_editHelperAdviceClassName_feature", "_UI_AdviceBindingConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns AdviceBindingConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/AdviceBindingConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((AdviceBindingConfiguration)object).getEditHelperAdviceClassName(); + return label == null || label.length() == 0 ? + getString("_UI_AdviceBindingConfiguration_type") : + getString("_UI_AdviceBindingConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(AdviceBindingConfiguration.class)) { + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..6c04ba8a5a6 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/AdviceConfigurationItemProvider.java @@ -0,0 +1,155 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.AdviceConfiguration} object. + * + * + * @generated + */ +public class AdviceConfigurationItemProvider extends ConfigurationElementItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public AdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addBeforePropertyDescriptor(object); + addAfterPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Before feature. + * + * + * @generated + */ + protected void addBeforePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_AdviceConfiguration_before_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_AdviceConfiguration_before_feature", "_UI_AdviceConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ADVICE_CONFIGURATION__BEFORE, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the After feature. + * + * + * @generated + */ + protected void addAfterPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_AdviceConfiguration_after_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_AdviceConfiguration_after_feature", "_UI_AdviceConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ADVICE_CONFIGURATION__AFTER, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((AdviceConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_AdviceConfiguration_type") : + getString("_UI_AdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(AdviceConfiguration.class)) { + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__AFTER: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ConfigurationElementItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ConfigurationElementItemProvider.java new file mode 100644 index 00000000000..cfb3a38c4a5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ConfigurationElementItemProvider.java @@ -0,0 +1,158 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.ConfigurationElement} object. + * + * + * @generated + */ +public class ConfigurationElementItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ConfigurationElementItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addDescriptionPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Description feature. + * + * + * @generated + */ + protected void addDescriptionPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ConfigurationElement_description_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationElement_description_feature", "_UI_ConfigurationElement_type"), + ElementTypesConfigurationsPackage.Literals.CONFIGURATION_ELEMENT__DESCRIPTION, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ConfigurationElement)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_ConfigurationElement_type") : + getString("_UI_ConfigurationElement_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ConfigurationElement.class)) { + case ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ContainerConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ContainerConfigurationItemProvider.java new file mode 100644 index 00000000000..f2019ff1970 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ContainerConfigurationItemProvider.java @@ -0,0 +1,203 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.ContainerConfiguration} object. + * + * + * @generated + */ +public class ContainerConfigurationItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ContainerConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addEContainmentFeaturesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the EContainment Features feature. + * + * + * @generated + */ + protected void addEContainmentFeaturesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ContainerConfiguration_eContainmentFeatures_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ContainerConfiguration_eContainmentFeatures_feature", "_UI_ContainerConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES, + true, + false, + true, + null, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ContainerConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ContainerConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_ContainerConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ContainerConfiguration.class)) { + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, + ElementTypesConfigurationsFactory.eINSTANCE.createMatcherConfiguration())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/EditHelperAdviceConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/EditHelperAdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..83759b12221 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/EditHelperAdviceConfigurationItemProvider.java @@ -0,0 +1,142 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration} object. + * + * + * @generated + */ +public class EditHelperAdviceConfigurationItemProvider extends AbstractEditHelperAdviceConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public EditHelperAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addEditHelperAdviceClassNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Edit Helper Advice Class Name feature. + * + * + * @generated + */ + protected void addEditHelperAdviceClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_EditHelperAdviceConfiguration_editHelperAdviceClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_EditHelperAdviceConfiguration_editHelperAdviceClassName_feature", "_UI_EditHelperAdviceConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns EditHelperAdviceConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/EditHelperAdviceConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((EditHelperAdviceConfiguration)object).getEditHelperAdviceClassName(); + return label == null || label.length() == 0 ? + getString("_UI_EditHelperAdviceConfiguration_type") : + getString("_UI_EditHelperAdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(EditHelperAdviceConfiguration.class)) { + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeConfigurationItemProvider.java new file mode 100644 index 00000000000..ab1e4089955 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeConfigurationItemProvider.java @@ -0,0 +1,244 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration} object. + * + * + * @generated + */ +public class ElementTypeConfigurationItemProvider extends ConfigurationElementItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ElementTypeConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addNamePropertyDescriptor(object); + addHintPropertyDescriptor(object); + addKindPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IdentifiedConfiguration_identifier_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_IdentifiedConfiguration_identifier_feature", "_UI_IdentifiedConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.IDENTIFIED_CONFIGURATION__IDENTIFIER, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_NamedConfiguration_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_NamedConfiguration_name_feature", "_UI_NamedConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.NAMED_CONFIGURATION__NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Hint feature. + * + * + * @generated + */ + protected void addHintPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ElementTypeConfiguration_hint_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ElementTypeConfiguration_hint_feature", "_UI_ElementTypeConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__HINT, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Kind feature. + * + * + * @generated + */ + protected void addKindPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ElementTypeConfiguration_kind_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ElementTypeConfiguration_kind_feature", "_UI_ElementTypeConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__KIND, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ElementTypeConfiguration)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_ElementTypeConfiguration_type") : + getString("_UI_ElementTypeConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ElementTypeConfiguration.class)) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, + ElementTypesConfigurationsFactory.eINSTANCE.createIconEntry())); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeSetConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeSetConfigurationItemProvider.java new file mode 100644 index 00000000000..258f57d803b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypeSetConfigurationItemProvider.java @@ -0,0 +1,243 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration} object. + * + * + * @generated + */ +public class ElementTypeSetConfigurationItemProvider extends ConfigurationElementItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ElementTypeSetConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addNamePropertyDescriptor(object); + addMetamodelNsURIPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IdentifiedConfiguration_identifier_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_IdentifiedConfiguration_identifier_feature", "_UI_IdentifiedConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.IDENTIFIED_CONFIGURATION__IDENTIFIER, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Name feature. + * + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_NamedConfiguration_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_NamedConfiguration_name_feature", "_UI_NamedConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.NAMED_CONFIGURATION__NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Metamodel Ns URI feature. + * + * + * @generated + */ + protected void addMetamodelNsURIPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ElementTypeSetConfiguration_metamodelNsURI_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ElementTypeSetConfiguration_metamodelNsURI_feature", "_UI_ElementTypeSetConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ElementTypeSetConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ElementTypeSetConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ElementTypeSetConfiguration)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_ElementTypeSetConfiguration_type") : + getString("_UI_ElementTypeSetConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ElementTypeSetConfiguration.class)) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS, + ElementTypesConfigurationsFactory.eINSTANCE.createSpecializationTypeConfiguration())); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS, + ElementTypesConfigurationsFactory.eINSTANCE.createMetamodelTypeConfiguration())); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, + ElementTypesConfigurationsFactory.eINSTANCE.createAdviceBindingConfiguration())); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypesConfigurationsItemProviderAdapterFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypesConfigurationsItemProviderAdapterFactory.java new file mode 100644 index 00000000000..ef2a007e8a8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/ElementTypesConfigurationsItemProviderAdapterFactory.java @@ -0,0 +1,421 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsAdapterFactory; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class ElementTypesConfigurationsItemProviderAdapterFactory extends ElementTypesConfigurationsAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This helps manage the child creation extenders. + * + * + * @generated + */ + protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager(TypesConfigurationsEditPlugin.INSTANCE, ElementTypesConfigurationsPackage.eNS_URI); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public ElementTypesConfigurationsItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration} instances. + * + * + * @generated + */ + protected ElementTypeSetConfigurationItemProvider elementTypeSetConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createElementTypeSetConfigurationAdapter() { + if (elementTypeSetConfigurationItemProvider == null) { + elementTypeSetConfigurationItemProvider = new ElementTypeSetConfigurationItemProvider(this); + } + + return elementTypeSetConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.IconEntry} instances. + * + * + * @generated + */ + protected IconEntryItemProvider iconEntryItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.IconEntry}. + * + * + * @generated + */ + @Override + public Adapter createIconEntryAdapter() { + if (iconEntryItemProvider == null) { + iconEntryItemProvider = new IconEntryItemProvider(this); + } + + return iconEntryItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration} instances. + * + * + * @generated + */ + protected SpecializationTypeConfigurationItemProvider specializationTypeConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createSpecializationTypeConfigurationAdapter() { + if (specializationTypeConfigurationItemProvider == null) { + specializationTypeConfigurationItemProvider = new SpecializationTypeConfigurationItemProvider(this); + } + + return specializationTypeConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.ContainerConfiguration} instances. + * + * + * @generated + */ + protected ContainerConfigurationItemProvider containerConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.ContainerConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createContainerConfigurationAdapter() { + if (containerConfigurationItemProvider == null) { + containerConfigurationItemProvider = new ContainerConfigurationItemProvider(this); + } + + return containerConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration} instances. + * + * + * @generated + */ + protected MetamodelTypeConfigurationItemProvider metamodelTypeConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createMetamodelTypeConfigurationAdapter() { + if (metamodelTypeConfigurationItemProvider == null) { + metamodelTypeConfigurationItemProvider = new MetamodelTypeConfigurationItemProvider(this); + } + + return metamodelTypeConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration} instances. + * + * + * @generated + */ + protected EditHelperAdviceConfigurationItemProvider editHelperAdviceConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createEditHelperAdviceConfigurationAdapter() { + if (editHelperAdviceConfigurationItemProvider == null) { + editHelperAdviceConfigurationItemProvider = new EditHelperAdviceConfigurationItemProvider(this); + } + + return editHelperAdviceConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration} instances. + * + * + * @generated + */ + protected AdviceBindingConfigurationItemProvider adviceBindingConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createAdviceBindingConfigurationAdapter() { + if (adviceBindingConfigurationItemProvider == null) { + adviceBindingConfigurationItemProvider = new AdviceBindingConfigurationItemProvider(this); + } + + return adviceBindingConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.MatcherConfiguration} instances. + * + * + * @generated + */ + protected MatcherConfigurationItemProvider matcherConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.MatcherConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createMatcherConfigurationAdapter() { + if (matcherConfigurationItemProvider == null) { + matcherConfigurationItemProvider = new MatcherConfigurationItemProvider(this); + } + + return matcherConfigurationItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * + * + * @generated + */ + public List getChildCreationExtenders() { + return childCreationExtenderManager.getChildCreationExtenders(); + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return childCreationExtenderManager; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (elementTypeSetConfigurationItemProvider != null) elementTypeSetConfigurationItemProvider.dispose(); + if (iconEntryItemProvider != null) iconEntryItemProvider.dispose(); + if (specializationTypeConfigurationItemProvider != null) specializationTypeConfigurationItemProvider.dispose(); + if (containerConfigurationItemProvider != null) containerConfigurationItemProvider.dispose(); + if (metamodelTypeConfigurationItemProvider != null) metamodelTypeConfigurationItemProvider.dispose(); + if (editHelperAdviceConfigurationItemProvider != null) editHelperAdviceConfigurationItemProvider.dispose(); + if (adviceBindingConfigurationItemProvider != null) adviceBindingConfigurationItemProvider.dispose(); + if (matcherConfigurationItemProvider != null) matcherConfigurationItemProvider.dispose(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/IconEntryItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/IconEntryItemProvider.java new file mode 100644 index 00000000000..382e93aaed8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/IconEntryItemProvider.java @@ -0,0 +1,193 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IconEntry; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.IconEntry} object. + * + * + * @generated + */ +public class IconEntryItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public IconEntryItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIconPathPropertyDescriptor(object); + addBundleIdPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Icon Path feature. + * + * + * @generated + */ + protected void addIconPathPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IconEntry_iconPath_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_IconEntry_iconPath_feature", "_UI_IconEntry_type"), + ElementTypesConfigurationsPackage.Literals.ICON_ENTRY__ICON_PATH, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Bundle Id feature. + * + * + * @generated + */ + protected void addBundleIdPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IconEntry_bundleId_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_IconEntry_bundleId_feature", "_UI_IconEntry_type"), + ElementTypesConfigurationsPackage.Literals.ICON_ENTRY__BUNDLE_ID, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns IconEntry.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/IconEntry")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((IconEntry)object).getIconPath(); + return label == null || label.length() == 0 ? + getString("_UI_IconEntry_type") : + getString("_UI_IconEntry_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(IconEntry.class)) { + case ElementTypesConfigurationsPackage.ICON_ENTRY__ICON_PATH: + case ElementTypesConfigurationsPackage.ICON_ENTRY__BUNDLE_ID: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MatcherConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MatcherConfigurationItemProvider.java new file mode 100644 index 00000000000..58a2ae3c13b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MatcherConfigurationItemProvider.java @@ -0,0 +1,142 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.MatcherConfiguration; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.MatcherConfiguration} object. + * + * + * @generated + */ +public class MatcherConfigurationItemProvider extends AbstractMatcherConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public MatcherConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addMatcherClassNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Matcher Class Name feature. + * + * + * @generated + */ + protected void addMatcherClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_MatcherConfiguration_matcherClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_MatcherConfiguration_matcherClassName_feature", "_UI_MatcherConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns MatcherConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/MatcherConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((MatcherConfiguration)object).getMatcherClassName(); + return label == null || label.length() == 0 ? + getString("_UI_MatcherConfiguration_type") : + getString("_UI_MatcherConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(MatcherConfiguration.class)) { + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MetamodelTypeConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MetamodelTypeConfigurationItemProvider.java new file mode 100644 index 00000000000..e2daded37c0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/MetamodelTypeConfigurationItemProvider.java @@ -0,0 +1,165 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration} object. + * + * + * @generated + */ +public class MetamodelTypeConfigurationItemProvider extends ElementTypeConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public MetamodelTypeConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addEClassPropertyDescriptor(object); + addEditHelperClassNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the EClass feature. + * + * + * @generated + */ + protected void addEClassPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_MetamodelTypeConfiguration_eClass_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_MetamodelTypeConfiguration_eClass_feature", "_UI_MetamodelTypeConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.METAMODEL_TYPE_CONFIGURATION__ECLASS, + true, + false, + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Edit Helper Class Name feature. + * + * + * @generated + */ + protected void addEditHelperClassNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_MetamodelTypeConfiguration_editHelperClassName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_MetamodelTypeConfiguration_editHelperClassName_feature", "_UI_MetamodelTypeConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns MetamodelTypeConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/MetamodelTypeConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((MetamodelTypeConfiguration)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_MetamodelTypeConfiguration_type") : + getString("_UI_MetamodelTypeConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(MetamodelTypeConfiguration.class)) { + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/SpecializationTypeConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/SpecializationTypeConfigurationItemProvider.java new file mode 100644 index 00000000000..971d3ee9336 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/SpecializationTypeConfigurationItemProvider.java @@ -0,0 +1,197 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration} object. + * + * + * @generated + */ +public class SpecializationTypeConfigurationItemProvider extends ElementTypeConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public SpecializationTypeConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addSpecializedTypesIDPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Specialized Types ID feature. + * + * + * @generated + */ + protected void addSpecializedTypesIDPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_SpecializationTypeConfiguration_specializedTypesID_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_SpecializationTypeConfiguration_specializedTypesID_feature", "_UI_SpecializationTypeConfiguration_type"), + ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION); + childrenFeatures.add(ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns SpecializationTypeConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/SpecializationTypeConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((SpecializationTypeConfiguration)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_SpecializationTypeConfiguration_type") : + getString("_UI_SpecializationTypeConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(SpecializationTypeConfiguration.class)) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, + ElementTypesConfigurationsFactory.eINSTANCE.createEditHelperAdviceConfiguration())); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, + ElementTypesConfigurationsFactory.eINSTANCE.createContainerConfiguration())); + + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, + ElementTypesConfigurationsFactory.eINSTANCE.createMatcherConfiguration())); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/TypesConfigurationsEditPlugin.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/TypesConfigurationsEditPlugin.java new file mode 100644 index 00000000000..6ee7dd7ffda --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.edit/src-gen/org/eclipse/papyrus/infra/types/provider/TypesConfigurationsEditPlugin.java @@ -0,0 +1,99 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the ElementTypesConfigurations edit plugin. + * + * + * @generated + */ +public final class TypesConfigurationsEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final TypesConfigurationsEditPlugin INSTANCE = new TypesConfigurationsEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public TypesConfigurationsEditPlugin() { + super + (new ResourceLocator [] { + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.classpath b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.classpath new file mode 100644 index 00000000000..3fb4047155a --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.project b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.project new file mode 100644 index 00000000000..415647bf396 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.editor + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..4d72ad12656 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,288 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/META-INF/MANIFEST.MF b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..23729b9058f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/META-INF/MANIFEST.MF @@ -0,0 +1,18 @@ +Manifest-Version: 1.0 +Export-Package: org.eclipse.papyrus.infra.types.presentation +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.core.resources;visibility:=reexport, + org.eclipse.papyrus.infra.types.edit;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.emf.edit.ui;visibility:=reexport, + org.eclipse.ui.ide;visibility:=reexport +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.infra.types.presentation.TypesConfigurationsEditorPlugin$Implementation +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.editor;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/about.html b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/build.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/build.properties new file mode 100644 index 00000000000..2d24be10e74 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/build.properties @@ -0,0 +1,23 @@ +# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. +# +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation +# Christian W. Damus - bug 451230 +# + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html +jars.compile.order = . +source.. = src-gen/ +output.. = bin +src.includes = about.html diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif new file mode 100644 index 00000000000..e5c6e175f7f Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/ElementtypesconfigurationsModelFile.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesConfigurationsModelFile.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesConfigurationsModelFile.gif new file mode 100644 index 00000000000..8315589c999 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesConfigurationsModelFile.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesModelFile.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesModelFile.gif new file mode 100644 index 00000000000..9ce977aa287 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/obj16/TypesModelFile.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewElementtypesconfigurations.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewElementtypesconfigurations.gif new file mode 100644 index 00000000000..caab2147182 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewElementtypesconfigurations.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypes.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypes.gif new file mode 100644 index 00000000000..d7a58977468 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypes.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypesConfigurations.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypesConfigurations.gif new file mode 100644 index 00000000000..a6b42e7444a Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/icons/full/wizban/NewTypesConfigurations.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.properties new file mode 100644 index 00000000000..2cf10f2f34d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.properties @@ -0,0 +1,85 @@ +# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. +# +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation +# Christian W. Damus - bug 451230 +# + +pluginName=Papyrus elementTypes configurations editor +providerName=Eclipse Modeling Project + +_UI_ElementtypesconfigurationsEditor_menu = &Elementtypesconfigurations Editor + +_UI_CreateChild_menu_item = &New Child +_UI_CreateSibling_menu_item = N&ew Sibling + +_UI_ShowPropertiesView_menu_item = Show &Properties View +_UI_RefreshViewer_menu_item = &Refresh + +_UI_SelectionPage_label = Selection +_UI_ParentPage_label = Parent +_UI_ListPage_label = List +_UI_TreePage_label = Tree +_UI_TablePage_label = Table +_UI_TreeWithColumnsPage_label = Tree with Columns +_UI_ObjectColumn_label = Object +_UI_SelfColumn_label = Self + +_UI_NoObjectSelected = Selected Nothing +_UI_SingleObjectSelected = Selected Object: {0} +_UI_MultiObjectSelected = Selected {0} Objects + +_UI_OpenEditorError_label = Open Editor + +_UI_Wizard_category = Example EMF Model Creation Wizards + +_UI_CreateModelError_message = Problems encountered in file "{0}" + +_UI_ElementtypesconfigurationsModelWizard_label = Elementtypesconfigurations Model +_UI_ElementtypesconfigurationsModelWizard_description = Create a new Elementtypesconfigurations model + +_UI_ElementtypesconfigurationsEditor_label = Elementtypesconfigurations Model Editor + +_UI_ElementtypesconfigurationsEditorFilenameDefaultBase = My +_UI_ElementtypesconfigurationsEditorFilenameExtensions = elementtypesconfigurations + +_UI_Wizard_label = New + +_WARN_FilenameExtension = The file name must end in ''.{0}'' +_WARN_FilenameExtensions = The file name must have one of the following extensions: {0} + +_UI_ModelObject = &Model Object +_UI_XMLEncoding = &XML Encoding +_UI_XMLEncodingChoices = UTF-8 ASCII UTF-16 UTF-16BE UTF-16LE ISO-8859-1 +_UI_Wizard_initial_object_description = Select a model object to create + +_UI_FileConflict_label = File Conflict +_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes? + +_UI_TypesEditor_menu = &Types Editor + _UI_TypesModelWizard_label = Types Model +_UI_TypesModelWizard_description = Create a new Types model + _UI_TypesEditor_label = Types Model Editor + _UI_TypesEditorFilenameDefaultBase = My +_UI_TypesEditorFilenameExtensions = types + +_UI_TypesConfigurationsEditor_menu = &TypesConfigurations Editor + _UI_TypesConfigurationsModelWizard_label = TypesConfigurations Model +_UI_TypesConfigurationsModelWizard_description = Create a new TypesConfigurations model + _UI_TypesConfigurationsEditor_label = TypesConfigurations Model Editor + _UI_TypesConfigurationsEditorFilenameDefaultBase = My +_UI_TypesConfigurationsEditorFilenameExtensions = typesconfigurations + +_UI_ElementTypesConfigurationsEditor_menu = &ElementTypesConfigurations Editor + _UI_ElementTypesConfigurationsModelWizard_label = ElementTypesConfigurations Model +_UI_ElementTypesConfigurationsModelWizard_description = Create a new ElementTypesConfigurations model + _UI_ElementTypesConfigurationsEditor_label = ElementTypesConfigurations Model Editor + _UI_ElementTypesConfigurationsEditorFilenameDefaultBase = My +_UI_ElementTypesConfigurationsEditorFilenameExtensions = elementtypesconfigurations + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.xml new file mode 100644 index 00000000000..609a7d08438 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/plugin.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + %_UI_ElementTypesConfigurationsModelWizard_description + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/pom.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/pom.xml new file mode 100644 index 00000000000..bd708807baf --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-types + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.types.editor + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsActionBarContributor.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsActionBarContributor.java new file mode 100644 index 00000000000..ada3a30f3ec --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsActionBarContributor.java @@ -0,0 +1,433 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.presentation; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.common.ui.viewer.IViewerProvider; + +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.edit.domain.IEditingDomainProvider; + +import org.eclipse.emf.edit.ui.action.ControlAction; +import org.eclipse.emf.edit.ui.action.CreateChildAction; +import org.eclipse.emf.edit.ui.action.CreateSiblingAction; +import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; +import org.eclipse.emf.edit.ui.action.LoadResourceAction; +import org.eclipse.emf.edit.ui.action.ValidateAction; + +import org.eclipse.jface.action.Action; +import org.eclipse.jface.action.ActionContributionItem; +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.action.IContributionItem; +import org.eclipse.jface.action.IContributionManager; +import org.eclipse.jface.action.IMenuListener; +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.MenuManager; +import org.eclipse.jface.action.Separator; +import org.eclipse.jface.action.SubContributionItem; + +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.Viewer; + +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.PartInitException; + +/** + * This is the action bar contributor for the ElementTypesConfigurations model editor. + * + * + * @generated + */ +public class ElementTypesConfigurationsActionBarContributor + extends EditingDomainActionBarContributor + implements ISelectionChangedListener { + /** + * This keeps track of the active editor. + * + * + * @generated + */ + protected IEditorPart activeEditorPart; + + /** + * This keeps track of the current selection provider. + * + * + * @generated + */ + protected ISelectionProvider selectionProvider; + + /** + * This action opens the Properties view. + * + * + * @generated + */ + protected IAction showPropertiesViewAction = + new Action(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) { + @Override + public void run() { + try { + getPage().showView("org.eclipse.ui.views.PropertySheet"); + } + catch (PartInitException exception) { + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + } + } + }; + + /** + * This action refreshes the viewer of the current editor if the editor + * implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. + * + * + * @generated + */ + protected IAction refreshViewerAction = + new Action(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) { + @Override + public boolean isEnabled() { + return activeEditorPart instanceof IViewerProvider; + } + + @Override + public void run() { + if (activeEditorPart instanceof IViewerProvider) { + Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer(); + if (viewer != null) { + viewer.refresh(); + } + } + } + }; + + /** + * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor + * generated for the current selection by the item provider. + * + * + * @generated + */ + protected Collection createChildActions; + + /** + * This is the menu manager into which menu contribution items should be added for CreateChild actions. + * + * + * @generated + */ + protected IMenuManager createChildMenuManager; + + /** + * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each descriptor + * generated for the current selection by the item provider. + * + * + * @generated + */ + protected Collection createSiblingActions; + + /** + * This is the menu manager into which menu contribution items should be added for CreateSibling actions. + * + * + * @generated + */ + protected IMenuManager createSiblingMenuManager; + + /** + * This creates an instance of the contributor. + * + * + * @generated + */ + public ElementTypesConfigurationsActionBarContributor() { + super(ADDITIONS_LAST_STYLE); + loadResourceAction = new LoadResourceAction(); + validateAction = new ValidateAction(); + controlAction = new ControlAction(); + } + + /** + * This adds Separators for editor additions to the tool bar. + * + * + * @generated + */ + @Override + public void contributeToToolBar(IToolBarManager toolBarManager) { + toolBarManager.add(new Separator("elementtypesconfigurations-settings")); + toolBarManager.add(new Separator("elementtypesconfigurations-additions")); + } + + /** + * This adds to the menu bar a menu and some separators for editor additions, + * as well as the sub-menus for object creation items. + * + * + * @generated + */ + @Override + public void contributeToMenu(IMenuManager menuManager) { + super.contributeToMenu(menuManager); + + IMenuManager submenuManager = new MenuManager(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsEditor_menu"), "org.eclipse.papyrus.infra.typesMenuID"); + menuManager.insertAfter("additions", submenuManager); + submenuManager.add(new Separator("settings")); + submenuManager.add(new Separator("actions")); + submenuManager.add(new Separator("additions")); + submenuManager.add(new Separator("additions-end")); + + // Prepare for CreateChild item addition or removal. + // + createChildMenuManager = new MenuManager(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); + submenuManager.insertBefore("additions", createChildMenuManager); + + // Prepare for CreateSibling item addition or removal. + // + createSiblingMenuManager = new MenuManager(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); + submenuManager.insertBefore("additions", createSiblingMenuManager); + + // Force an update because Eclipse hides empty menus now. + // + submenuManager.addMenuListener + (new IMenuListener() { + public void menuAboutToShow(IMenuManager menuManager) { + menuManager.updateAll(true); + } + }); + + addGlobalActions(submenuManager); + } + + /** + * When the active editor changes, this remembers the change and registers with it as a selection provider. + * + * + * @generated + */ + @Override + public void setActiveEditor(IEditorPart part) { + super.setActiveEditor(part); + activeEditorPart = part; + + // Switch to the new selection provider. + // + if (selectionProvider != null) { + selectionProvider.removeSelectionChangedListener(this); + } + if (part == null) { + selectionProvider = null; + } + else { + selectionProvider = part.getSite().getSelectionProvider(); + selectionProvider.addSelectionChangedListener(this); + + // Fake a selection changed event to update the menus. + // + if (selectionProvider.getSelection() != null) { + selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection())); + } + } + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, + * handling {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings + * that can be added to the selected object and updating the menus accordingly. + * + * + * @generated + */ + public void selectionChanged(SelectionChangedEvent event) { + // Remove any menu items for old selection. + // + if (createChildMenuManager != null) { + depopulateManager(createChildMenuManager, createChildActions); + } + if (createSiblingMenuManager != null) { + depopulateManager(createSiblingMenuManager, createSiblingActions); + } + + // Query the new selection for appropriate new child/sibling descriptors + // + Collection newChildDescriptors = null; + Collection newSiblingDescriptors = null; + + ISelection selection = event.getSelection(); + if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) { + Object object = ((IStructuredSelection)selection).getFirstElement(); + + EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain(); + + newChildDescriptors = domain.getNewChildDescriptors(object, null); + newSiblingDescriptors = domain.getNewChildDescriptors(null, object); + } + + // Generate actions for selection; populate and redraw the menus. + // + createChildActions = generateCreateChildActions(newChildDescriptors, selection); + createSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection); + + if (createChildMenuManager != null) { + populateManager(createChildMenuManager, createChildActions, null); + createChildMenuManager.update(true); + } + if (createSiblingMenuManager != null) { + populateManager(createSiblingMenuManager, createSiblingActions, null); + createSiblingMenuManager.update(true); + } + } + + /** + * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in descriptors, + * and returns the collection of these actions. + * + * + * @generated + */ + protected Collection generateCreateChildActions(Collection descriptors, ISelection selection) { + Collection actions = new ArrayList(); + if (descriptors != null) { + for (Object descriptor : descriptors) { + actions.add(new CreateChildAction(activeEditorPart, selection, descriptor)); + } + } + return actions; + } + + /** + * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in descriptors, + * and returns the collection of these actions. + * + * + * @generated + */ + protected Collection generateCreateSiblingActions(Collection descriptors, ISelection selection) { + Collection actions = new ArrayList(); + if (descriptors != null) { + for (Object descriptor : descriptors) { + actions.add(new CreateSiblingAction(activeEditorPart, selection, descriptor)); + } + } + return actions; + } + + /** + * This populates the specified manager with {@link org.eclipse.jface.action.ActionContributionItem}s + * based on the {@link org.eclipse.jface.action.IAction}s contained in the actions collection, + * by inserting them before the specified contribution item contributionID. + * If contributionID is null, they are simply added. + * + * + * @generated + */ + protected void populateManager(IContributionManager manager, Collection actions, String contributionID) { + if (actions != null) { + for (IAction action : actions) { + if (contributionID != null) { + manager.insertBefore(contributionID, action); + } + else { + manager.add(action); + } + } + } + } + + /** + * This removes from the specified manager all {@link org.eclipse.jface.action.ActionContributionItem}s + * based on the {@link org.eclipse.jface.action.IAction}s contained in the actions collection. + * + * + * @generated + */ + protected void depopulateManager(IContributionManager manager, Collection actions) { + if (actions != null) { + IContributionItem[] items = manager.getItems(); + for (int i = 0; i < items.length; i++) { + // Look into SubContributionItems + // + IContributionItem contributionItem = items[i]; + while (contributionItem instanceof SubContributionItem) { + contributionItem = ((SubContributionItem)contributionItem).getInnerItem(); + } + + // Delete the ActionContributionItems with matching action. + // + if (contributionItem instanceof ActionContributionItem) { + IAction action = ((ActionContributionItem)contributionItem).getAction(); + if (actions.contains(action)) { + manager.remove(contributionItem); + } + } + } + } + } + + /** + * This populates the pop-up menu before it appears. + * + * + * @generated + */ + @Override + public void menuAboutToShow(IMenuManager menuManager) { + super.menuAboutToShow(menuManager); + MenuManager submenuManager = null; + + submenuManager = new MenuManager(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); + populateManager(submenuManager, createChildActions, null); + menuManager.insertBefore("edit", submenuManager); + + submenuManager = new MenuManager(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); + populateManager(submenuManager, createSiblingActions, null); + menuManager.insertBefore("edit", submenuManager); + } + + /** + * This inserts global actions before the "additions-end" separator. + * + * + * @generated + */ + @Override + protected void addGlobalActions(IMenuManager menuManager) { + menuManager.insertAfter("additions-end", new Separator("ui-actions")); + menuManager.insertAfter("ui-actions", showPropertiesViewAction); + + refreshViewerAction.setEnabled(refreshViewerAction.isEnabled()); + menuManager.insertAfter("ui-actions", refreshViewerAction); + + super.addGlobalActions(menuManager); + } + + /** + * This ensures that a delete action will clean up all references to deleted objects. + * + * + * @generated + */ + @Override + protected boolean removeAllReferencesOnDelete() { + return true; + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsEditor.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsEditor.java new file mode 100644 index 00000000000..3a96faff476 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsEditor.java @@ -0,0 +1,1829 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.presentation; + + +import java.io.IOException; +import java.io.InputStream; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.EventObject; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IMarker; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.IResourceChangeEvent; +import org.eclipse.core.resources.IResourceChangeListener; +import org.eclipse.core.resources.IResourceDelta; +import org.eclipse.core.resources.IResourceDeltaVisitor; +import org.eclipse.core.resources.ResourcesPlugin; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; + +import org.eclipse.jface.action.IMenuListener; +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.jface.action.IStatusLineManager; +import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.MenuManager; +import org.eclipse.jface.action.Separator; + +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.dialogs.ProgressMonitorDialog; + +import org.eclipse.jface.util.LocalSelectionTransfer; + +import org.eclipse.jface.viewers.ColumnWeightData; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.ListViewer; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.viewers.StructuredViewer; +import org.eclipse.jface.viewers.TableLayout; +import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.jface.viewers.TreeViewer; +import org.eclipse.jface.viewers.Viewer; + +import org.eclipse.swt.SWT; + +import org.eclipse.swt.custom.CTabFolder; + +import org.eclipse.swt.dnd.DND; +import org.eclipse.swt.dnd.FileTransfer; +import org.eclipse.swt.dnd.Transfer; + +import org.eclipse.swt.events.ControlAdapter; +import org.eclipse.swt.events.ControlEvent; + +import org.eclipse.swt.graphics.Point; + +import org.eclipse.swt.layout.FillLayout; + +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Menu; +import org.eclipse.swt.widgets.Table; +import org.eclipse.swt.widgets.TableColumn; +import org.eclipse.swt.widgets.Tree; +import org.eclipse.swt.widgets.TreeColumn; + +import org.eclipse.ui.IActionBars; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.IEditorSite; +import org.eclipse.ui.IPartListener; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.PartInitException; + +import org.eclipse.ui.dialogs.SaveAsDialog; + +import org.eclipse.ui.ide.IGotoMarker; + +import org.eclipse.ui.part.FileEditorInput; +import org.eclipse.ui.part.MultiPageEditorPart; + +import org.eclipse.ui.views.contentoutline.ContentOutline; +import org.eclipse.ui.views.contentoutline.ContentOutlinePage; +import org.eclipse.ui.views.contentoutline.IContentOutlinePage; + +import org.eclipse.ui.views.properties.IPropertySheetPage; +import org.eclipse.ui.views.properties.PropertySheet; +import org.eclipse.ui.views.properties.PropertySheetPage; + +import org.eclipse.emf.common.command.BasicCommandStack; +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.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.ui.MarkerHelper; +import org.eclipse.emf.common.ui.ViewerPane; + +import org.eclipse.emf.common.ui.editor.ProblemEditorPart; + +import org.eclipse.emf.common.ui.viewer.IViewerProvider; + +import org.eclipse.emf.common.util.BasicDiagnostic; +import org.eclipse.emf.common.util.Diagnostic; +import org.eclipse.emf.common.util.URI; + + +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.ecore.resource.ResourceSet; + +import org.eclipse.emf.ecore.util.EContentAdapter; +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.AdapterFactoryItemDelegator; +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.action.EditingDomainActionBarContributor; + +import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; + +import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; +import org.eclipse.emf.edit.ui.dnd.LocalTransfer; +import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; + +import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; +import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; +import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; + +import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; +import org.eclipse.emf.edit.ui.util.EditUIUtil; + +import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; + +import org.eclipse.papyrus.infra.types.provider.ElementTypesConfigurationsItemProviderAdapterFactory; + +import org.eclipse.ui.actions.WorkspaceModifyOperation; + + +/** + * This is an example of a ElementTypesConfigurations model editor. + * + * + * @generated + */ +public class ElementTypesConfigurationsEditor + extends MultiPageEditorPart + implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker { + /** + * This keeps track of the editing domain that is used to track all changes to the model. + * + * + * @generated + */ + protected AdapterFactoryEditingDomain editingDomain; + + /** + * This is the one adapter factory used for providing views of the model. + * + * + * @generated + */ + protected ComposedAdapterFactory adapterFactory; + + /** + * This is the content outline page. + * + * + * @generated + */ + protected IContentOutlinePage contentOutlinePage; + + /** + * This is a kludge... + * + * + * @generated + */ + protected IStatusLineManager contentOutlineStatusLineManager; + + /** + * This is the content outline page's viewer. + * + * + * @generated + */ + protected TreeViewer contentOutlineViewer; + + /** + * This is the property sheet page. + * + * + * @generated + */ + protected List propertySheetPages = new ArrayList(); + + /** + * This is the viewer that shadows the selection in the content outline. + * The parent relation must be correctly defined for this to work. + * + * + * @generated + */ + protected TreeViewer selectionViewer; + + /** + * This inverts the roll of parent and child in the content provider and show parents as a tree. + * + * + * @generated + */ + protected TreeViewer parentViewer; + + /** + * This shows how a tree view works. + * + * + * @generated + */ + protected TreeViewer treeViewer; + + /** + * This shows how a list view works. + * A list viewer doesn't support icons. + * + * + * @generated + */ + protected ListViewer listViewer; + + /** + * This shows how a table view works. + * A table can be used as a list with icons. + * + * + * @generated + */ + protected TableViewer tableViewer; + + /** + * This shows how a tree view with columns works. + * + * + * @generated + */ + protected TreeViewer treeViewerWithColumns; + + /** + * This keeps track of the active viewer pane, in the book. + * + * + * @generated + */ + protected ViewerPane currentViewerPane; + + /** + * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer. + * + * + * @generated + */ + protected Viewer currentViewer; + + /** + * This listens to which ever viewer is active. + * + * + * @generated + */ + protected ISelectionChangedListener selectionChangedListener; + + /** + * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor. + * + * + * @generated + */ + protected Collection selectionChangedListeners = new ArrayList(); + + /** + * This keeps track of the selection of the editor as a whole. + * + * + * @generated + */ + protected ISelection editorSelection = StructuredSelection.EMPTY; + + /** + * The MarkerHelper is responsible for creating workspace resource markers presented + * in Eclipse's Problems View. + * + * + * @generated + */ + protected MarkerHelper markerHelper = new EditUIMarkerHelper(); + + /** + * This listens for when the outline becomes active + * + * + * @generated + */ + protected IPartListener partListener = + new IPartListener() { + public void partActivated(IWorkbenchPart p) { + if (p instanceof ContentOutline) { + if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) { + getActionBarContributor().setActiveEditor(ElementTypesConfigurationsEditor.this); + + setCurrentViewer(contentOutlineViewer); + } + } + else if (p instanceof PropertySheet) { + if (propertySheetPages.contains(((PropertySheet)p).getCurrentPage())) { + getActionBarContributor().setActiveEditor(ElementTypesConfigurationsEditor.this); + handleActivate(); + } + } + else if (p == ElementTypesConfigurationsEditor.this) { + handleActivate(); + } + } + public void partBroughtToTop(IWorkbenchPart p) { + // Ignore. + } + public void partClosed(IWorkbenchPart p) { + // Ignore. + } + public void partDeactivated(IWorkbenchPart p) { + // Ignore. + } + public void partOpened(IWorkbenchPart p) { + // Ignore. + } + }; + + /** + * Resources that have been removed since last activation. + * + * + * @generated + */ + protected Collection removedResources = new ArrayList(); + + /** + * Resources that have been changed since last activation. + * + * + * @generated + */ + protected Collection changedResources = new ArrayList(); + + /** + * Resources that have been saved. + * + * + * @generated + */ + protected Collection savedResources = new ArrayList(); + + /** + * Map to store the diagnostic associated with a resource. + * + * + * @generated + */ + protected Map resourceToDiagnosticMap = new LinkedHashMap(); + + /** + * Controls whether the problem indication should be updated. + * + * + * @generated + */ + protected boolean updateProblemIndication = true; + + /** + * Adapter used to update the problem indication when resources are demanded loaded. + * + * + * @generated + */ + protected EContentAdapter problemIndicationAdapter = + new EContentAdapter() { + @Override + public void notifyChanged(Notification notification) { + if (notification.getNotifier() instanceof Resource) { + switch (notification.getFeatureID(Resource.class)) { + case Resource.RESOURCE__IS_LOADED: + case Resource.RESOURCE__ERRORS: + case Resource.RESOURCE__WARNINGS: { + Resource resource = (Resource)notification.getNotifier(); + Diagnostic diagnostic = analyzeResourceProblems(resource, null); + if (diagnostic.getSeverity() != Diagnostic.OK) { + resourceToDiagnosticMap.put(resource, diagnostic); + } + else { + resourceToDiagnosticMap.remove(resource); + } + + if (updateProblemIndication) { + getSite().getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + updateProblemIndication(); + } + }); + } + break; + } + } + } + else { + super.notifyChanged(notification); + } + } + + @Override + protected void setTarget(Resource target) { + basicSetTarget(target); + } + + @Override + protected void unsetTarget(Resource target) { + basicUnsetTarget(target); + resourceToDiagnosticMap.remove(target); + if (updateProblemIndication) { + getSite().getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + updateProblemIndication(); + } + }); + } + } + }; + + /** + * This listens for workspace changes. + * + * + * @generated + */ + protected IResourceChangeListener resourceChangeListener = + new IResourceChangeListener() { + public void resourceChanged(IResourceChangeEvent event) { + IResourceDelta delta = event.getDelta(); + try { + class ResourceDeltaVisitor implements IResourceDeltaVisitor { + protected ResourceSet resourceSet = editingDomain.getResourceSet(); + protected Collection changedResources = new ArrayList(); + protected Collection removedResources = new ArrayList(); + + public boolean visit(IResourceDelta delta) { + if (delta.getResource().getType() == IResource.FILE) { + if (delta.getKind() == IResourceDelta.REMOVED || + delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) { + Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false); + if (resource != null) { + if (delta.getKind() == IResourceDelta.REMOVED) { + removedResources.add(resource); + } + else if (!savedResources.remove(resource)) { + changedResources.add(resource); + } + } + } + return false; + } + + return true; + } + + public Collection getChangedResources() { + return changedResources; + } + + public Collection getRemovedResources() { + return removedResources; + } + } + + final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); + delta.accept(visitor); + + if (!visitor.getRemovedResources().isEmpty()) { + getSite().getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + removedResources.addAll(visitor.getRemovedResources()); + if (!isDirty()) { + getSite().getPage().closeEditor(ElementTypesConfigurationsEditor.this, false); + } + } + }); + } + + if (!visitor.getChangedResources().isEmpty()) { + getSite().getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + changedResources.addAll(visitor.getChangedResources()); + if (getSite().getPage().getActiveEditor() == ElementTypesConfigurationsEditor.this) { + handleActivate(); + } + } + }); + } + } + catch (CoreException exception) { + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + } + } + }; + + /** + * Handles activation of the editor or it's associated views. + * + * + * @generated + */ + protected void handleActivate() { + // Recompute the read only state. + // + if (editingDomain.getResourceToReadOnlyMap() != null) { + editingDomain.getResourceToReadOnlyMap().clear(); + + // Refresh any actions that may become enabled or disabled. + // + setSelection(getSelection()); + } + + if (!removedResources.isEmpty()) { + if (handleDirtyConflict()) { + getSite().getPage().closeEditor(ElementTypesConfigurationsEditor.this, false); + } + else { + removedResources.clear(); + changedResources.clear(); + savedResources.clear(); + } + } + else if (!changedResources.isEmpty()) { + changedResources.removeAll(savedResources); + handleChangedResources(); + changedResources.clear(); + savedResources.clear(); + } + } + + /** + * Handles what to do with changed resources on activation. + * + * + * @generated + */ + protected void handleChangedResources() { + if (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict())) { + if (isDirty()) { + changedResources.addAll(editingDomain.getResourceSet().getResources()); + } + editingDomain.getCommandStack().flush(); + + updateProblemIndication = false; + for (Resource resource : changedResources) { + if (resource.isLoaded()) { + resource.unload(); + try { + resource.load(Collections.EMPTY_MAP); + } + catch (IOException exception) { + if (!resourceToDiagnosticMap.containsKey(resource)) { + resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); + } + } + } + } + + if (AdapterFactoryEditingDomain.isStale(editorSelection)) { + setSelection(StructuredSelection.EMPTY); + } + + updateProblemIndication = true; + updateProblemIndication(); + } + } + + /** + * Updates the problems indication with the information described in the specified diagnostic. + * + * + * @generated + */ + protected void updateProblemIndication() { + if (updateProblemIndication) { + BasicDiagnostic diagnostic = + new BasicDiagnostic + (Diagnostic.OK, + "org.eclipse.papyrus.infra.types.editor", + 0, + null, + new Object [] { editingDomain.getResourceSet() }); + for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) { + if (childDiagnostic.getSeverity() != Diagnostic.OK) { + diagnostic.add(childDiagnostic); + } + } + + int lastEditorPage = getPageCount() - 1; + if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) { + ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic); + if (diagnostic.getSeverity() != Diagnostic.OK) { + setActivePage(lastEditorPage); + } + } + else if (diagnostic.getSeverity() != Diagnostic.OK) { + ProblemEditorPart problemEditorPart = new ProblemEditorPart(); + problemEditorPart.setDiagnostic(diagnostic); + problemEditorPart.setMarkerHelper(markerHelper); + try { + addPage(++lastEditorPage, problemEditorPart, getEditorInput()); + setPageText(lastEditorPage, problemEditorPart.getPartName()); + setActivePage(lastEditorPage); + showTabs(); + } + catch (PartInitException exception) { + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + } + } + + if (markerHelper.hasMarkers(editingDomain.getResourceSet())) { + markerHelper.deleteMarkers(editingDomain.getResourceSet()); + if (diagnostic.getSeverity() != Diagnostic.OK) { + try { + markerHelper.createMarkers(diagnostic); + } + catch (CoreException exception) { + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + } + } + } + } + } + + /** + * Shows a dialog that asks if conflicting changes should be discarded. + * + * + * @generated + */ + protected boolean handleDirtyConflict() { + return + MessageDialog.openQuestion + (getSite().getShell(), + getString("_UI_FileConflict_label"), + getString("_WARN_FileConflict")); + } + + /** + * This creates a model editor. + * + * + * @generated + */ + public ElementTypesConfigurationsEditor() { + super(); + initializeEditingDomain(); + } + + /** + * This sets up the editing domain for the model editor. + * + * + * @generated + */ + protected void initializeEditingDomain() { + // Create an adapter factory that yields item providers. + // + adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); + + adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); + adapterFactory.addAdapterFactory(new ElementTypesConfigurationsItemProviderAdapterFactory()); + adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); + + // Create the command stack that will notify this editor as commands are executed. + // + BasicCommandStack commandStack = new BasicCommandStack(); + + // Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus. + // + commandStack.addCommandStackListener + (new CommandStackListener() { + public void commandStackChanged(final EventObject event) { + getContainer().getDisplay().asyncExec + (new Runnable() { + 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()); + } + for (Iterator i = propertySheetPages.iterator(); i.hasNext(); ) { + PropertySheetPage propertySheetPage = i.next(); + if (propertySheetPage.getControl().isDisposed()) { + i.remove(); + } + else { + propertySheetPage.refresh(); + } + } + } + }); + } + }); + + // Create the editing domain with a special command stack. + // + editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap()); + } + + /** + * This is here for the listener to be able to call it. + * + * + * @generated + */ + @Override + protected void firePropertyChange(int action) { + super.firePropertyChange(action); + } + + /** + * This sets the selection into whichever viewer is active. + * + * + * @generated + */ + public void setSelectionToViewer(Collection collection) { + final Collection theSelection = collection; + // Make sure it's okay. + // + if (theSelection != null && !theSelection.isEmpty()) { + Runnable runnable = + new Runnable() { + public void run() { + // Try to select the items in the current content viewer of the editor. + // + if (currentViewer != null) { + currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true); + } + } + }; + getSite().getShell().getDisplay().asyncExec(runnable); + } + } + + /** + * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. + * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} + * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}. + * + * + * @generated + */ + public EditingDomain getEditingDomain() { + return editingDomain; + } + + /** + * + * + * @generated + */ + public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider { + /** + * + * + * @generated + */ + public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * + * + * @generated + */ + @Override + public Object [] getElements(Object object) { + Object parent = super.getParent(object); + return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); + } + + /** + * + * + * @generated + */ + @Override + public Object [] getChildren(Object object) { + Object parent = super.getParent(object); + return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + Object parent = super.getParent(object); + return parent != null; + } + + /** + * + * + * @generated + */ + @Override + public Object getParent(Object object) { + return null; + } + } + + /** + * + * + * @generated + */ + public void setCurrentViewerPane(ViewerPane viewerPane) { + if (currentViewerPane != viewerPane) { + if (currentViewerPane != null) { + currentViewerPane.showFocus(false); + } + currentViewerPane = viewerPane; + } + setCurrentViewer(currentViewerPane.getViewer()); + } + + /** + * This makes sure that one content viewer, either for the current page or the outline view, if it has focus, + * is the current one. + * + * + * @generated + */ + public void setCurrentViewer(Viewer viewer) { + // If it is changing... + // + if (currentViewer != viewer) { + if (selectionChangedListener == null) { + // Create the listener on demand. + // + selectionChangedListener = + new ISelectionChangedListener() { + // This just notifies those things that are affected by the section. + // + public void selectionChanged(SelectionChangedEvent selectionChangedEvent) { + setSelection(selectionChangedEvent.getSelection()); + } + }; + } + + // Stop listening to the old one. + // + if (currentViewer != null) { + currentViewer.removeSelectionChangedListener(selectionChangedListener); + } + + // Start listening to the new one. + // + if (viewer != null) { + viewer.addSelectionChangedListener(selectionChangedListener); + } + + // Remember it. + // + currentViewer = viewer; + + // Set the editors selection based on the current viewer's selection. + // + setSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection()); + } + } + + /** + * This returns the viewer as required by the {@link IViewerProvider} interface. + * + * + * @generated + */ + public Viewer getViewer() { + return currentViewer; + } + + /** + * This creates a context menu for the viewer and adds a listener as well registering the menu for extension. + * + * + * @generated + */ + protected void createContextMenuFor(StructuredViewer viewer) { + MenuManager contextMenu = new MenuManager("#PopUp"); + contextMenu.add(new Separator("additions")); + contextMenu.setRemoveAllWhenShown(true); + contextMenu.addMenuListener(this); + Menu menu= contextMenu.createContextMenu(viewer.getControl()); + viewer.getControl().setMenu(menu); + getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); + + int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; + Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance(), LocalSelectionTransfer.getTransfer(), FileTransfer.getInstance() }; + viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); + viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer)); + } + + /** + * This is the method called to load a resource into the editing domain's resource set based on the editor's input. + * + * + * @generated + */ + public void createModel() { + URI resourceURI = EditUIUtil.getURI(getEditorInput(), editingDomain.getResourceSet().getURIConverter()); + Exception exception = null; + Resource resource = null; + try { + // Load the resource through the editing domain. + // + resource = editingDomain.getResourceSet().getResource(resourceURI, true); + } + catch (Exception e) { + exception = e; + resource = editingDomain.getResourceSet().getResource(resourceURI, false); + } + + Diagnostic diagnostic = analyzeResourceProblems(resource, exception); + if (diagnostic.getSeverity() != Diagnostic.OK) { + resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); + } + editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter); + } + + /** + * Returns a diagnostic describing the errors and warnings listed in the resource + * and the specified exception (if any). + * + * + * @generated + */ + public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) { + boolean hasErrors = !resource.getErrors().isEmpty(); + if (hasErrors || !resource.getWarnings().isEmpty()) { + BasicDiagnostic basicDiagnostic = + new BasicDiagnostic + (hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING, + "org.eclipse.papyrus.infra.types.editor", + 0, + getString("_UI_CreateModelError_message", resource.getURI()), + new Object [] { exception == null ? (Object)resource : exception }); + basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); + return basicDiagnostic; + } + else if (exception != null) { + return + new BasicDiagnostic + (Diagnostic.ERROR, + "org.eclipse.papyrus.infra.types.editor", + 0, + getString("_UI_CreateModelError_message", resource.getURI()), + new Object[] { exception }); + } + else { + return Diagnostic.OK_INSTANCE; + } + } + + /** + * This is the method used by the framework to install your own controls. + * + * + * @generated + */ + @Override + public void createPages() { + // Creates the model from the editor input + // + createModel(); + + // 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. + // + { + ViewerPane viewerPane = + new ViewerPane(getSite().getPage(), ElementTypesConfigurationsEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + Tree tree = new Tree(composite, SWT.MULTI); + TreeViewer newTreeViewer = new TreeViewer(tree); + return newTreeViewer; + } + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + + selectionViewer = (TreeViewer)viewerPane.getViewer(); + selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + + selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + selectionViewer.setInput(editingDomain.getResourceSet()); + selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); + viewerPane.setTitle(editingDomain.getResourceSet()); + + new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory); + + createContextMenuFor(selectionViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_SelectionPage_label")); + } + + // Create a page for the parent tree view. + // + { + ViewerPane viewerPane = + new ViewerPane(getSite().getPage(), ElementTypesConfigurationsEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + Tree tree = new Tree(composite, SWT.MULTI); + TreeViewer newTreeViewer = new TreeViewer(tree); + return newTreeViewer; + } + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + + parentViewer = (TreeViewer)viewerPane.getViewer(); + parentViewer.setAutoExpandLevel(30); + parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory)); + parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(parentViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_ParentPage_label")); + } + + // This is the page for the list viewer + // + { + ViewerPane viewerPane = + new ViewerPane(getSite().getPage(), ElementTypesConfigurationsEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new ListViewer(composite); + } + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + listViewer = (ListViewer)viewerPane.getViewer(); + listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(listViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_ListPage_label")); + } + + // This is the page for the tree viewer + // + { + ViewerPane viewerPane = + new ViewerPane(getSite().getPage(), ElementTypesConfigurationsEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new TreeViewer(composite); + } + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + treeViewer = (TreeViewer)viewerPane.getViewer(); + treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + new AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory); + + createContextMenuFor(treeViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_TreePage_label")); + } + + // This is the page for the table viewer. + // + { + ViewerPane viewerPane = + new ViewerPane(getSite().getPage(), ElementTypesConfigurationsEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new TableViewer(composite); + } + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + tableViewer = (TableViewer)viewerPane.getViewer(); + + Table table = tableViewer.getTable(); + TableLayout layout = new TableLayout(); + table.setLayout(layout); + table.setHeaderVisible(true); + table.setLinesVisible(true); + + TableColumn objectColumn = new TableColumn(table, SWT.NONE); + layout.addColumnData(new ColumnWeightData(3, 100, true)); + objectColumn.setText(getString("_UI_ObjectColumn_label")); + objectColumn.setResizable(true); + + TableColumn selfColumn = new TableColumn(table, SWT.NONE); + layout.addColumnData(new ColumnWeightData(2, 100, true)); + selfColumn.setText(getString("_UI_SelfColumn_label")); + selfColumn.setResizable(true); + + tableViewer.setColumnProperties(new String [] {"a", "b"}); + tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(tableViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_TablePage_label")); + } + + // This is the page for the table tree viewer. + // + { + ViewerPane viewerPane = + new ViewerPane(getSite().getPage(), ElementTypesConfigurationsEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new TreeViewer(composite); + } + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + + treeViewerWithColumns = (TreeViewer)viewerPane.getViewer(); + + Tree tree = treeViewerWithColumns.getTree(); + tree.setLayoutData(new FillLayout()); + tree.setHeaderVisible(true); + tree.setLinesVisible(true); + + TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE); + objectColumn.setText(getString("_UI_ObjectColumn_label")); + objectColumn.setResizable(true); + objectColumn.setWidth(250); + + TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE); + selfColumn.setText(getString("_UI_SelfColumn_label")); + selfColumn.setResizable(true); + selfColumn.setWidth(200); + + treeViewerWithColumns.setColumnProperties(new String [] {"a", "b"}); + treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(treeViewerWithColumns); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label")); + } + + getSite().getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + setActivePage(0); + } + }); + } + + // 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; + } + } + }); + + getSite().getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + updateProblemIndication(); + } + }); + } + + /** + * If there is just one page in the multi-page editor part, + * this hides the single tab at the bottom. + * + * + * @generated + */ + protected void hideTabs() { + if (getPageCount() <= 1) { + setPageText(0, ""); + if (getContainer() instanceof CTabFolder) { + ((CTabFolder)getContainer()).setTabHeight(1); + Point point = getContainer().getSize(); + getContainer().setSize(point.x, point.y + 6); + } + } + } + + /** + * If there is more than one page in the multi-page editor part, + * this shows the tabs at the bottom. + * + * + * @generated + */ + protected void showTabs() { + if (getPageCount() > 1) { + setPageText(0, getString("_UI_SelectionPage_label")); + if (getContainer() instanceof CTabFolder) { + ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT); + Point point = getContainer().getSize(); + getContainer().setSize(point.x, point.y - 6); + } + } + } + + /** + * This is used to track the active viewer. + * + * + * @generated + */ + @Override + protected void pageChange(int pageIndex) { + super.pageChange(pageIndex); + + if (contentOutlinePage != null) { + handleContentOutlineSelection(contentOutlinePage.getSelection()); + } + } + + /** + * This is how the framework determines which interfaces we implement. + * + * + * @generated + */ + @SuppressWarnings("rawtypes") + @Override + public Object getAdapter(Class key) { + if (key.equals(IContentOutlinePage.class)) { + return showOutlineView() ? getContentOutlinePage() : null; + } + else if (key.equals(IPropertySheetPage.class)) { + return getPropertySheetPage(); + } + else if (key.equals(IGotoMarker.class)) { + return this; + } + else { + return super.getAdapter(key); + } + } + + /** + * This accesses a cached version of the content outliner. + * + * + * @generated + */ + public IContentOutlinePage getContentOutlinePage() { + if (contentOutlinePage == null) { + // The content outline is just a tree. + // + class MyContentOutlinePage extends ContentOutlinePage { + @Override + public void createControl(Composite parent) { + super.createControl(parent); + contentOutlineViewer = getTreeViewer(); + contentOutlineViewer.addSelectionChangedListener(this); + + // Set up the tree viewer. + // + contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + contentOutlineViewer.setInput(editingDomain.getResourceSet()); + + // Make sure our popups work. + // + createContextMenuFor(contentOutlineViewer); + + if (!editingDomain.getResourceSet().getResources().isEmpty()) { + // Select the root object in the view. + // + contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); + } + } + + @Override + public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) { + super.makeContributions(menuManager, toolBarManager, statusLineManager); + contentOutlineStatusLineManager = statusLineManager; + } + + @Override + public void setActionBars(IActionBars actionBars) { + super.setActionBars(actionBars); + getActionBarContributor().shareGlobalActions(this, actionBars); + } + } + + contentOutlinePage = new MyContentOutlinePage(); + + // Listen to selection so that we can handle it is a special way. + // + contentOutlinePage.addSelectionChangedListener + (new ISelectionChangedListener() { + // This ensures that we handle selections correctly. + // + public void selectionChanged(SelectionChangedEvent event) { + handleContentOutlineSelection(event.getSelection()); + } + }); + } + + return contentOutlinePage; + } + + /** + * This accesses a cached version of the property sheet. + * + * + * @generated + */ + public IPropertySheetPage getPropertySheetPage() { + PropertySheetPage propertySheetPage = + new ExtendedPropertySheetPage(editingDomain) { + @Override + public void setSelectionToViewer(List selection) { + ElementTypesConfigurationsEditor.this.setSelectionToViewer(selection); + ElementTypesConfigurationsEditor.this.setFocus(); + } + + @Override + public void setActionBars(IActionBars actionBars) { + super.setActionBars(actionBars); + getActionBarContributor().shareGlobalActions(this, actionBars); + } + }; + propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory)); + propertySheetPages.add(propertySheetPage); + + return propertySheetPage; + } + + /** + * This deals with how we want selection in the outliner to affect the other views. + * + * + * @generated + */ + public void handleContentOutlineSelection(ISelection selection) { + if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { + Iterator selectedElements = ((IStructuredSelection)selection).iterator(); + if (selectedElements.hasNext()) { + // Get the first selected element. + // + Object selectedElement = selectedElements.next(); + + // If it's the selection viewer, then we want it to select the same selection as this selection. + // + if (currentViewerPane.getViewer() == selectionViewer) { + ArrayList selectionList = new ArrayList(); + selectionList.add(selectedElement); + while (selectedElements.hasNext()) { + selectionList.add(selectedElements.next()); + } + + // Set the selection to the widget. + // + selectionViewer.setSelection(new StructuredSelection(selectionList)); + } + else { + // Set the input to the widget. + // + if (currentViewerPane.getViewer().getInput() != selectedElement) { + currentViewerPane.getViewer().setInput(selectedElement); + currentViewerPane.setTitle(selectedElement); + } + } + } + } + } + + /** + * This is for implementing {@link IEditorPart} and simply tests the command stack. + * + * + * @generated + */ + @Override + public boolean isDirty() { + return ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded(); + } + + /** + * This is for implementing {@link IEditorPart} and simply saves the model file. + * + * + * @generated + */ + @Override + public void doSave(IProgressMonitor progressMonitor) { + // Save only resources that have actually changed. + // + final Map saveOptions = new HashMap(); + saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); + saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); + + // Do the work within an operation because this is a long running activity that modifies the workbench. + // + WorkspaceModifyOperation operation = + new WorkspaceModifyOperation() { + // This is the method that gets invoked when the operation runs. + // + @Override + public void execute(IProgressMonitor monitor) { + // Save the resources to the file system. + // + boolean first = true; + for (Resource resource : editingDomain.getResourceSet().getResources()) { + if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) { + try { + long timeStamp = resource.getTimeStamp(); + resource.save(saveOptions); + if (resource.getTimeStamp() != timeStamp) { + savedResources.add(resource); + } + } + catch (Exception exception) { + resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); + } + first = false; + } + } + } + }; + + updateProblemIndication = false; + try { + // This runs the options, and shows progress. + // + new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation); + + // Refresh the necessary state. + // + ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone(); + firePropertyChange(IEditorPart.PROP_DIRTY); + } + catch (Exception exception) { + // Something went wrong that shouldn't. + // + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + } + updateProblemIndication = true; + updateProblemIndication(); + } + + /** + * This returns whether something has been persisted to the URI of the specified resource. + * The implementation uses the URI converter from the editor's resource set to try to open an input stream. + * + * + * @generated + */ + protected boolean isPersisted(Resource resource) { + boolean result = false; + try { + InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); + if (stream != null) { + result = true; + stream.close(); + } + } + catch (IOException e) { + // Ignore + } + return result; + } + + /** + * This always returns true because it is not currently supported. + * + * + * @generated + */ + @Override + public boolean isSaveAsAllowed() { + return true; + } + + /** + * This also changes the editor's input. + * + * + * @generated + */ + @Override + public void doSaveAs() { + SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell()); + saveAsDialog.open(); + IPath path = saveAsDialog.getResult(); + if (path != null) { + IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); + if (file != null) { + doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file)); + } + } + } + + /** + * + * + * @generated + */ + protected void doSaveAs(URI uri, IEditorInput editorInput) { + (editingDomain.getResourceSet().getResources().get(0)).setURI(uri); + setInputWithNotify(editorInput); + setPartName(editorInput.getName()); + IProgressMonitor progressMonitor = + getActionBars().getStatusLineManager() != null ? + getActionBars().getStatusLineManager().getProgressMonitor() : + new NullProgressMonitor(); + doSave(progressMonitor); + } + + /** + * + * + * @generated + */ + public void gotoMarker(IMarker marker) { + List targetObjects = markerHelper.getTargetObjects(editingDomain, marker); + if (!targetObjects.isEmpty()) { + setSelectionToViewer(targetObjects); + } + } + + /** + * This is called during startup. + * + * + * @generated + */ + @Override + public void init(IEditorSite site, IEditorInput editorInput) { + setSite(site); + setInputWithNotify(editorInput); + setPartName(editorInput.getName()); + site.setSelectionProvider(this); + site.getPage().addPartListener(partListener); + ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE); + } + + /** + * + * + * @generated + */ + @Override + public void setFocus() { + if (currentViewerPane != null) { + currentViewerPane.setFocus(); + } + else { + getControl(getActivePage()).setFocus(); + } + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. + * + * + * @generated + */ + public void addSelectionChangedListener(ISelectionChangedListener listener) { + selectionChangedListeners.add(listener); + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. + * + * + * @generated + */ + public void removeSelectionChangedListener(ISelectionChangedListener listener) { + selectionChangedListeners.remove(listener); + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection. + * + * + * @generated + */ + public ISelection getSelection() { + return editorSelection; + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection. + * Calling this result will notify the listeners. + * + * + * @generated + */ + public void setSelection(ISelection selection) { + editorSelection = selection; + + for (ISelectionChangedListener listener : selectionChangedListeners) { + listener.selectionChanged(new SelectionChangedEvent(this, selection)); + } + setStatusLineManager(selection); + } + + /** + * + * + * @generated + */ + public void setStatusLineManager(ISelection selection) { + IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ? + contentOutlineStatusLineManager : getActionBars().getStatusLineManager(); + + if (statusLineManager != null) { + if (selection instanceof IStructuredSelection) { + Collection collection = ((IStructuredSelection)selection).toList(); + switch (collection.size()) { + case 0: { + statusLineManager.setMessage(getString("_UI_NoObjectSelected")); + break; + } + case 1: { + String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next()); + statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); + break; + } + default: { + statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size()))); + break; + } + } + } + else { + statusLineManager.setMessage(""); + } + } + } + + /** + * This looks up a string in the plugin's plugin.properties file. + * + * + * @generated + */ + private static String getString(String key) { + return TypesConfigurationsEditorPlugin.INSTANCE.getString(key); + } + + /** + * This looks up a string in plugin.properties, making a substitution. + * + * + * @generated + */ + private static String getString(String key, Object s1) { + return TypesConfigurationsEditorPlugin.INSTANCE.getString(key, new Object [] { s1 }); + } + + /** + * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu. + * + * + * @generated + */ + public void menuAboutToShow(IMenuManager menuManager) { + ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager); + } + + /** + * + * + * @generated + */ + public EditingDomainActionBarContributor getActionBarContributor() { + return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor(); + } + + /** + * + * + * @generated + */ + public IActionBars getActionBars() { + return getActionBarContributor().getActionBars(); + } + + /** + * + * + * @generated + */ + public AdapterFactory getAdapterFactory() { + return adapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public void dispose() { + updateProblemIndication = false; + + ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener); + + getSite().getPage().removePartListener(partListener); + + adapterFactory.dispose(); + + if (getActionBarContributor().getActiveEditor() == this) { + getActionBarContributor().setActiveEditor(null); + } + + for (PropertySheetPage propertySheetPage : propertySheetPages) { + propertySheetPage.dispose(); + } + + if (contentOutlinePage != null) { + contentOutlinePage.dispose(); + } + + super.dispose(); + } + + /** + * Returns whether the outline view should be presented to the user. + * + * + * @generated + */ + protected boolean showOutlineView() { + return true; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsModelWizard.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsModelWizard.java new file mode 100644 index 00000000000..c519d7836c1 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/ElementTypesConfigurationsModelWizard.java @@ -0,0 +1,640 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.presentation; + + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.MissingResourceException; +import java.util.StringTokenizer; + +import org.eclipse.emf.common.CommonPlugin; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; + +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.ecore.EObject; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IFolder; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.ResourcesPlugin; + +import org.eclipse.core.runtime.IProgressMonitor; + +import org.eclipse.jface.dialogs.MessageDialog; + +import org.eclipse.jface.viewers.IStructuredSelection; + +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.jface.wizard.WizardPage; + +import org.eclipse.swt.SWT; + +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.ModifyEvent; + +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; + +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; + +import org.eclipse.ui.INewWizard; +import org.eclipse.ui.IWorkbench; + +import org.eclipse.ui.actions.WorkspaceModifyOperation; + +import org.eclipse.ui.dialogs.WizardNewFileCreationPage; + +import org.eclipse.ui.part.FileEditorInput; +import org.eclipse.ui.part.ISetSelectionTarget; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + + +import org.eclipse.core.runtime.Path; +import org.eclipse.core.runtime.Platform; + +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.StructuredSelection; + +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PartInitException; + + +/** + * This is a simple wizard for creating a new model file. + * + * + * @generated + */ +public class ElementTypesConfigurationsModelWizard extends Wizard implements INewWizard { + /** + * The supported extensions for created files. + * + * + * @generated + */ + public static final List FILE_EXTENSIONS = + Collections.unmodifiableList(Arrays.asList(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsEditorFilenameExtensions").split("\\s*,\\s*"))); + + /** + * A formatted list of supported file extensions, suitable for display. + * + * + * @generated + */ + public static final String FORMATTED_FILE_EXTENSIONS = + TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", "); + + /** + * This caches an instance of the model package. + * + * + * @generated + */ + protected ElementTypesConfigurationsPackage elementTypesConfigurationsPackage = ElementTypesConfigurationsPackage.eINSTANCE; + + /** + * This caches an instance of the model factory. + * + * + * @generated + */ + protected ElementTypesConfigurationsFactory elementTypesConfigurationsFactory = elementTypesConfigurationsPackage.getElementTypesConfigurationsFactory(); + + /** + * This is the file creation page. + * + * + * @generated + */ + protected ElementTypesConfigurationsModelWizardNewFileCreationPage newFileCreationPage; + + /** + * This is the initial object creation page. + * + * + * @generated + */ + protected ElementTypesConfigurationsModelWizardInitialObjectCreationPage initialObjectCreationPage; + + /** + * Remember the selection during initialization for populating the default container. + * + * + * @generated + */ + protected IStructuredSelection selection; + + /** + * Remember the workbench during initialization. + * + * + * @generated + */ + protected IWorkbench workbench; + + /** + * Caches the names of the types that can be created as the root object. + * + * + * @generated + */ + protected List initialObjectNames; + + /** + * This just records the information. + * + * + * @generated + */ + public void init(IWorkbench workbench, IStructuredSelection selection) { + this.workbench = workbench; + this.selection = selection; + setWindowTitle(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); + setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(TypesConfigurationsEditorPlugin.INSTANCE.getImage("full/wizban/NewElementTypesConfigurations"))); + } + + /** + * Returns the names of the types that can be created as the root object. + * + * + * @generated + */ + protected Collection getInitialObjectNames() { + if (initialObjectNames == null) { + initialObjectNames = new ArrayList(); + for (EClassifier eClassifier : elementTypesConfigurationsPackage.getEClassifiers()) { + if (eClassifier instanceof EClass) { + EClass eClass = (EClass)eClassifier; + if (!eClass.isAbstract()) { + initialObjectNames.add(eClass.getName()); + } + } + } + Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator()); + } + return initialObjectNames; + } + + /** + * Create a new model. + * + * + * @generated + */ + protected EObject createInitialModel() { + EClass eClass = (EClass)elementTypesConfigurationsPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName()); + EObject rootObject = elementTypesConfigurationsFactory.create(eClass); + return rootObject; + } + + /** + * Do the work after everything is specified. + * + * + * @generated + */ + @Override + public boolean performFinish() { + try { + // Remember the file. + // + final IFile modelFile = getModelFile(); + + // Do the work within an operation. + // + WorkspaceModifyOperation operation = + new WorkspaceModifyOperation() { + @Override + protected void execute(IProgressMonitor progressMonitor) { + try { + // Create a resource set + // + ResourceSet resourceSet = new ResourceSetImpl(); + + // Get the URI of the model file. + // + URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true); + + // Create a resource for this file. + // + Resource resource = resourceSet.createResource(fileURI, ElementTypesConfigurationsPackage.eCONTENT_TYPE); + + // Add the initial model object to the contents. + // + EObject rootObject = createInitialModel(); + if (rootObject != null) { + resource.getContents().add(rootObject); + } + + // Save the contents of the resource to the file system. + // + Map options = new HashMap(); + options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding()); + resource.save(options); + } + catch (Exception exception) { + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + } + finally { + progressMonitor.done(); + } + } + }; + + getContainer().run(false, false, operation); + + // Select the new file resource in the current view. + // + IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow(); + IWorkbenchPage page = workbenchWindow.getActivePage(); + final IWorkbenchPart activePart = page.getActivePart(); + if (activePart instanceof ISetSelectionTarget) { + final ISelection targetSelection = new StructuredSelection(modelFile); + getShell().getDisplay().asyncExec + (new Runnable() { + public void run() { + ((ISetSelectionTarget)activePart).selectReveal(targetSelection); + } + }); + } + + // Open an editor on the new file. + // + try { + page.openEditor + (new FileEditorInput(modelFile), + workbench.getEditorRegistry().getDefaultEditor + (modelFile.getFullPath().toString(), + Platform.getContentTypeManager().getContentType(ElementTypesConfigurationsPackage.eCONTENT_TYPE)).getId()); + } + catch (PartInitException exception) { + MessageDialog.openError(workbenchWindow.getShell(), TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage()); + return false; + } + + return true; + } + catch (Exception exception) { + TypesConfigurationsEditorPlugin.INSTANCE.log(exception); + return false; + } + } + + /** + * This is the one page of the wizard. + * + * + * @generated + */ + public class ElementTypesConfigurationsModelWizardNewFileCreationPage extends WizardNewFileCreationPage { + /** + * Pass in the selection. + * + * + * @generated + */ + public ElementTypesConfigurationsModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) { + super(pageId, selection); + } + + /** + * The framework calls this to see if the file is correct. + * + * + * @generated + */ + @Override + protected boolean validatePage() { + if (super.validatePage()) { + String extension = new Path(getFileName()).getFileExtension(); + if (extension == null || !FILE_EXTENSIONS.contains(extension)) { + String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension"; + setErrorMessage(TypesConfigurationsEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS })); + return false; + } + return true; + } + return false; + } + + /** + * + * + * @generated + */ + public IFile getModelFile() { + return ResourcesPlugin.getWorkspace().getRoot().getFile(getContainerFullPath().append(getFileName())); + } + } + + /** + * This is the page where the type of object to create is selected. + * + * + * @generated + */ + public class ElementTypesConfigurationsModelWizardInitialObjectCreationPage extends WizardPage { + /** + * + * + * @generated + */ + protected Combo initialObjectField; + + /** + * @generated + * + * + */ + protected List encodings; + + /** + * + * + * @generated + */ + protected Combo encodingField; + + /** + * Pass in the selection. + * + * + * @generated + */ + public ElementTypesConfigurationsModelWizardInitialObjectCreationPage(String pageId) { + super(pageId); + } + + /** + * + * + * @generated + */ + public void createControl(Composite parent) { + Composite composite = new Composite(parent, SWT.NONE); { + GridLayout layout = new GridLayout(); + layout.numColumns = 1; + layout.verticalSpacing = 12; + composite.setLayout(layout); + + GridData data = new GridData(); + data.verticalAlignment = GridData.FILL; + data.grabExcessVerticalSpace = true; + data.horizontalAlignment = GridData.FILL; + composite.setLayoutData(data); + } + + Label containerLabel = new Label(composite, SWT.LEFT); + { + containerLabel.setText(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ModelObject")); + + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + containerLabel.setLayoutData(data); + } + + initialObjectField = new Combo(composite, SWT.BORDER); + { + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + data.grabExcessHorizontalSpace = true; + initialObjectField.setLayoutData(data); + } + + for (String objectName : getInitialObjectNames()) { + initialObjectField.add(getLabel(objectName)); + } + + if (initialObjectField.getItemCount() == 1) { + initialObjectField.select(0); + } + initialObjectField.addModifyListener(validator); + + Label encodingLabel = new Label(composite, SWT.LEFT); + { + encodingLabel.setText(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); + + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + encodingLabel.setLayoutData(data); + } + encodingField = new Combo(composite, SWT.BORDER); + { + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + data.grabExcessHorizontalSpace = true; + encodingField.setLayoutData(data); + } + + for (String encoding : getEncodings()) { + encodingField.add(encoding); + } + + encodingField.select(0); + encodingField.addModifyListener(validator); + + setPageComplete(validatePage()); + setControl(composite); + } + + /** + * + * + * @generated + */ + protected ModifyListener validator = + new ModifyListener() { + public void modifyText(ModifyEvent e) { + setPageComplete(validatePage()); + } + }; + + /** + * + * + * @generated + */ + protected boolean validatePage() { + return getInitialObjectName() != null && getEncodings().contains(encodingField.getText()); + } + + /** + * + * + * @generated + */ + @Override + public void setVisible(boolean visible) { + super.setVisible(visible); + if (visible) { + if (initialObjectField.getItemCount() == 1) { + initialObjectField.clearSelection(); + encodingField.setFocus(); + } + else { + encodingField.clearSelection(); + initialObjectField.setFocus(); + } + } + } + + /** + * + * + * @generated + */ + public String getInitialObjectName() { + String label = initialObjectField.getText(); + + for (String name : getInitialObjectNames()) { + if (getLabel(name).equals(label)) { + return name; + } + } + return null; + } + + /** + * + * + * @generated + */ + public String getEncoding() { + return encodingField.getText(); + } + + /** + * Returns the label for the specified type name. + * + * + * @generated + */ + protected String getLabel(String typeName) { + try { + return TypesConfigurationsEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); + } + catch(MissingResourceException mre) { + TypesConfigurationsEditorPlugin.INSTANCE.log(mre); + } + return typeName; + } + + /** + * + * + * @generated + */ + protected Collection getEncodings() { + if (encodings == null) { + encodings = new ArrayList(); + for (StringTokenizer stringTokenizer = new StringTokenizer(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) { + encodings.add(stringTokenizer.nextToken()); + } + } + return encodings; + } + } + + /** + * The framework calls this to create the contents of the wizard. + * + * + * @generated + */ + @Override + public void addPages() { + // Create a page, set the title, and the initial model file name. + // + newFileCreationPage = new ElementTypesConfigurationsModelWizardNewFileCreationPage("Whatever", selection); + newFileCreationPage.setTitle(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsModelWizard_label")); + newFileCreationPage.setDescription(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsModelWizard_description")); + newFileCreationPage.setFileName(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsEditorFilenameDefaultBase") + "." + FILE_EXTENSIONS.get(0)); + addPage(newFileCreationPage); + + // Try and get the resource selection to determine a current directory for the file dialog. + // + if (selection != null && !selection.isEmpty()) { + // Get the resource... + // + Object selectedElement = selection.iterator().next(); + if (selectedElement instanceof IResource) { + // Get the resource parent, if its a file. + // + IResource selectedResource = (IResource)selectedElement; + if (selectedResource.getType() == IResource.FILE) { + selectedResource = selectedResource.getParent(); + } + + // This gives us a directory... + // + if (selectedResource instanceof IFolder || selectedResource instanceof IProject) { + // Set this for the container. + // + newFileCreationPage.setContainerFullPath(selectedResource.getFullPath()); + + // Make up a unique new name here. + // + String defaultModelBaseFilename = TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsEditorFilenameDefaultBase"); + String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); + String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; + for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) { + modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension; + } + newFileCreationPage.setFileName(modelFilename); + } + } + } + initialObjectCreationPage = new ElementTypesConfigurationsModelWizardInitialObjectCreationPage("Whatever2"); + initialObjectCreationPage.setTitle(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_ElementTypesConfigurationsModelWizard_label")); + initialObjectCreationPage.setDescription(TypesConfigurationsEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); + addPage(initialObjectCreationPage); + } + + /** + * Get the file from the page. + * + * + * @generated + */ + public IFile getModelFile() { + return newFileCreationPage.getModelFile(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/TypesConfigurationsEditorPlugin.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/TypesConfigurationsEditorPlugin.java new file mode 100644 index 00000000000..32080e31c8d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.editor/src-gen/org/eclipse/papyrus/infra/types/presentation/TypesConfigurationsEditorPlugin.java @@ -0,0 +1,101 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.presentation; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.ui.EclipseUIPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the ElementTypesConfigurations editor plugin. + * + * + * @generated + */ +public final class TypesConfigurationsEditorPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final TypesConfigurationsEditorPlugin INSTANCE = new TypesConfigurationsEditorPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public TypesConfigurationsEditorPlugin() { + super + (new ResourceLocator [] { + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipseUIPlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.classpath b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.classpath new file mode 100644 index 00000000000..6cc5414644b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.project b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.project new file mode 100644 index 00000000000..98406c46699 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.rulebased + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..9ca8e68231b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/META-INF/MANIFEST.MF b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..792e20ed053 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/META-INF/MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", + org.eclipse.emf.ecore;bundle-version="2.7.0";visibility:=reexport, + org.eclipse.emf.ecore.xmi;bundle-version="2.6.0";visibility:=reexport, + org.eclipse.papyrus.infra.types;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport, + org.eclipse.emf.ecore.edit;visibility:=reexport, + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.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.types.core;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.papyrus.infra.types.edit;bundle-version="1.2.0";visibility:=reexport +Export-Package: org.eclipse.papyrus.infra.types.rulebased, + org.eclipse.papyrus.infra.types.rulebased.core, + org.eclipse.papyrus.infra.types.rulebased.impl, + org.eclipse.papyrus.infra.types.rulebased.provider, + org.eclipse.papyrus.infra.types.rulebased.util +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.infra.types.rulebased.provider.RuleBasedEditPlugin$Implementation +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.rulebased;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/about.html b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/build.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/build.properties new file mode 100644 index 00000000000..32af9fa1c65 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/build.properties @@ -0,0 +1,26 @@ +# Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation +# Christian W. Damus - bug 451230 +# + +output..=bin/ +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + schema/,\ + icons/,\ + about.html +jars.compile.order=. +source.. = src-gen/,\ + src/ +bin..=bin/ +src.includes = about.html diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..1295f5216ee Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_AndInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif new file mode 100644 index 00000000000..96a3cb79d20 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..889f3af917f Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..6f6c92e3feb Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_NotInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..4fa1d3e6761 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_OrInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_AndRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_AndRuleConfiguration.gif new file mode 100644 index 00000000000..628a5cdd1dc Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_AndRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_NotRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_NotRuleConfiguration.gif new file mode 100644 index 00000000000..d7c5af79864 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_NotRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_OrRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_OrRuleConfiguration.gif new file mode 100644 index 00000000000..a17c76f8558 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_OrRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif new file mode 100644 index 00000000000..052b213d0c0 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantContainerTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif new file mode 100644 index 00000000000..5777ba5f48d Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantSemanticTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif new file mode 100644 index 00000000000..1e6c63ceb46 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_InvariantTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuleBasedTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuleBasedTypeConfiguration.gif new file mode 100644 index 00000000000..c1fbe127e0f Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuleBasedTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuledTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuledTypeConfiguration.gif new file mode 100644 index 00000000000..92e5c4972a6 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateElementTypeSetConfiguration_elementTypeConfigurations_RuledTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif new file mode 100644 index 00000000000..86ec735a156 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerConfiguration_permissions_HierarchyPermission.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif new file mode 100644 index 00000000000..7ca3215e5f4 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..99df60b4709 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif new file mode 100644 index 00000000000..8c3d85f7383 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..e06d6105a5c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..7402e2232e3 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..1295f5216ee Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_AndInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..ca9cabaa91c Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..6f6c92e3feb Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_NotInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..4fa1d3e6761 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_OrInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..1295f5216ee Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_AndInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..6f6c92e3feb Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_NotInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..4fa1d3e6761 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_OrInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif new file mode 100644 index 00000000000..ab6e9c96a9d Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif new file mode 100644 index 00000000000..9ff095f15de Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif new file mode 100644 index 00000000000..173020a7e95 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_AndRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_AndRuleConfiguration.gif new file mode 100644 index 00000000000..2255e986043 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_AndRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_NotRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_NotRuleConfiguration.gif new file mode 100644 index 00000000000..59c4adae079 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_NotRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_OrRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_OrRuleConfiguration.gif new file mode 100644 index 00000000000..66eed056387 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_invariantRuleConfiguration_OrRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif new file mode 100644 index 00000000000..2255e986043 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_AndRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif new file mode 100644 index 00000000000..59c4adae079 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_NotRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif new file mode 100644 index 00000000000..66eed056387 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_OrRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..1295f5216ee Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndRuleConfiguration.gif new file mode 100644 index 00000000000..d92f34c8aea Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/AndRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/HierarchyPermission.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/HierarchyPermission.gif new file mode 100644 index 00000000000..c4a8af41844 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/HierarchyPermission.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerConfiguration.gif new file mode 100644 index 00000000000..134551bff7e Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerRuleConfiguration.gif new file mode 100644 index 00000000000..89ad5da38ab Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerTypeConfiguration.gif new file mode 100644 index 00000000000..cdd3b76e3c0 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantContainerTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantSemanticTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantSemanticTypeConfiguration.gif new file mode 100644 index 00000000000..ef56c140853 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantSemanticTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantTypeConfiguration.gif new file mode 100644 index 00000000000..1e6c63ceb46 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/InvariantTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..6f6c92e3feb Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotRuleConfiguration.gif new file mode 100644 index 00000000000..a17dc7d88e9 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/NotRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrInvariantRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrInvariantRuleConfiguration.gif new file mode 100644 index 00000000000..4fa1d3e6761 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrInvariantRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrRuleConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrRuleConfiguration.gif new file mode 100644 index 00000000000..8a5c70cbd74 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/OrRuleConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuleBasedTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuleBasedTypeConfiguration.gif new file mode 100644 index 00000000000..498364f1c1a Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuleBasedTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuledTypeConfiguration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuledTypeConfiguration.gif new file mode 100644 index 00000000000..b3643da048a Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/icons/full/obj16/RuledTypeConfiguration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.ecore b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.ecore new file mode 100644 index 00000000000..cb4336e9939 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.ecore @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.genmodel b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.genmodel new file mode 100644 index 00000000000..0a2f0324d3e --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.genmodel @@ -0,0 +1,29 @@ + + + RuleBased.ecore + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/rulebased.elementtypesconfigurations b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/rulebased.elementtypesconfigurations new file mode 100644 index 00000000000..065b805a8f5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/model/rulebased.elementtypesconfigurations @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.properties new file mode 100644 index 00000000000..70e4bd38fa9 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.properties @@ -0,0 +1,31 @@ +# +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - Initial API and implementation + +pluginName = Papyrus InvariantContainerConfiguration Model +providerName = Eclipse Modeling Project +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} | {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. +_UI_PropertyDescriptor_description = The {0} of the {1} +_UI_RuleBasedTypeConfiguration_type = Type Configuration +_UI_RuleConfiguration_type = Rule Configuration +_UI_CompositeRuleConfiguration_type = Composite Rule Configuration +_UI_NotRuleConfiguration_type = Not Rule Configuration +_UI_AndRuleConfiguration_type = And Rule Configuration +_UI_OrRuleConfiguration_type = Or Rule Configuration +_UI_Unknown_type = Object +_UI_Unknown_datatype= Value +_UI_RuleBasedTypeConfiguration_ruleConfiguration_feature = Rule Configuration +_UI_CompositeRuleConfiguration_composedRules_feature = Composed Rules +_UI_NotRuleConfiguration_composedRule_feature = Composed Rule +_UI_Unknown_feature = Unspecified diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.xml new file mode 100644 index 00000000000..10d1e60363a --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/plugin.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/pom.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/pom.xml new file mode 100644 index 00000000000..6d00b665fc3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-types + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.types.rulebased + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/schema/ruleKind.exsd b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/schema/ruleKind.exsd new file mode 100644 index 00000000000..0e2163659ac --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/schema/ruleKind.exsd @@ -0,0 +1,112 @@ + + + + + + + + + Extension point to describe new rule kinds. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Enter the first release in which this extension point appears.] + + + + + + + + + [Enter extension point usage example here.] + + + + + + + + + [Enter API information here.] + + + + + + + + + [Enter information about supplied implementation of this extension point.] + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/AndRuleConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/AndRuleConfiguration.java new file mode 100644 index 00000000000..53077026b39 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/AndRuleConfiguration.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + + +/** + * + * A representation of the model object 'And Rule Configuration'. + * + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getAndRuleConfiguration() + * @model + * @generated + */ +public interface AndRuleConfiguration extends CompositeRuleConfiguration { +} // AndRuleConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/CompositeRuleConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/CompositeRuleConfiguration.java new file mode 100644 index 00000000000..edbe0f0f34c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/CompositeRuleConfiguration.java @@ -0,0 +1,50 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Composite Rule Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration#getComposedRules Composed Rules}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getCompositeRuleConfiguration() + * @model abstract="true" + * @generated + */ +public interface CompositeRuleConfiguration extends RuleConfiguration { + /** + * Returns the value of the 'Composed Rules' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration}. + * + *

+ * If the meaning of the 'Composed Rules' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Composed Rules' containment reference list. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getCompositeRuleConfiguration_ComposedRules() + * @model containment="true" lower="2" + * @generated + */ + EList getComposedRules(); + +} // CompositeRuleConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/NotRuleConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/NotRuleConfiguration.java new file mode 100644 index 00000000000..4618d0788fa --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/NotRuleConfiguration.java @@ -0,0 +1,59 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + + +/** + * + * A representation of the model object 'Not Rule Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration#getComposedRule Composed Rule}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getNotRuleConfiguration() + * @model + * @generated + */ +public interface NotRuleConfiguration extends RuleConfiguration { + /** + * Returns the value of the 'Composed Rule' reference. + * + *

+ * If the meaning of the 'Composed Rule' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Composed Rule' reference. + * @see #setComposedRule(RuleConfiguration) + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getNotRuleConfiguration_ComposedRule() + * @model required="true" + * @generated + */ + RuleConfiguration getComposedRule(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration#getComposedRule Composed Rule}' reference. + * + * + * @param value the new value of the 'Composed Rule' reference. + * @see #getComposedRule() + * @generated + */ + void setComposedRule(RuleConfiguration value); + +} // NotRuleConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/OrRuleConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/OrRuleConfiguration.java new file mode 100644 index 00000000000..42cddc5095f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/OrRuleConfiguration.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + + +/** + * + * A representation of the model object 'Or Rule Configuration'. + * + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getOrRuleConfiguration() + * @model + * @generated + */ +public interface OrRuleConfiguration extends CompositeRuleConfiguration { +} // OrRuleConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedFactory.java new file mode 100644 index 00000000000..b7f383563f5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedFactory.java @@ -0,0 +1,79 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage + * @generated + */ +public interface RuleBasedFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + RuleBasedFactory eINSTANCE = org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedFactoryImpl.init(); + + /** + * Returns a new object of class 'Type Configuration'. + * + * + * @return a new object of class 'Type Configuration'. + * @generated + */ + RuleBasedTypeConfiguration createRuleBasedTypeConfiguration(); + + /** + * Returns a new object of class 'Not Rule Configuration'. + * + * + * @return a new object of class 'Not Rule Configuration'. + * @generated + */ + NotRuleConfiguration createNotRuleConfiguration(); + + /** + * Returns a new object of class 'And Rule Configuration'. + * + * + * @return a new object of class 'And Rule Configuration'. + * @generated + */ + AndRuleConfiguration createAndRuleConfiguration(); + + /** + * Returns a new object of class 'Or Rule Configuration'. + * + * + * @return a new object of class 'Or Rule Configuration'. + * @generated + */ + OrRuleConfiguration createOrRuleConfiguration(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + RuleBasedPackage getRuleBasedPackage(); + +} //RuleBasedFactory diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedPackage.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedPackage.java new file mode 100644 index 00000000000..331b485f2b0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedPackage.java @@ -0,0 +1,576 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedFactory + * @model kind="package" + * @generated + */ +public interface RuleBasedPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "rulebased"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/infra/types/rulebased/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "rulebased"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + RuleBasedPackage eINSTANCE = org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedTypeConfigurationImpl Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getRuleBasedTypeConfiguration() + * @generated + */ + int RULE_BASED_TYPE_CONFIGURATION = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__DESCRIPTION = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__IDENTIFIER = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__NAME = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__NAME; + + /** + * The feature id for the 'Hint' attribute. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__HINT = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__HINT; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__KIND = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__KIND; + + /** + * The feature id for the 'Icon Entry' containment reference. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__ICON_ENTRY = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__ICON_ENTRY; + + /** + * The feature id for the 'Specialized Types ID' attribute list. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID; + + /** + * The feature id for the 'Edit Helper Advice Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__MATCHER_CONFIGURATION = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION; + + /** + * The feature id for the 'Rule Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Type Configuration' class. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Type Configuration' class. + * + * + * @generated + * @ordered + */ + int RULE_BASED_TYPE_CONFIGURATION_OPERATION_COUNT = ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getRuleConfiguration() + * @generated + */ + int RULE_CONFIGURATION = 1; + + /** + * The number of structural features of the 'Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int RULE_CONFIGURATION_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int RULE_CONFIGURATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.CompositeRuleConfigurationImpl Composite Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.CompositeRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getCompositeRuleConfiguration() + * @generated + */ + int COMPOSITE_RULE_CONFIGURATION = 2; + + /** + * The feature id for the 'Composed Rules' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES = RULE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Composite Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int COMPOSITE_RULE_CONFIGURATION_FEATURE_COUNT = RULE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Composite Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int COMPOSITE_RULE_CONFIGURATION_OPERATION_COUNT = RULE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.NotRuleConfigurationImpl Not Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.NotRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getNotRuleConfiguration() + * @generated + */ + int NOT_RULE_CONFIGURATION = 3; + + /** + * The feature id for the 'Composed Rule' reference. + * + * + * @generated + * @ordered + */ + int NOT_RULE_CONFIGURATION__COMPOSED_RULE = RULE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Not Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int NOT_RULE_CONFIGURATION_FEATURE_COUNT = RULE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Not Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int NOT_RULE_CONFIGURATION_OPERATION_COUNT = RULE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.AndRuleConfigurationImpl And Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.AndRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getAndRuleConfiguration() + * @generated + */ + int AND_RULE_CONFIGURATION = 4; + + /** + * The feature id for the 'Composed Rules' containment reference list. + * + * + * @generated + * @ordered + */ + int AND_RULE_CONFIGURATION__COMPOSED_RULES = COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES; + + /** + * The number of structural features of the 'And Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int AND_RULE_CONFIGURATION_FEATURE_COUNT = COMPOSITE_RULE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'And Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int AND_RULE_CONFIGURATION_OPERATION_COUNT = COMPOSITE_RULE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.OrRuleConfigurationImpl Or Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.OrRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getOrRuleConfiguration() + * @generated + */ + int OR_RULE_CONFIGURATION = 5; + + /** + * The feature id for the 'Composed Rules' containment reference list. + * + * + * @generated + * @ordered + */ + int OR_RULE_CONFIGURATION__COMPOSED_RULES = COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES; + + /** + * The number of structural features of the 'Or Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int OR_RULE_CONFIGURATION_FEATURE_COUNT = COMPOSITE_RULE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Or Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int OR_RULE_CONFIGURATION_OPERATION_COUNT = COMPOSITE_RULE_CONFIGURATION_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration Type Configuration}'. + * + * + * @return the meta object for class 'Type Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration + * @generated + */ + EClass getRuleBasedTypeConfiguration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration#getRuleConfiguration Rule Configuration}'. + * + * + * @return the meta object for the containment reference 'Rule Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration#getRuleConfiguration() + * @see #getRuleBasedTypeConfiguration() + * @generated + */ + EReference getRuleBasedTypeConfiguration_RuleConfiguration(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration Rule Configuration}'. + * + * + * @return the meta object for class 'Rule Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration + * @generated + */ + EClass getRuleConfiguration(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration Composite Rule Configuration}'. + * + * + * @return the meta object for class 'Composite Rule Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration + * @generated + */ + EClass getCompositeRuleConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration#getComposedRules Composed Rules}'. + * + * + * @return the meta object for the containment reference list 'Composed Rules'. + * @see org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration#getComposedRules() + * @see #getCompositeRuleConfiguration() + * @generated + */ + EReference getCompositeRuleConfiguration_ComposedRules(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration Not Rule Configuration}'. + * + * + * @return the meta object for class 'Not Rule Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration + * @generated + */ + EClass getNotRuleConfiguration(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration#getComposedRule Composed Rule}'. + * + * + * @return the meta object for the reference 'Composed Rule'. + * @see org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration#getComposedRule() + * @see #getNotRuleConfiguration() + * @generated + */ + EReference getNotRuleConfiguration_ComposedRule(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration And Rule Configuration}'. + * + * + * @return the meta object for class 'And Rule Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration + * @generated + */ + EClass getAndRuleConfiguration(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration Or Rule Configuration}'. + * + * + * @return the meta object for class 'Or Rule Configuration'. + * @see org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration + * @generated + */ + EClass getOrRuleConfiguration(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + RuleBasedFactory getRuleBasedFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedTypeConfigurationImpl Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getRuleBasedTypeConfiguration() + * @generated + */ + EClass RULE_BASED_TYPE_CONFIGURATION = eINSTANCE.getRuleBasedTypeConfiguration(); + + /** + * The meta object literal for the 'Rule Configuration' containment reference feature. + * + * + * @generated + */ + EReference RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION = eINSTANCE.getRuleBasedTypeConfiguration_RuleConfiguration(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getRuleConfiguration() + * @generated + */ + EClass RULE_CONFIGURATION = eINSTANCE.getRuleConfiguration(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.CompositeRuleConfigurationImpl Composite Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.CompositeRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getCompositeRuleConfiguration() + * @generated + */ + EClass COMPOSITE_RULE_CONFIGURATION = eINSTANCE.getCompositeRuleConfiguration(); + + /** + * The meta object literal for the 'Composed Rules' containment reference list feature. + * + * + * @generated + */ + EReference COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES = eINSTANCE.getCompositeRuleConfiguration_ComposedRules(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.NotRuleConfigurationImpl Not Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.NotRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getNotRuleConfiguration() + * @generated + */ + EClass NOT_RULE_CONFIGURATION = eINSTANCE.getNotRuleConfiguration(); + + /** + * The meta object literal for the 'Composed Rule' reference feature. + * + * + * @generated + */ + EReference NOT_RULE_CONFIGURATION__COMPOSED_RULE = eINSTANCE.getNotRuleConfiguration_ComposedRule(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.AndRuleConfigurationImpl And Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.AndRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getAndRuleConfiguration() + * @generated + */ + EClass AND_RULE_CONFIGURATION = eINSTANCE.getAndRuleConfiguration(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.rulebased.impl.OrRuleConfigurationImpl Or Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.impl.OrRuleConfigurationImpl + * @see org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedPackageImpl#getOrRuleConfiguration() + * @generated + */ + EClass OR_RULE_CONFIGURATION = eINSTANCE.getOrRuleConfiguration(); + + } + +} //RuleBasedPackage diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedTypeConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedTypeConfiguration.java new file mode 100644 index 00000000000..3bfcbf47db3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleBasedTypeConfiguration.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +/** + * + * A representation of the model object 'Type Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration#getRuleConfiguration Rule Configuration}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getRuleBasedTypeConfiguration() + * @model + * @generated + */ +public interface RuleBasedTypeConfiguration extends SpecializationTypeConfiguration { + /** + * Returns the value of the 'Rule Configuration' containment reference. + * + *

+ * If the meaning of the 'Rule Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rule Configuration' containment reference. + * @see #setRuleConfiguration(RuleConfiguration) + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getRuleBasedTypeConfiguration_RuleConfiguration() + * @model containment="true" required="true" + * @generated + */ + RuleConfiguration getRuleConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration#getRuleConfiguration Rule Configuration}' containment reference. + * + * + * @param value the new value of the 'Rule Configuration' containment reference. + * @see #getRuleConfiguration() + * @generated + */ + void setRuleConfiguration(RuleConfiguration value); + +} // RuleBasedTypeConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleConfiguration.java new file mode 100644 index 00000000000..6acb87349e8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/RuleConfiguration.java @@ -0,0 +1,28 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Rule Configuration'. + * + * + * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#getRuleConfiguration() + * @model abstract="true" + * @generated + */ +public interface RuleConfiguration extends EObject { +} // RuleConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/AndRuleConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/AndRuleConfigurationImpl.java new file mode 100644 index 00000000000..324f3adcfd4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/AndRuleConfigurationImpl.java @@ -0,0 +1,47 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * + * An implementation of the model object 'And Rule Configuration'. + * + * + * @generated + */ +public class AndRuleConfigurationImpl extends CompositeRuleConfigurationImpl implements AndRuleConfiguration { + /** + * + * + * @generated + */ + protected AndRuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuleBasedPackage.Literals.AND_RULE_CONFIGURATION; + } + +} //AndRuleConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/CompositeRuleConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/CompositeRuleConfigurationImpl.java new file mode 100644 index 00000000000..4baef63e4ae --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/CompositeRuleConfigurationImpl.java @@ -0,0 +1,160 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.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.types.rulebased.CompositeRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * An implementation of the model object 'Composite Rule Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.rulebased.impl.CompositeRuleConfigurationImpl#getComposedRules Composed Rules}
  • + *
+ * + * @generated + */ +public abstract class CompositeRuleConfigurationImpl extends RuleConfigurationImpl implements CompositeRuleConfiguration { + /** + * The cached value of the '{@link #getComposedRules() Composed Rules}' containment reference list. + * + * + * @see #getComposedRules() + * @generated + * @ordered + */ + protected EList composedRules; + + /** + * + * + * @generated + */ + protected CompositeRuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getComposedRules() { + if (composedRules == null) { + composedRules = new EObjectContainmentEList(RuleConfiguration.class, this, RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES); + } + return composedRules; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES: + return ((InternalEList)getComposedRules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES: + return getComposedRules(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES: + getComposedRules().clear(); + getComposedRules().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES: + getComposedRules().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES: + return composedRules != null && !composedRules.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //CompositeRuleConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/NotRuleConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/NotRuleConfigurationImpl.java new file mode 100644 index 00000000000..2ee6e4e0196 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/NotRuleConfigurationImpl.java @@ -0,0 +1,166 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * An implementation of the model object 'Not Rule Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.rulebased.impl.NotRuleConfigurationImpl#getComposedRule Composed Rule}
  • + *
+ * + * @generated + */ +public class NotRuleConfigurationImpl extends RuleConfigurationImpl implements NotRuleConfiguration { + /** + * The cached value of the '{@link #getComposedRule() Composed Rule}' reference. + * + * + * @see #getComposedRule() + * @generated + * @ordered + */ + protected RuleConfiguration composedRule; + + /** + * + * + * @generated + */ + protected NotRuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuleBasedPackage.Literals.NOT_RULE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public RuleConfiguration getComposedRule() { + if (composedRule != null && composedRule.eIsProxy()) { + InternalEObject oldComposedRule = (InternalEObject)composedRule; + composedRule = (RuleConfiguration)eResolveProxy(oldComposedRule); + if (composedRule != oldComposedRule) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuleBasedPackage.NOT_RULE_CONFIGURATION__COMPOSED_RULE, oldComposedRule, composedRule)); + } + } + return composedRule; + } + + /** + * + * + * @generated + */ + public RuleConfiguration basicGetComposedRule() { + return composedRule; + } + + /** + * + * + * @generated + */ + public void setComposedRule(RuleConfiguration newComposedRule) { + RuleConfiguration oldComposedRule = composedRule; + composedRule = newComposedRule; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RuleBasedPackage.NOT_RULE_CONFIGURATION__COMPOSED_RULE, oldComposedRule, composedRule)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuleBasedPackage.NOT_RULE_CONFIGURATION__COMPOSED_RULE: + if (resolve) return getComposedRule(); + return basicGetComposedRule(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuleBasedPackage.NOT_RULE_CONFIGURATION__COMPOSED_RULE: + setComposedRule((RuleConfiguration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuleBasedPackage.NOT_RULE_CONFIGURATION__COMPOSED_RULE: + setComposedRule((RuleConfiguration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuleBasedPackage.NOT_RULE_CONFIGURATION__COMPOSED_RULE: + return composedRule != null; + } + return super.eIsSet(featureID); + } + +} //NotRuleConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/OrRuleConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/OrRuleConfigurationImpl.java new file mode 100644 index 00000000000..5cc23ccc9c7 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/OrRuleConfigurationImpl.java @@ -0,0 +1,47 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * + * An implementation of the model object 'Or Rule Configuration'. + * + * + * @generated + */ +public class OrRuleConfigurationImpl extends CompositeRuleConfigurationImpl implements OrRuleConfiguration { + /** + * + * + * @generated + */ + protected OrRuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuleBasedPackage.Literals.OR_RULE_CONFIGURATION; + } + +} //OrRuleConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedFactoryImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedFactoryImpl.java new file mode 100644 index 00000000000..3f1ad9a26cc --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedFactoryImpl.java @@ -0,0 +1,138 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.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.types.rulebased.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class RuleBasedFactoryImpl extends EFactoryImpl implements RuleBasedFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static RuleBasedFactory init() { + try { + RuleBasedFactory theRuleBasedFactory = (RuleBasedFactory)EPackage.Registry.INSTANCE.getEFactory(RuleBasedPackage.eNS_URI); + if (theRuleBasedFactory != null) { + return theRuleBasedFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RuleBasedFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public RuleBasedFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION: return createRuleBasedTypeConfiguration(); + case RuleBasedPackage.NOT_RULE_CONFIGURATION: return createNotRuleConfiguration(); + case RuleBasedPackage.AND_RULE_CONFIGURATION: return createAndRuleConfiguration(); + case RuleBasedPackage.OR_RULE_CONFIGURATION: return createOrRuleConfiguration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public RuleBasedTypeConfiguration createRuleBasedTypeConfiguration() { + RuleBasedTypeConfigurationImpl ruleBasedTypeConfiguration = new RuleBasedTypeConfigurationImpl(); + return ruleBasedTypeConfiguration; + } + + /** + * + * + * @generated + */ + public NotRuleConfiguration createNotRuleConfiguration() { + NotRuleConfigurationImpl notRuleConfiguration = new NotRuleConfigurationImpl(); + return notRuleConfiguration; + } + + /** + * + * + * @generated + */ + public AndRuleConfiguration createAndRuleConfiguration() { + AndRuleConfigurationImpl andRuleConfiguration = new AndRuleConfigurationImpl(); + return andRuleConfiguration; + } + + /** + * + * + * @generated + */ + public OrRuleConfiguration createOrRuleConfiguration() { + OrRuleConfigurationImpl orRuleConfiguration = new OrRuleConfigurationImpl(); + return orRuleConfiguration; + } + + /** + * + * + * @generated + */ + public RuleBasedPackage getRuleBasedPackage() { + return (RuleBasedPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static RuleBasedPackage getPackage() { + return RuleBasedPackage.eINSTANCE; + } + +} //RuleBasedFactoryImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedPackageImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedPackageImpl.java new file mode 100644 index 00000000000..da56a83e86c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedPackageImpl.java @@ -0,0 +1,329 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.impl; + +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.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedFactory; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class RuleBasedPackageImpl extends EPackageImpl implements RuleBasedPackage { + /** + * + * + * @generated + */ + private EClass ruleBasedTypeConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass ruleConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass compositeRuleConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass notRuleConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass andRuleConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass orRuleConfigurationEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage#eNS_URI + * @see #init() + * @generated + */ + private RuleBasedPackageImpl() { + super(eNS_URI, RuleBasedFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link RuleBasedPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static RuleBasedPackage init() { + if (isInited) return (RuleBasedPackage)EPackage.Registry.INSTANCE.getEPackage(RuleBasedPackage.eNS_URI); + + // Obtain or create and register package + RuleBasedPackageImpl theRuleBasedPackage = (RuleBasedPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RuleBasedPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RuleBasedPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + ElementTypesConfigurationsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theRuleBasedPackage.createPackageContents(); + + // Initialize created meta-data + theRuleBasedPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theRuleBasedPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(RuleBasedPackage.eNS_URI, theRuleBasedPackage); + return theRuleBasedPackage; + } + + /** + * + * + * @generated + */ + public EClass getRuleBasedTypeConfiguration() { + return ruleBasedTypeConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getRuleBasedTypeConfiguration_RuleConfiguration() { + return (EReference)ruleBasedTypeConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getRuleConfiguration() { + return ruleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EClass getCompositeRuleConfiguration() { + return compositeRuleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getCompositeRuleConfiguration_ComposedRules() { + return (EReference)compositeRuleConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getNotRuleConfiguration() { + return notRuleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getNotRuleConfiguration_ComposedRule() { + return (EReference)notRuleConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getAndRuleConfiguration() { + return andRuleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EClass getOrRuleConfiguration() { + return orRuleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public RuleBasedFactory getRuleBasedFactory() { + return (RuleBasedFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + ruleBasedTypeConfigurationEClass = createEClass(RULE_BASED_TYPE_CONFIGURATION); + createEReference(ruleBasedTypeConfigurationEClass, RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION); + + ruleConfigurationEClass = createEClass(RULE_CONFIGURATION); + + compositeRuleConfigurationEClass = createEClass(COMPOSITE_RULE_CONFIGURATION); + createEReference(compositeRuleConfigurationEClass, COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES); + + notRuleConfigurationEClass = createEClass(NOT_RULE_CONFIGURATION); + createEReference(notRuleConfigurationEClass, NOT_RULE_CONFIGURATION__COMPOSED_RULE); + + andRuleConfigurationEClass = createEClass(AND_RULE_CONFIGURATION); + + orRuleConfigurationEClass = createEClass(OR_RULE_CONFIGURATION); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + ruleBasedTypeConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getSpecializationTypeConfiguration()); + compositeRuleConfigurationEClass.getESuperTypes().add(this.getRuleConfiguration()); + notRuleConfigurationEClass.getESuperTypes().add(this.getRuleConfiguration()); + andRuleConfigurationEClass.getESuperTypes().add(this.getCompositeRuleConfiguration()); + orRuleConfigurationEClass.getESuperTypes().add(this.getCompositeRuleConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(ruleBasedTypeConfigurationEClass, RuleBasedTypeConfiguration.class, "RuleBasedTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRuleBasedTypeConfiguration_RuleConfiguration(), this.getRuleConfiguration(), null, "ruleConfiguration", null, 1, 1, RuleBasedTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ruleConfigurationEClass, RuleConfiguration.class, "RuleConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(compositeRuleConfigurationEClass, CompositeRuleConfiguration.class, "CompositeRuleConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCompositeRuleConfiguration_ComposedRules(), this.getRuleConfiguration(), null, "composedRules", null, 2, -1, CompositeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(notRuleConfigurationEClass, NotRuleConfiguration.class, "NotRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getNotRuleConfiguration_ComposedRule(), this.getRuleConfiguration(), null, "composedRule", null, 1, 1, NotRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(andRuleConfigurationEClass, AndRuleConfiguration.class, "AndRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(orRuleConfigurationEClass, OrRuleConfiguration.class, "OrRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //RuleBasedPackageImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedTypeConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedTypeConfigurationImpl.java new file mode 100644 index 00000000000..cdf10855473 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleBasedTypeConfigurationImpl.java @@ -0,0 +1,187 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * An implementation of the model object 'Type Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.rulebased.impl.RuleBasedTypeConfigurationImpl#getRuleConfiguration Rule Configuration}
  • + *
+ * + * @generated + */ +public class RuleBasedTypeConfigurationImpl extends SpecializationTypeConfigurationImpl implements RuleBasedTypeConfiguration { + /** + * The cached value of the '{@link #getRuleConfiguration() Rule Configuration}' containment reference. + * + * + * @see #getRuleConfiguration() + * @generated + * @ordered + */ + protected RuleConfiguration ruleConfiguration; + + /** + * + * + * @generated + */ + protected RuleBasedTypeConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public RuleConfiguration getRuleConfiguration() { + return ruleConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRuleConfiguration(RuleConfiguration newRuleConfiguration, NotificationChain msgs) { + RuleConfiguration oldRuleConfiguration = ruleConfiguration; + ruleConfiguration = newRuleConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, oldRuleConfiguration, newRuleConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRuleConfiguration(RuleConfiguration newRuleConfiguration) { + if (newRuleConfiguration != ruleConfiguration) { + NotificationChain msgs = null; + if (ruleConfiguration != null) + msgs = ((InternalEObject)ruleConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, null, msgs); + if (newRuleConfiguration != null) + msgs = ((InternalEObject)newRuleConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, null, msgs); + msgs = basicSetRuleConfiguration(newRuleConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, newRuleConfiguration, newRuleConfiguration)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION: + return basicSetRuleConfiguration(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION: + return getRuleConfiguration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION: + setRuleConfiguration((RuleConfiguration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION: + setRuleConfiguration((RuleConfiguration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION: + return ruleConfiguration != null; + } + return super.eIsSet(featureID); + } + +} //RuleBasedTypeConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleConfigurationImpl.java new file mode 100644 index 00000000000..087dd42c914 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/impl/RuleConfigurationImpl.java @@ -0,0 +1,49 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +/** + * + * An implementation of the model object 'Rule Configuration'. + * + * + * @generated + */ +public abstract class RuleConfigurationImpl extends MinimalEObjectImpl.Container implements RuleConfiguration { + /** + * + * + * @generated + */ + protected RuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuleBasedPackage.Literals.RULE_CONFIGURATION; + } + +} //RuleConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/AndRuleConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/AndRuleConfigurationItemProvider.java new file mode 100644 index 00000000000..35984c7dbd7 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/AndRuleConfigurationItemProvider.java @@ -0,0 +1,104 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration} object. + * + * + * @generated + */ +public class AndRuleConfigurationItemProvider extends CompositeRuleConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public AndRuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns AndRuleConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/AndRuleConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_AndRuleConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/CompositeRuleConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/CompositeRuleConfigurationItemProvider.java new file mode 100644 index 00000000000..589703539b9 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/CompositeRuleConfigurationItemProvider.java @@ -0,0 +1,151 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedFactory; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration} object. + * + * + * @generated + */ +public class CompositeRuleConfigurationItemProvider extends RuleConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public CompositeRuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_CompositeRuleConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(CompositeRuleConfiguration.class)) { + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES, + RuleBasedFactory.eINSTANCE.createNotRuleConfiguration())); + + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES, + RuleBasedFactory.eINSTANCE.createAndRuleConfiguration())); + + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES, + RuleBasedFactory.eINSTANCE.createOrRuleConfiguration())); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/NotRuleConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/NotRuleConfigurationItemProvider.java new file mode 100644 index 00000000000..181fac1c9f4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/NotRuleConfigurationItemProvider.java @@ -0,0 +1,130 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration} object. + * + * + * @generated + */ +public class NotRuleConfigurationItemProvider extends RuleConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public NotRuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addComposedRulePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Composed Rule feature. + * + * + * @generated + */ + protected void addComposedRulePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_NotRuleConfiguration_composedRule_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_NotRuleConfiguration_composedRule_feature", "_UI_NotRuleConfiguration_type"), + RuleBasedPackage.Literals.NOT_RULE_CONFIGURATION__COMPOSED_RULE, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns NotRuleConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/NotRuleConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_NotRuleConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/OrRuleConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/OrRuleConfigurationItemProvider.java new file mode 100644 index 00000000000..40469d417db --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/OrRuleConfigurationItemProvider.java @@ -0,0 +1,104 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration} object. + * + * + * @generated + */ +public class OrRuleConfigurationItemProvider extends CompositeRuleConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public OrRuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns OrRuleConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/OrRuleConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_OrRuleConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedEditPlugin.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedEditPlugin.java new file mode 100644 index 00000000000..e85255ce36b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedEditPlugin.java @@ -0,0 +1,105 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +/** + * This is the central singleton for the RuleBased edit plugin. + * + * + * @generated + */ +public final class RuleBasedEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final RuleBasedEditPlugin INSTANCE = new RuleBasedEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public RuleBasedEditPlugin() { + super + (new ResourceLocator [] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedItemProviderAdapterFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedItemProviderAdapterFactory.java new file mode 100644 index 00000000000..8b48ad5a0f5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedItemProviderAdapterFactory.java @@ -0,0 +1,422 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedFactory; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +import org.eclipse.papyrus.infra.types.rulebased.util.RuleBasedAdapterFactory; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class RuleBasedItemProviderAdapterFactory extends RuleBasedAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This helps manage the child creation extenders. + * + * + * @generated + */ + protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager(RuleBasedEditPlugin.INSTANCE, RuleBasedPackage.eNS_URI); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public RuleBasedItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration} instances. + * + * + * @generated + */ + protected RuleBasedTypeConfigurationItemProvider ruleBasedTypeConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createRuleBasedTypeConfigurationAdapter() { + if (ruleBasedTypeConfigurationItemProvider == null) { + ruleBasedTypeConfigurationItemProvider = new RuleBasedTypeConfigurationItemProvider(this); + } + + return ruleBasedTypeConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration} instances. + * + * + * @generated + */ + protected NotRuleConfigurationItemProvider notRuleConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createNotRuleConfigurationAdapter() { + if (notRuleConfigurationItemProvider == null) { + notRuleConfigurationItemProvider = new NotRuleConfigurationItemProvider(this); + } + + return notRuleConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration} instances. + * + * + * @generated + */ + protected AndRuleConfigurationItemProvider andRuleConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createAndRuleConfigurationAdapter() { + if (andRuleConfigurationItemProvider == null) { + andRuleConfigurationItemProvider = new AndRuleConfigurationItemProvider(this); + } + + return andRuleConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration} instances. + * + * + * @generated + */ + protected OrRuleConfigurationItemProvider orRuleConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createOrRuleConfigurationAdapter() { + if (orRuleConfigurationItemProvider == null) { + orRuleConfigurationItemProvider = new OrRuleConfigurationItemProvider(this); + } + + return orRuleConfigurationItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * + * + * @generated + */ + public List getChildCreationExtenders() { + return childCreationExtenderManager.getChildCreationExtenders(); + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return childCreationExtenderManager; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (ruleBasedTypeConfigurationItemProvider != null) ruleBasedTypeConfigurationItemProvider.dispose(); + if (notRuleConfigurationItemProvider != null) notRuleConfigurationItemProvider.dispose(); + if (andRuleConfigurationItemProvider != null) andRuleConfigurationItemProvider.dispose(); + if (orRuleConfigurationItemProvider != null) orRuleConfigurationItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link ElementTypesConfigurationsPackage}. + * + * + * @generated + */ + public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends ElementTypesConfigurationsSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS, + RuleBasedFactory.eINSTANCE.createRuleBasedTypeConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return RuleBasedEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedTypeConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedTypeConfigurationItemProvider.java new file mode 100644 index 00000000000..5dc10ed7f56 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleBasedTypeConfigurationItemProvider.java @@ -0,0 +1,167 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.provider.SpecializationTypeConfigurationItemProvider; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedFactory; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration} object. + * + * + * @generated + */ +public class RuleBasedTypeConfigurationItemProvider extends SpecializationTypeConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public RuleBasedTypeConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns RuleBasedTypeConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/RuleBasedTypeConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((RuleBasedTypeConfiguration)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_RuleBasedTypeConfiguration_type") : + getString("_UI_RuleBasedTypeConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(RuleBasedTypeConfiguration.class)) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, + RuleBasedFactory.eINSTANCE.createNotRuleConfiguration())); + + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, + RuleBasedFactory.eINSTANCE.createAndRuleConfiguration())); + + newChildDescriptors.add + (createChildParameter + (RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, + RuleBasedFactory.eINSTANCE.createOrRuleConfiguration())); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleConfigurationItemProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleConfigurationItemProvider.java new file mode 100644 index 00000000000..647c70b91fa --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/provider/RuleConfigurationItemProvider.java @@ -0,0 +1,120 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration} object. + * + * + * @generated + */ +public class RuleConfigurationItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public RuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_RuleConfiguration_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedAdapterFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedAdapterFactory.java new file mode 100644 index 00000000000..f1d94292dc2 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedAdapterFactory.java @@ -0,0 +1,316 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.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.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; +import org.eclipse.papyrus.infra.types.NamedConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +import org.eclipse.papyrus.infra.types.rulebased.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage + * @generated + */ +public class RuleBasedAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static RuleBasedPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public RuleBasedAdapterFactory() { + if (modelPackage == null) { + modelPackage = RuleBasedPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected RuleBasedSwitch modelSwitch = + new RuleBasedSwitch() { + @Override + public Adapter caseRuleBasedTypeConfiguration(RuleBasedTypeConfiguration object) { + return createRuleBasedTypeConfigurationAdapter(); + } + @Override + public Adapter caseRuleConfiguration(RuleConfiguration object) { + return createRuleConfigurationAdapter(); + } + @Override + public Adapter caseCompositeRuleConfiguration(CompositeRuleConfiguration object) { + return createCompositeRuleConfigurationAdapter(); + } + @Override + public Adapter caseNotRuleConfiguration(NotRuleConfiguration object) { + return createNotRuleConfigurationAdapter(); + } + @Override + public Adapter caseAndRuleConfiguration(AndRuleConfiguration object) { + return createAndRuleConfigurationAdapter(); + } + @Override + public Adapter caseOrRuleConfiguration(OrRuleConfiguration object) { + return createOrRuleConfigurationAdapter(); + } + @Override + public Adapter caseConfigurationElement(ConfigurationElement object) { + return createConfigurationElementAdapter(); + } + @Override + public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return createIdentifiedConfigurationAdapter(); + } + @Override + public Adapter caseNamedConfiguration(NamedConfiguration object) { + return createNamedConfigurationAdapter(); + } + @Override + public Adapter caseElementTypeConfiguration(ElementTypeConfiguration object) { + return createElementTypeConfigurationAdapter(); + } + @Override + public Adapter caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { + return createSpecializationTypeConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.types.rulebased.RuleBasedTypeConfiguration Type Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration + * @generated + */ + public Adapter createRuleBasedTypeConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration + * @generated + */ + public Adapter createRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration Composite Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration + * @generated + */ + public Adapter createCompositeRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration Not Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration + * @generated + */ + public Adapter createNotRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration And Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration + * @generated + */ + public Adapter createAndRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration Or Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration + * @generated + */ + public Adapter createOrRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + public Adapter createConfigurationElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + public Adapter createIdentifiedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.NamedConfiguration Named Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.NamedConfiguration + * @generated + */ + public Adapter createNamedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration Element Type Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ElementTypeConfiguration + * @generated + */ + public Adapter createElementTypeConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration Specialization Type Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration + * @generated + */ + public Adapter createSpecializationTypeConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //RuleBasedAdapterFactory diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceFactoryImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceFactoryImpl.java new file mode 100644 index 00000000000..2168e497e8c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.infra.types.rulebased.util.RuleBasedResourceImpl + * @generated + */ +public class RuleBasedResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public RuleBasedResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new RuleBasedResourceImpl(uri); + return result; + } + +} //RuleBasedResourceFactoryImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceImpl.java new file mode 100644 index 00000000000..c16891a88e3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.infra.types.rulebased.util.RuleBasedResourceFactoryImpl + * @generated + */ +public class RuleBasedResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public RuleBasedResourceImpl(URI uri) { + super(uri); + } + +} //RuleBasedResourceImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedSwitch.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedSwitch.java new file mode 100644 index 00000000000..f51598a36ff --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src-gen/org/eclipse/papyrus/infra/types/rulebased/util/RuleBasedSwitch.java @@ -0,0 +1,317 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.rulebased.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.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; +import org.eclipse.papyrus.infra.types.NamedConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +import org.eclipse.papyrus.infra.types.rulebased.*; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage + * @generated + */ +public class RuleBasedSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static RuleBasedPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public RuleBasedSwitch() { + if (modelPackage == null) { + modelPackage = RuleBasedPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case RuleBasedPackage.RULE_BASED_TYPE_CONFIGURATION: { + RuleBasedTypeConfiguration ruleBasedTypeConfiguration = (RuleBasedTypeConfiguration)theEObject; + T result = caseRuleBasedTypeConfiguration(ruleBasedTypeConfiguration); + if (result == null) result = caseSpecializationTypeConfiguration(ruleBasedTypeConfiguration); + if (result == null) result = caseElementTypeConfiguration(ruleBasedTypeConfiguration); + if (result == null) result = caseConfigurationElement(ruleBasedTypeConfiguration); + if (result == null) result = caseIdentifiedConfiguration(ruleBasedTypeConfiguration); + if (result == null) result = caseNamedConfiguration(ruleBasedTypeConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RuleBasedPackage.RULE_CONFIGURATION: { + RuleConfiguration ruleConfiguration = (RuleConfiguration)theEObject; + T result = caseRuleConfiguration(ruleConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RuleBasedPackage.COMPOSITE_RULE_CONFIGURATION: { + CompositeRuleConfiguration compositeRuleConfiguration = (CompositeRuleConfiguration)theEObject; + T result = caseCompositeRuleConfiguration(compositeRuleConfiguration); + if (result == null) result = caseRuleConfiguration(compositeRuleConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RuleBasedPackage.NOT_RULE_CONFIGURATION: { + NotRuleConfiguration notRuleConfiguration = (NotRuleConfiguration)theEObject; + T result = caseNotRuleConfiguration(notRuleConfiguration); + if (result == null) result = caseRuleConfiguration(notRuleConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RuleBasedPackage.AND_RULE_CONFIGURATION: { + AndRuleConfiguration andRuleConfiguration = (AndRuleConfiguration)theEObject; + T result = caseAndRuleConfiguration(andRuleConfiguration); + if (result == null) result = caseCompositeRuleConfiguration(andRuleConfiguration); + if (result == null) result = caseRuleConfiguration(andRuleConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RuleBasedPackage.OR_RULE_CONFIGURATION: { + OrRuleConfiguration orRuleConfiguration = (OrRuleConfiguration)theEObject; + T result = caseOrRuleConfiguration(orRuleConfiguration); + if (result == null) result = caseCompositeRuleConfiguration(orRuleConfiguration); + if (result == null) result = caseRuleConfiguration(orRuleConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Type Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Type Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRuleBasedTypeConfiguration(RuleBasedTypeConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRuleConfiguration(RuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Composite Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Composite Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCompositeRuleConfiguration(CompositeRuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Not Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Not Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNotRuleConfiguration(NotRuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'And Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'And Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAndRuleConfiguration(AndRuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Or Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Or Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOrRuleConfiguration(OrRuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfigurationElement(ConfigurationElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Identified Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Identified Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedConfiguration(NamedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Element Type Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Element Type Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseElementTypeConfiguration(ElementTypeConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Specialization Type Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Specialization Type Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //RuleBasedSwitch diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/Activator.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/Activator.java new file mode 100644 index 00000000000..a5974a13d2f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/Activator.java @@ -0,0 +1,74 @@ +/***************************************************************************** + * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 485220 + * + /*****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased; + +import org.eclipse.core.runtime.Plugin; +import org.eclipse.papyrus.infra.core.log.LogHelper; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.types.rulebased"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** Logging helper */ + 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 { + log = null; + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/AbstractRule.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/AbstractRule.java new file mode 100644 index 00000000000..9ebb7f76fd3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/AbstractRule.java @@ -0,0 +1,101 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +public abstract class AbstractRule implements IRule { + protected T invariantRuleConfiguration; + + @Override + public boolean approveRequest(IEditCommandRequest request) { + if (request instanceof CreateElementRequest) { + IElementType typeToCreate = ((CreateElementRequest) request).getElementType(); + + if (!approveCreationRequest(((ConfiguredHintedSpecializationElementType) typeToCreate), (CreateElementRequest) request)) { + return false; + } + + } else if (request instanceof SetRequest) { + EStructuralFeature feature = ((SetRequest) request).getFeature(); + if (feature instanceof EReference) { + + // containment. Check the kind of element to edit + Object value = ((SetRequest) request).getValue(); + List values = new ArrayList(); + // value = single object or list ? + if (value instanceof EObject) { + values.add(value); + } else if (value instanceof List) { + values.addAll((List) value); + } + + for (Object object : values) { + if (object instanceof EObject) { + IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) object, request.getClientContext()); + for (IElementType type : types) { + if (type instanceof ConfiguredHintedSpecializationElementType) { + if (!approveSetRequest((ConfiguredHintedSpecializationElementType) type, (SetRequest) request)) { + return false; + } + } + } + } + } + } + } else if (request instanceof MoveRequest) { + + Map objectsToMove = ((MoveRequest) request).getElementsToMove(); + + for (EObject movedElement : objectsToMove.keySet()) { + + IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(movedElement, request.getClientContext()); + for (IElementType type : types) { + if (type instanceof ConfiguredHintedSpecializationElementType) { + if (!approveMoveRequest((ConfiguredHintedSpecializationElementType) type, (MoveRequest) request)) { + return false; + } + } + } + } + return true; + } + return true; + } + + + abstract protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType type, MoveRequest request); + + abstract protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType type, SetRequest request); + + abstract protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType type, CreateElementRequest request); + + @Override + public void init(T invariantRuleConfiguration) { + this.invariantRuleConfiguration = invariantRuleConfiguration; + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRule.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRule.java new file mode 100644 index 00000000000..7c1839c1e12 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRule.java @@ -0,0 +1,57 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +public class DefaultRule implements IRule { + + + + /** + * @see org.eclipse.papyrus.infra.types.rulebased.core.IRule#approveRequest(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) + * + * @param request + * @return + */ + @Override + public boolean approveRequest(IEditCommandRequest request) { + // TODO Auto-generated method stub + return true; + } + + /** + * @see org.eclipse.papyrus.infra.types.rulebased.core.IRule#init(org.eclipse.papyrus.infra.types.rulebasedtypes.InvariantRuleConfiguration) + * + * @param invariantRuleConfiguration + */ + @Override + public void init(RuleConfiguration invariantRuleConfiguration) { + + } + + /** + * @see org.eclipse.papyrus.infra.types.rulebased.core.IRule#matches(org.eclipse.emf.ecore.EObject) + * + * @param eObject + * @return + */ + @Override + public boolean matches(EObject eObject) { + return true; + } + + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleEditHelperAdvice.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleEditHelperAdvice.java new file mode 100644 index 00000000000..acc5746cf18 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleEditHelperAdvice.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType; +import org.eclipse.papyrus.infra.types.rulebased.Activator; +import org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + + +public class DefaultRuleEditHelperAdvice extends AbstractEditHelperAdvice { + + + @Override + public boolean approveRequest(IEditCommandRequest request) { + List types = getTypes(request); + + // Must approve from the whole hierarchy + for (ConfiguredHintedSpecializationElementType configuredHintedSpecializationElementType : types) { + if (!approveRequest(configuredHintedSpecializationElementType, request)) { + return false; + } + } + + return true; + } + + /** + * @param request + * + */ + protected List getTypes(IEditCommandRequest request) { + List result = new ArrayList(); + if (request instanceof CreateElementRequest) { + IElementType typeToCreate = ((CreateElementRequest) request).getElementType(); + List superConfiguredTypes = getAllTypes(typeToCreate); + result.addAll(superConfiguredTypes); + } else if (request instanceof SetRequest) { + // check the feature to set is a containment feature and element to move is an extended element type + EStructuralFeature feature = ((SetRequest) request).getFeature(); + if (feature instanceof EReference) { + if (((EReference) feature).isContainment()) { + + // containment. Check the kind of element to edit + Object value = ((SetRequest) request).getValue(); + List values = new ArrayList(); + // value = single object or list ? + if (value instanceof EObject) { + values.add(value); + } else if (value instanceof List) { + values.addAll((List) value); + } + + for (Object object : values) { + if (object instanceof EObject) { + IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) object, request.getClientContext()); + for (IElementType type : types) { + if (type instanceof ConfiguredHintedSpecializationElementType) { + if (((ConfiguredHintedSpecializationElementType) type).getConfiguration() instanceof RuleBasedTypeConfiguration) { + result.add((ConfiguredHintedSpecializationElementType) type); + + List superConfiguredTypes = getAllSuperConfiguredTypes((ConfiguredHintedSpecializationElementType) type); + result.addAll(superConfiguredTypes); + } + } + } + } + } + } + } + } else if (request instanceof MoveRequest) { + // check the feature to set is a containment feature and element to move is an extended element type + Map objectsToMove = ((MoveRequest) request).getElementsToMove(); + for (Entry movedElement : objectsToMove.entrySet()) { + // do not compute with reference, this can be null. This could be interesting to check... + IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(movedElement.getKey(), request.getClientContext()); + for (IElementType type : types) { + if (type instanceof ConfiguredHintedSpecializationElementType) { + if (((ConfiguredHintedSpecializationElementType) type).getConfiguration() instanceof RuleBasedTypeConfiguration) { + result.add((ConfiguredHintedSpecializationElementType) type); + + List superConfiguredTypes = getAllSuperConfiguredTypes((ConfiguredHintedSpecializationElementType) type); + result.addAll(superConfiguredTypes); + } + } + } + } + } + + return result; + + } + + /** + * Returns the list of types (this one and supers) that are configuredTypes. + * + * @param type + * the type from which all s are retrieved + * @return the list of types in the hierarchy of specified type, including type itself if matching. Returns an empty list if none is matching + */ + protected List getAllTypes(IElementType type) { + List result = new ArrayList(); + + if (!(type instanceof ConfiguredHintedSpecializationElementType)) { + // no need to take care of metamodel types yet + return result; + } + + if (((ConfiguredHintedSpecializationElementType) type).getConfiguration() instanceof RuleBasedTypeConfiguration) { + result.add((ConfiguredHintedSpecializationElementType) type); + } + + IElementType[] superTypes = type.getAllSuperTypes(); + if (superTypes.length == 0) { + return result; + } + // get the reverse order + for (int i = superTypes.length - 1; i >= 0; i--) { + if (superTypes[i] instanceof ConfiguredHintedSpecializationElementType) { + if (((ConfiguredHintedSpecializationElementType) superTypes[i]).getConfiguration() instanceof RuleBasedTypeConfiguration) { + result.add((ConfiguredHintedSpecializationElementType) superTypes[i]); + } + } + } + + return result; + } + + protected List getAllSuperConfiguredTypes(ConfiguredHintedSpecializationElementType type) { + IElementType[] superTypes = type.getAllSuperTypes(); + if (superTypes.length == 0) { + return Collections.emptyList(); + } + List superExtendedTypes = new ArrayList(); + // get the reverse order + for (int i = superTypes.length - 1; i >= 0; i--) { + if (superTypes[i] instanceof ConfiguredHintedSpecializationElementType) { + if (((ConfiguredHintedSpecializationElementType) superTypes[i]).getConfiguration() instanceof RuleBasedTypeConfiguration) { + superExtendedTypes.add((ConfiguredHintedSpecializationElementType) superTypes[i]); + } + } + } + return superExtendedTypes; + } + + + protected boolean processCompositeRule(CompositeRuleConfiguration compositeRule, IEditCommandRequest request) { + Iterator iterator = compositeRule.getComposedRules().iterator(); + RuleConfiguration nextComposedRuleConfiguration = iterator.next(); + boolean result = processRule(nextComposedRuleConfiguration, request); + + while (iterator.hasNext()) { + nextComposedRuleConfiguration = iterator.next(); + + boolean resultNextComposedRuleConfiguration = processRule(nextComposedRuleConfiguration, request); + + if (compositeRule instanceof OrRuleConfiguration) { + if (result == false && resultNextComposedRuleConfiguration) { + result = true; + } + } else if (compositeRule instanceof AndRuleConfiguration) { + if (result == true && !resultNextComposedRuleConfiguration) { + result = false; + } + } + } + + return result; + } + + protected boolean processRule(RuleConfiguration ruleConfiguration, IEditCommandRequest request) { + if (ruleConfiguration instanceof CompositeRuleConfiguration) { + return processCompositeRule((CompositeRuleConfiguration) ruleConfiguration, request); + } else if (ruleConfiguration instanceof NotRuleConfiguration) { + RuleConfiguration composedRule = ((NotRuleConfiguration) ruleConfiguration).getComposedRule(); + return !processRule(composedRule, request); + } else { + return RuleConfigurationTypeRegistry.getInstance().getRule(ruleConfiguration).approveRequest(request); + } + } + + protected boolean approveRequest(ConfiguredHintedSpecializationElementType elementType, IEditCommandRequest request) { + + ElementTypeConfiguration configuration = ((ConfiguredHintedSpecializationElementType) elementType).getConfiguration(); + if (configuration instanceof RuleBasedTypeConfiguration) { + RuleConfiguration ruleConfiguration = ((RuleBasedTypeConfiguration) configuration).getRuleConfiguration(); + + return processRule(ruleConfiguration, request); + } else { + Activator.log.warn("Expected RuleConfiguration as configuration type for : " + elementType); + } + + return true; + } + + + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleElementMatcher.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleElementMatcher.java new file mode 100644 index 00000000000..b34935fc85e --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/DefaultRuleElementMatcher.java @@ -0,0 +1,97 @@ +/***************************************************************************** + * Copyright (c) 2015 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.rulebased.core; + +import java.util.Iterator; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.rulebased.AndRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.NotRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.OrRuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + + +public class DefaultRuleElementMatcher implements IElementMatcher { + + + RuleBasedTypeConfiguration configuration; + + public DefaultRuleElementMatcher(RuleBasedTypeConfiguration configuration) { + this.configuration = configuration; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.IElementMatcher#matches(org.eclipse.emf.ecore.EObject) + * + * @param eObject + * @return + */ + @Override + public boolean matches(EObject eObject) { + RuleConfiguration RuleConfiguration = configuration.getRuleConfiguration(); + + return processRule(RuleConfiguration, eObject); + } + + /** + * @param RuleConfiguration + * @param eObject + * @return + */ + protected boolean processRule(RuleConfiguration RuleConfiguration, EObject eObject) { + if (RuleConfiguration instanceof CompositeRuleConfiguration) { + return processCompositeRule((CompositeRuleConfiguration) RuleConfiguration, eObject); + } else if (RuleConfiguration instanceof NotRuleConfiguration) { + RuleConfiguration composedRule = ((NotRuleConfiguration) RuleConfiguration).getComposedRule(); + return !processRule(composedRule, eObject); + } else { + return RuleConfigurationTypeRegistry.getInstance().getRule(RuleConfiguration).matches(eObject); + } + } + + /** + * @param compositeRule + * @param eObject + * @return + */ + protected boolean processCompositeRule(CompositeRuleConfiguration compositeRule, EObject eObject) { + Iterator iterator = compositeRule.getComposedRules().iterator(); + RuleConfiguration nextComposedRuleConfiguration = iterator.next(); + boolean result = processRule(nextComposedRuleConfiguration, eObject); + + while (iterator.hasNext()) { + nextComposedRuleConfiguration = iterator.next(); + + boolean resultNextComposedRuleConfiguration = processRule(nextComposedRuleConfiguration, eObject); + + if (compositeRule instanceof OrRuleConfiguration) { + if (result == false && resultNextComposedRuleConfiguration) { + result = true; + } + } else if (compositeRule instanceof AndRuleConfiguration) { + if (result == true && !resultNextComposedRuleConfiguration) { + result = false; + } + } + } + + return result; + } + + + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRule.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRule.java new file mode 100644 index 00000000000..44c2e71814d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRule.java @@ -0,0 +1,25 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +public interface IRule { + public void init(T invariantRuleConfiguration); + + public boolean approveRequest(IEditCommandRequest request); + + public boolean matches(EObject eObject); +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRuleExtensionPoint.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRuleExtensionPoint.java new file mode 100644 index 00000000000..a58fd13a030 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/IRuleExtensionPoint.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import org.eclipse.papyrus.infra.types.rulebased.Activator; + + + + +public interface IRuleExtensionPoint { + + /** ID of the extension point */ + public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".ruleKind"; + + public static final String CONFIGURATION_CLASS = "configurationClass"; + + public static final String INVARIANT_RULE_CLASS = "ruleClass"; +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleConfigurationTypeRegistry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleConfigurationTypeRegistry.java new file mode 100644 index 00000000000..e519b85fb28 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleConfigurationTypeRegistry.java @@ -0,0 +1,77 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.Platform; +import org.eclipse.papyrus.infra.types.rulebased.Activator; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; + +public class RuleConfigurationTypeRegistry { + + /** private singleton instance */ + private static RuleConfigurationTypeRegistry registry; + + /** map configuration type to invariantRule */ + protected Map> invariantRuleConfigurationTypeToInvariantRule = null; + + /** + * returns the singleton instance of this registry + * + * @return the singleton instance of this registry + */ + public static synchronized RuleConfigurationTypeRegistry getInstance() { + if (registry == null) { + registry = new RuleConfigurationTypeRegistry(); + registry.init(); + } + return registry; + } + + /** + * Inits the registry. + */ + protected void init() { + invariantRuleConfigurationTypeToInvariantRule = new HashMap>(); + IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IRuleExtensionPoint.EXTENSION_POINT_ID); + for (IConfigurationElement configurationElement : elements) { + String configurationClass = configurationElement.getAttribute(IRuleExtensionPoint.CONFIGURATION_CLASS); + + try { + Object invariantRuleClass = configurationElement.createExecutableExtension(IRuleExtensionPoint.INVARIANT_RULE_CLASS); + if (invariantRuleClass instanceof IRule) { + invariantRuleConfigurationTypeToInvariantRule.put(configurationClass, (IRule) invariantRuleClass); + } + } catch (CoreException e) { + Activator.log.error(e); + } + } + } + + public IRule getRule(T invariantRuleConfiguration) { + String invariantRuleConfigurationType = invariantRuleConfiguration.eClass().getInstanceTypeName(); + // We assume here that the right invariantType is registered for the right InvariantRuleConfiguration + @SuppressWarnings("unchecked") + IRule invariantRule = (IRule) invariantRuleConfigurationTypeToInvariantRule.get(invariantRuleConfigurationType); + if (invariantRule != null) { + invariantRule.init(invariantRuleConfiguration); + return invariantRule; + } else { + return new DefaultRule(); + } + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleElementTypeFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleElementTypeFactory.java new file mode 100644 index 00000000000..51fa664ee5e --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.rulebased/src/org/eclipse/papyrus/infra/types/rulebased/core/RuleElementTypeFactory.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.rulebased.core; + +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.factories.impl.SpecializationTypeFactory; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; + +public class RuleElementTypeFactory extends SpecializationTypeFactory { + + @Override + protected IElementMatcher createElementMatcher(SpecializationTypeConfiguration configuration) { + if (configuration instanceof RuleBasedTypeConfiguration) { + return new DefaultRuleElementMatcher((RuleBasedTypeConfiguration) configuration); + } + return null; + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.classpath b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.classpath new file mode 100644 index 00000000000..b277a8ac870 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.project b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.project new file mode 100644 index 00000000000..96400fd6e2c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.ui + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f08be2b06c4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/META-INF/MANIFEST.MF b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..f02c36cc9fa --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/META-INF/MANIFEST.MF @@ -0,0 +1,17 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0", + org.eclipse.ui;bundle-version="3.100.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0";visibility:=reexport +Export-Package: org.eclipse.papyrus.infra.types.core.internal.ui;x-internal:=true, + org.eclipse.papyrus.infra.types.core.internal.ui.handlers;x-internal:=true +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Localization: plugin +Bundle-Name: %pluginName +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.ui;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/about.html b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/build.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/build.properties new file mode 100644 index 00000000000..96f31b73bf1 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/build.properties @@ -0,0 +1,13 @@ +# +#Mon Sep 12 09:29:52 CEST 2011 +output..=bin/ +bin.includes = .,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html,\ + icons/ +jars.compile.order=. +src.includes = about.html +source.. = src/ +bin..=bin/ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/configuration.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/configuration.gif new file mode 100644 index 00000000000..0b1be97b8cf Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/configuration.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/error.gif b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/error.gif new file mode 100644 index 00000000000..9b048d60532 Binary files /dev/null and b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/icons/error.gif differ diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.properties new file mode 100644 index 00000000000..25f1ec0ac97 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.properties @@ -0,0 +1,15 @@ +############################################################################### +# Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# CEA LIST - initial API and implementation +# Christian W. Damus - bug 485220 +# +############################################################################### +pluginName=Papyrus Element Types Configurations UI +providerName=Eclipse Modeling Project diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.xml new file mode 100644 index 00000000000..1db7acb4dd0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/plugin.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/pom.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/pom.xml new file mode 100644 index 00000000000..6bc9f5afdd9 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-types + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.types.ui + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/LogUtil.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/LogUtil.java new file mode 100644 index 00000000000..e7fbfe9be21 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/LogUtil.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2016 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.core.internal.ui; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.papyrus.infra.core.log.LogHelper; + +/** + * Logging utility. + */ +public class LogUtil extends LogHelper { + + public static final LogHelper LOG = new LogUtil(); + + /** + * Not instantiable by clients. + */ + private LogUtil() { + super(Platform.getBundle("org.eclipse.papyrus.infra.types.ui")); //$NON-NLS-1$ + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java new file mode 100644 index 00000000000..cc9894ce750 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/DeployElementTypeSetConfigurationHandler.java @@ -0,0 +1,155 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.internal.ui.handlers; + +import java.util.Iterator; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.commands.IHandler; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.MultiStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.core.runtime.jobs.IJobChangeEvent; +import org.eclipse.core.runtime.jobs.Job; +import org.eclipse.core.runtime.jobs.JobChangeAdapter; +import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.internal.ui.providers.ClientContextContentProvider; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.dialogs.ListSelectionDialog; +import org.eclipse.ui.handlers.HandlerUtil; +import org.eclipse.ui.statushandlers.StatusManager; + +/** + * Handler to deploy new configuration + */ +public class DeployElementTypeSetConfigurationHandler extends AbstractHandler implements IHandler { + + protected IClientContext clientContext; + + + /** + * {@inheritDoc} + */ + public Object execute(ExecutionEvent event) throws ExecutionException { + ISelection currentSelection = HandlerUtil.getCurrentSelection(event); + if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { + return null; + } + final IStructuredSelection selection = (IStructuredSelection) currentSelection; + final Shell activeShell = HandlerUtil.getActiveShell(event); + + activeShell.getDisplay().syncExec(new Runnable() { + + @Override + public void run() { + ListSelectionDialog dialog = new ListSelectionDialog(activeShell, ClientContextManager.getInstance().getClientContexts(), new ClientContextContentProvider(), new LabelProvider(), + "Select the clientContext you want to register the elementtypesconfiguration to"); + dialog.open(); + Object[] clientContextSelection = dialog.getResult(); + + + + if (clientContextSelection != null) { + if (clientContextSelection.length > 0) { + Object selectedClientContext = clientContextSelection[0]; + if (selectedClientContext instanceof IClientContext) { + clientContext = (IClientContext) selectedClientContext; + } + } + } + } + }); + + if (clientContext == null) { + StatusManager.getManager().handle(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The elementTypes configuration has not been loaded"), StatusManager.SHOW); + } + + Job job = new Job("Deploy elementTypes set configuration") { + + @Override + protected IStatus run(IProgressMonitor monitor) { + monitor.beginTask("Deploying selected configurations", selection.size()); + return doExecute(selection, monitor); + } + }; + job.addJobChangeListener(new JobChangeAdapter() { + + @Override + public void done(final IJobChangeEvent event) { + activeShell.getDisplay().asyncExec(new Runnable() { + + public void run() { + if (event.getResult().isOK()) { + MessageDialog.openInformation(activeShell, "Success", event.getResult().getMessage()); + } else if (event.getResult().getSeverity() < IStatus.ERROR) { // Errors are already logged + StatusManager.getManager().handle(event.getResult(), StatusManager.SHOW); + } + } + }); + } + }); + job.setUser(true); + job.schedule(); + return null; + } + + + protected IStatus doExecute(IStructuredSelection selection, IProgressMonitor monitor) { + Iterator selectionIterator = selection.iterator(); + MultiStatus result = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "The elementTypes configuration has been successfully deployed and activated", null); + while (selectionIterator.hasNext()) { + Object selectedElement = selectionIterator.next(); + if (selectedElement instanceof IAdaptable) { + IFile selectedFile = (IFile) ((IAdaptable) selectedElement).getAdapter(IFile.class); + if (selectedFile == null) { + monitor.worked(1); + result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a file")); + continue; + } + String fileName = selectedFile.getFullPath().removeFileExtension().lastSegment(); + monitor.subTask("Deploy " + fileName); + + + + ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(clientContext.getId(), selectedFile.getFullPath().toString()); + + monitor.worked(1); + + result.add(new Status(IStatus.OK, Activator.PLUGIN_ID, "The elementTypes configuration has been loaded")); + } + } + if (result.getChildren().length == 1) { + return result.getChildren()[0]; + } else { // Merge the result and specify an appropriate message based on the result + if (result.isOK()) { + return result; + } else { + MultiStatus actualResult = new MultiStatus(Activator.PLUGIN_ID, result.getCode(), "Some errors occurred during the deployment", result.getException()); + actualResult.merge(result); + return actualResult; + } + } + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java new file mode 100644 index 00000000000..b2c6358b0ca --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/handlers/UndeployElementTypeSetConfigurationHandler.java @@ -0,0 +1,174 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core.internal.ui.handlers; + +import java.util.Iterator; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.MultiStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.core.runtime.jobs.IJobChangeEvent; +import org.eclipse.core.runtime.jobs.Job; +import org.eclipse.core.runtime.jobs.JobChangeAdapter; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EObject; +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.gmf.runtime.emf.type.core.ClientContextManager; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.core.Activator; +import org.eclipse.papyrus.infra.types.core.internal.ui.providers.ClientContextContentProvider; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.dialogs.ListSelectionDialog; +import org.eclipse.ui.handlers.HandlerUtil; +import org.eclipse.ui.statushandlers.StatusManager; + + +public class UndeployElementTypeSetConfigurationHandler extends AbstractHandler { + + protected IClientContext clientContext; + + /** + * {@inheritDoc} + */ + public Object execute(ExecutionEvent event) throws ExecutionException { + ISelection currentSelection = HandlerUtil.getCurrentSelection(event); + if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) { + return null; + } + final IStructuredSelection selection = (IStructuredSelection) currentSelection; + final Shell activeShell = HandlerUtil.getActiveShell(event); + + activeShell.getDisplay().syncExec(new Runnable() { + + @Override + public void run() { + ListSelectionDialog dialog = new ListSelectionDialog(activeShell, ClientContextManager.getInstance().getClientContexts(), new ClientContextContentProvider(), new LabelProvider(), + "Select the clientContext you want to register the elementtypesconfiguration to"); + dialog.open(); + Object[] clientContextSelection = dialog.getResult(); + + if (clientContextSelection != null) { + if (clientContextSelection.length > 0) { + Object selectedClientContext = clientContextSelection[0]; + if (selectedClientContext instanceof IClientContext) { + clientContext = (IClientContext) selectedClientContext; + } + } + } + } + }); + + if (clientContext == null) { + StatusManager.getManager().handle(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The elementTypes configuration has not been undeployed"), StatusManager.SHOW); + } + + + Job job = new Job("Undeploy elementTypes set configuration") { + + @Override + protected IStatus run(IProgressMonitor monitor) { + monitor.beginTask("Undeploying selected configurations", selection.size()); + return doExecute(selection, monitor, activeShell); + } + }; + job.addJobChangeListener(new JobChangeAdapter() { + + @Override + public void done(final IJobChangeEvent event) { + activeShell.getDisplay().asyncExec(new Runnable() { + + public void run() { + if (event.getResult().isOK()) { + MessageDialog.openInformation(activeShell, "Success", event.getResult().getMessage()); + } else if (event.getResult().getSeverity() < IStatus.ERROR) { // Errors are already logged + StatusManager.getManager().handle(event.getResult(), StatusManager.SHOW); + } + } + }); + } + }); + job.setUser(true); + job.schedule(); + return null; + } + + protected IStatus doExecute(IStructuredSelection selection, IProgressMonitor monitor, Shell shell) { + Iterator selectionIterator = selection.iterator(); + MultiStatus result = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "The elementTypes configuration has been successfully undeployed", null); + while (selectionIterator.hasNext()) { + Object selectedElement = selectionIterator.next(); + if (selectedElement instanceof IAdaptable) { + IFile selectedFile = (IFile) ((IAdaptable) selectedElement).getAdapter(IFile.class); + if (selectedFile == null) { + monitor.worked(1); + result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a file")); + continue; + } + String fileName = selectedFile.getFullPath().removeFileExtension().lastSegment(); + monitor.subTask("Deploy " + fileName); + URI emfURI = null; + if (selectedFile.getFullPath() != null) { + emfURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true); + } else if (selectedFile.getRawLocation() != null) { + emfURI = URI.createFileURI(selectedFile.getRawLocation().toString()); + } + if (emfURI == null) { + monitor.worked(1); + result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a valid configuration file")); + continue; + } + monitor.subTask("Reset elementTypes Registry"); + + ResourceSet resourceSet = new ResourceSetImpl(); + Resource resource = resourceSet.getResource(emfURI, true); + + EObject root = resource.getContents().get(0); + if (!(root instanceof ElementTypeSetConfiguration)) { + result.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "The selected element is not a valid configuration file")); + continue; + } + + ElementTypeSetConfigurationRegistry.getInstance().unload(clientContext.getId(), ((ElementTypeSetConfiguration) root).getIdentifier()); + + monitor.worked(1); + + result.add(new Status(IStatus.OK, Activator.PLUGIN_ID, "The elementTypes configuration has been successfully undeployed")); + } + } + if (result.getChildren().length == 1) { + return result.getChildren()[0]; + } else { // Merge the result and specify an appropriate message based on the result + if (result.isOK()) { + return result; + } else { + MultiStatus actualResult = new MultiStatus(Activator.PLUGIN_ID, result.getCode(), "Some errors occurred during the undeployment", result.getException()); + actualResult.merge(result); + return actualResult; + } + } + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/providers/ClientContextContentProvider.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/providers/ClientContextContentProvider.java new file mode 100644 index 00000000000..3c6273d52e8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.ui/src/org/eclipse/papyrus/infra/types/core/internal/ui/providers/ClientContextContentProvider.java @@ -0,0 +1,35 @@ +package org.eclipse.papyrus.infra.types.core.internal.ui.providers; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.jface.viewers.IStructuredContentProvider; +import org.eclipse.jface.viewers.Viewer; + +public class ClientContextContentProvider implements IStructuredContentProvider { + + @Override + public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { + + } + + @Override + public void dispose() { + } + + @Override + public Object[] getElements(Object inputElement) { + List result = new ArrayList(); + if (inputElement instanceof Collection) { + for (Object item : (Collection) inputElement) { + if (item instanceof IClientContext) { + result.add((IClientContext) item); + } + } + + } + return result.toArray(); + } +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/.classpath b/plugins/infra/types/org.eclipse.papyrus.infra.types/.classpath new file mode 100644 index 00000000000..8dd013afc8b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/.project b/plugins/infra/types/org.eclipse.papyrus.infra.types/.project new file mode 100644 index 00000000000..5f09a69ab49 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/.settings/org.eclipse.core.resources.prefs b/plugins/infra/types/org.eclipse.papyrus.infra.types/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..8f50c3bae44 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding//model/ElementElementTypesConfigurations.ecore=UTF-8 diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/META-INF/MANIFEST.MF b/plugins/infra/types/org.eclipse.papyrus.infra.types/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..4e885cb3f8a --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/META-INF/MANIFEST.MF @@ -0,0 +1,17 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.papyrus.infra.types;singleton:=true +Bundle-Version: 1.2.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: org.eclipse.papyrus.infra.types, + org.eclipse.papyrus.infra.types.impl, + org.eclipse.papyrus.infra.types.resource, + org.eclipse.papyrus.infra.types.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/about.html b/plugins/infra/types/org.eclipse.papyrus.infra.types/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/build.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types/build.properties new file mode 100644 index 00000000000..254f8b3e4c0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/build.properties @@ -0,0 +1,21 @@ +# 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: +# CEA LIST - Initial API and implementation + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/,\ + src-gen/ +output.. = bin/ + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore b/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore new file mode 100644 index 00000000000..828a45c9596 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore_diagram b/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore_diagram new file mode 100644 index 00000000000..c1344ecba16 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore_diagram @@ -0,0 +1,555 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel b/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel new file mode 100644 index 00000000000..415da032cf6 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel @@ -0,0 +1,84 @@ + + + ElementTypesConfigurations.ecore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.properties b/plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.properties new file mode 100644 index 00000000000..8c14283d007 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.properties @@ -0,0 +1,16 @@ +# 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: +# CEA LIST - Initial API and implementation + +pluginName = Papyrus elementTypes configurations Model +providerName = Eclipse Modeling Project + +_UI_TypesConfigurations_content_type = TypesConfigurations File +_UI_ElementTypesConfigurations_content_type = ElementTypesConfigurations File diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.xml new file mode 100644 index 00000000000..f7e32708f06 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/plugin.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/pom.xml b/plugins/infra/types/org.eclipse.papyrus.infra.types/pom.xml new file mode 100644 index 00000000000..eebc22ebb9f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus.infra-types + org.eclipse.papyrus + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.infra.types + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractAdviceBindingConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractAdviceBindingConfiguration.java new file mode 100644 index 00000000000..6809a81ffb5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractAdviceBindingConfiguration.java @@ -0,0 +1,143 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + + +/** + * + * A representation of the model object 'Abstract Advice Binding Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getTarget Target}
  • + *
  • {@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getContainerConfiguration Container Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getMatcherConfiguration Matcher Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getInheritance Inheritance}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractAdviceBindingConfiguration() + * @model abstract="true" + * @generated + */ +public interface AbstractAdviceBindingConfiguration extends AdviceConfiguration, IdentifiedConfiguration { + /** + * Returns the value of the 'Target' reference. + * + *

+ * If the meaning of the 'Target' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Target' reference. + * @see #setTarget(ElementTypeConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractAdviceBindingConfiguration_Target() + * @model required="true" + * @generated + */ + ElementTypeConfiguration getTarget(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getTarget Target}' reference. + * + * + * @param value the new value of the 'Target' reference. + * @see #getTarget() + * @generated + */ + void setTarget(ElementTypeConfiguration value); + + /** + * Returns the value of the 'Container Configuration' containment reference. + * + *

+ * If the meaning of the 'Container Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Configuration' containment reference. + * @see #setContainerConfiguration(ContainerConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractAdviceBindingConfiguration_ContainerConfiguration() + * @model containment="true" + * @generated + */ + ContainerConfiguration getContainerConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getContainerConfiguration Container Configuration}' containment reference. + * + * + * @param value the new value of the 'Container Configuration' containment reference. + * @see #getContainerConfiguration() + * @generated + */ + void setContainerConfiguration(ContainerConfiguration value); + + /** + * Returns the value of the 'Matcher Configuration' containment reference. + * + *

+ * If the meaning of the 'Matcher Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Matcher Configuration' containment reference. + * @see #setMatcherConfiguration(AbstractMatcherConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractAdviceBindingConfiguration_MatcherConfiguration() + * @model containment="true" + * @generated + */ + AbstractMatcherConfiguration getMatcherConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getMatcherConfiguration Matcher Configuration}' containment reference. + * + * + * @param value the new value of the 'Matcher Configuration' containment reference. + * @see #getMatcherConfiguration() + * @generated + */ + void setMatcherConfiguration(AbstractMatcherConfiguration value); + + /** + * Returns the value of the 'Inheritance' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.infra.types.InheritanceKind}. + * + *

+ * If the meaning of the 'Inheritance' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Inheritance' attribute. + * @see org.eclipse.papyrus.infra.types.InheritanceKind + * @see #setInheritance(InheritanceKind) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractAdviceBindingConfiguration_Inheritance() + * @model required="true" + * @generated + */ + InheritanceKind getInheritance(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getInheritance Inheritance}' attribute. + * + * + * @param value the new value of the 'Inheritance' attribute. + * @see org.eclipse.papyrus.infra.types.InheritanceKind + * @see #getInheritance() + * @generated + */ + void setInheritance(InheritanceKind value); + +} // AbstractAdviceBindingConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractEditHelperAdviceConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractEditHelperAdviceConfiguration.java new file mode 100644 index 00000000000..65ecb9a0cea --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractEditHelperAdviceConfiguration.java @@ -0,0 +1,61 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + + +/** + * + * A representation of the model object 'Abstract Edit Helper Advice Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration#getTarget Target}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractEditHelperAdviceConfiguration() + * @model abstract="true" + * @generated + */ +public interface AbstractEditHelperAdviceConfiguration extends AdviceConfiguration { + /** + * Returns the value of the 'Target' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}'. + * + *

+ * If the meaning of the 'Target' container reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Target' container reference. + * @see #setTarget(SpecializationTypeConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractEditHelperAdviceConfiguration_Target() + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration + * @model opposite="editHelperAdviceConfiguration" required="true" transient="false" + * @generated + */ + SpecializationTypeConfiguration getTarget(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration#getTarget Target}' container reference. + * + * + * @param value the new value of the 'Target' container reference. + * @see #getTarget() + * @generated + */ + void setTarget(SpecializationTypeConfiguration value); + +} // AbstractEditHelperAdviceConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractMatcherConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractMatcherConfiguration.java new file mode 100644 index 00000000000..dc12be8df02 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AbstractMatcherConfiguration.java @@ -0,0 +1,28 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Abstract Matcher Configuration'. + * + * + * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAbstractMatcherConfiguration() + * @model abstract="true" + * @generated + */ +public interface AbstractMatcherConfiguration extends EObject { +} // AbstractMatcherConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceBindingConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceBindingConfiguration.java new file mode 100644 index 00000000000..5075aab461f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceBindingConfiguration.java @@ -0,0 +1,59 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + + +/** + * + * A representation of the model object 'Advice Binding Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAdviceBindingConfiguration() + * @model + * @generated + */ +public interface AdviceBindingConfiguration extends AbstractAdviceBindingConfiguration { + /** + * Returns the value of the 'Edit Helper Advice Class Name' attribute. + * + *

+ * If the meaning of the 'Edit Helper Advice Class Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Edit Helper Advice Class Name' attribute. + * @see #setEditHelperAdviceClassName(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAdviceBindingConfiguration_EditHelperAdviceClassName() + * @model required="true" + * @generated + */ + String getEditHelperAdviceClassName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}' attribute. + * + * + * @param value the new value of the 'Edit Helper Advice Class Name' attribute. + * @see #getEditHelperAdviceClassName() + * @generated + */ + void setEditHelperAdviceClassName(String value); + +} // AdviceBindingConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceConfiguration.java new file mode 100644 index 00000000000..edcfa3ea072 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/AdviceConfiguration.java @@ -0,0 +1,67 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Advice Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.AdviceConfiguration#getBefore Before}
  • + *
  • {@link org.eclipse.papyrus.infra.types.AdviceConfiguration#getAfter After}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAdviceConfiguration() + * @model abstract="true" + * @generated + */ +public interface AdviceConfiguration extends ConfigurationElement { + /** + * Returns the value of the 'Before' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Before' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Before' attribute list. + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAdviceConfiguration_Before() + * @model + * @generated + */ + EList getBefore(); + + /** + * Returns the value of the 'After' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'After' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'After' attribute list. + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getAdviceConfiguration_After() + * @model + * @generated + */ + EList getAfter(); + +} // AdviceConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ConfigurationElement.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ConfigurationElement.java new file mode 100644 index 00000000000..7a3c8c03bbe --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ConfigurationElement.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Configuration Element'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.ConfigurationElement#getDescription Description}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getConfigurationElement() + * @model abstract="true" + * @generated + */ +public interface ConfigurationElement extends EObject { + /** + * Returns the value of the 'Description' attribute. + * + *

+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getConfigurationElement_Description() + * @model + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.ConfigurationElement#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + +} // ConfigurationElement diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ContainerConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ContainerConfiguration.java new file mode 100644 index 00000000000..18b45b949e0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ContainerConfiguration.java @@ -0,0 +1,80 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EReference; + +/** + * + * A representation of the model object 'Container Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.ContainerConfiguration#getContainerMatcherConfiguration Container Matcher Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.ContainerConfiguration#getEContainmentFeatures EContainment Features}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getContainerConfiguration() + * @model + * @generated + */ +public interface ContainerConfiguration extends EObject { + /** + * Returns the value of the 'Container Matcher Configuration' containment reference. + * + *

+ * If the meaning of the 'Container Matcher Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Matcher Configuration' containment reference. + * @see #setContainerMatcherConfiguration(AbstractMatcherConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getContainerConfiguration_ContainerMatcherConfiguration() + * @model containment="true" + * @generated + */ + AbstractMatcherConfiguration getContainerMatcherConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.ContainerConfiguration#getContainerMatcherConfiguration Container Matcher Configuration}' containment reference. + * + * + * @param value the new value of the 'Container Matcher Configuration' containment reference. + * @see #getContainerMatcherConfiguration() + * @generated + */ + void setContainerMatcherConfiguration(AbstractMatcherConfiguration value); + + /** + * Returns the value of the 'EContainment Features' reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.EReference}. + * + *

+ * If the meaning of the 'EContainment Features' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'EContainment Features' reference list. + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getContainerConfiguration_EContainmentFeatures() + * @model + * @generated + */ + EList getEContainmentFeatures(); + +} // ContainerConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/EditHelperAdviceConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/EditHelperAdviceConfiguration.java new file mode 100644 index 00000000000..4fe968c863e --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/EditHelperAdviceConfiguration.java @@ -0,0 +1,59 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + + +/** + * + * A representation of the model object 'Edit Helper Advice Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getEditHelperAdviceConfiguration() + * @model + * @generated + */ +public interface EditHelperAdviceConfiguration extends AbstractEditHelperAdviceConfiguration { + /** + * Returns the value of the 'Edit Helper Advice Class Name' attribute. + * + *

+ * If the meaning of the 'Edit Helper Advice Class Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Edit Helper Advice Class Name' attribute. + * @see #setEditHelperAdviceClassName(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getEditHelperAdviceConfiguration_EditHelperAdviceClassName() + * @model required="true" + * @generated + */ + String getEditHelperAdviceClassName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}' attribute. + * + * + * @param value the new value of the 'Edit Helper Advice Class Name' attribute. + * @see #getEditHelperAdviceClassName() + * @generated + */ + void setEditHelperAdviceClassName(String value); + +} // EditHelperAdviceConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeConfiguration.java new file mode 100644 index 00000000000..f8cc2aff66b --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeConfiguration.java @@ -0,0 +1,115 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + + +/** + * + * A representation of the model object 'Element Type Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getHint Hint}
  • + *
  • {@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getIconEntry Icon Entry}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeConfiguration() + * @model abstract="true" + * @generated + */ +public interface ElementTypeConfiguration extends ConfigurationElement, IdentifiedConfiguration, NamedConfiguration { + /** + * Returns the value of the 'Hint' attribute. + * The default value is "". + * + *

+ * If the meaning of the 'Hint' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Hint' attribute. + * @see #setHint(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeConfiguration_Hint() + * @model default="" + * @generated + */ + String getHint(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getHint Hint}' attribute. + * + * + * @param value the new value of the 'Hint' attribute. + * @see #getHint() + * @generated + */ + void setHint(String value); + + /** + * Returns the value of the 'Kind' attribute. + * The default value is "org.eclipse.gmf.runtime.emf.type.core.IHintedType". + * + *

+ * If the meaning of the 'Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Kind' attribute. + * @see #setKind(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeConfiguration_Kind() + * @model default="org.eclipse.gmf.runtime.emf.type.core.IHintedType" + * @generated + */ + String getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see #getKind() + * @generated + */ + void setKind(String value); + + /** + * Returns the value of the 'Icon Entry' containment reference. + * + *

+ * If the meaning of the 'Icon Entry' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Icon Entry' containment reference. + * @see #setIconEntry(IconEntry) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeConfiguration_IconEntry() + * @model containment="true" + * @generated + */ + IconEntry getIconEntry(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getIconEntry Icon Entry}' containment reference. + * + * + * @param value the new value of the 'Icon Entry' containment reference. + * @see #getIconEntry() + * @generated + */ + void setIconEntry(IconEntry value); + +} // ElementTypeConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeSetConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeSetConfiguration.java new file mode 100644 index 00000000000..32cc941fcf2 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypeSetConfiguration.java @@ -0,0 +1,94 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Element Type Set Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getElementTypeConfigurations Element Type Configurations}
  • + *
  • {@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getAdviceBindingsConfigurations Advice Bindings Configurations}
  • + *
  • {@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getMetamodelNsURI Metamodel Ns URI}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeSetConfiguration() + * @model + * @generated + */ +public interface ElementTypeSetConfiguration extends ConfigurationElement, IdentifiedConfiguration, NamedConfiguration { + /** + * Returns the value of the 'Element Type Configurations' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration}. + * + *

+ * If the meaning of the 'Element Type Configurations' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Element Type Configurations' containment reference list. + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeSetConfiguration_ElementTypeConfigurations() + * @model containment="true" + * @generated + */ + EList getElementTypeConfigurations(); + + /** + * Returns the value of the 'Advice Bindings Configurations' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration}. + * + *

+ * If the meaning of the 'Advice Bindings Configurations' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Advice Bindings Configurations' containment reference list. + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeSetConfiguration_AdviceBindingsConfigurations() + * @model containment="true" + * @generated + */ + EList getAdviceBindingsConfigurations(); + + /** + * Returns the value of the 'Metamodel Ns URI' attribute. + * + *

+ * If the meaning of the 'Metamodel Ns URI' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Metamodel Ns URI' attribute. + * @see #setMetamodelNsURI(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getElementTypeSetConfiguration_MetamodelNsURI() + * @model required="true" + * @generated + */ + String getMetamodelNsURI(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getMetamodelNsURI Metamodel Ns URI}' attribute. + * + * + * @param value the new value of the 'Metamodel Ns URI' attribute. + * @see #getMetamodelNsURI() + * @generated + */ + void setMetamodelNsURI(String value); + +} // ElementTypeSetConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsFactory.java new file mode 100644 index 00000000000..f0363fad6a4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsFactory.java @@ -0,0 +1,115 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage + * @generated + */ +public interface ElementTypesConfigurationsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ElementTypesConfigurationsFactory eINSTANCE = org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsFactoryImpl.init(); + + /** + * Returns a new object of class 'Element Type Set Configuration'. + * + * + * @return a new object of class 'Element Type Set Configuration'. + * @generated + */ + ElementTypeSetConfiguration createElementTypeSetConfiguration(); + + /** + * Returns a new object of class 'Icon Entry'. + * + * + * @return a new object of class 'Icon Entry'. + * @generated + */ + IconEntry createIconEntry(); + + /** + * Returns a new object of class 'Specialization Type Configuration'. + * + * + * @return a new object of class 'Specialization Type Configuration'. + * @generated + */ + SpecializationTypeConfiguration createSpecializationTypeConfiguration(); + + /** + * Returns a new object of class 'Container Configuration'. + * + * + * @return a new object of class 'Container Configuration'. + * @generated + */ + ContainerConfiguration createContainerConfiguration(); + + /** + * Returns a new object of class 'Metamodel Type Configuration'. + * + * + * @return a new object of class 'Metamodel Type Configuration'. + * @generated + */ + MetamodelTypeConfiguration createMetamodelTypeConfiguration(); + + /** + * Returns a new object of class 'Edit Helper Advice Configuration'. + * + * + * @return a new object of class 'Edit Helper Advice Configuration'. + * @generated + */ + EditHelperAdviceConfiguration createEditHelperAdviceConfiguration(); + + /** + * Returns a new object of class 'Advice Binding Configuration'. + * + * + * @return a new object of class 'Advice Binding Configuration'. + * @generated + */ + AdviceBindingConfiguration createAdviceBindingConfiguration(); + + /** + * Returns a new object of class 'Matcher Configuration'. + * + * + * @return a new object of class 'Matcher Configuration'. + * @generated + */ + MatcherConfiguration createMatcherConfiguration(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ElementTypesConfigurationsPackage getElementTypesConfigurationsPackage(); + +} //ElementTypesConfigurationsFactory diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsPackage.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsPackage.java new file mode 100644 index 00000000000..52fef5f47b0 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/ElementTypesConfigurationsPackage.java @@ -0,0 +1,2056 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +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; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory + * @model kind="package" + * @generated + */ +public interface ElementTypesConfigurationsPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "types"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "elementtypesconfigurations"; + + /** + * The package content type ID. + * + * + * @generated + */ + String eCONTENT_TYPE = "org.eclipse.papyrus.infra.types"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + ElementTypesConfigurationsPackage eINSTANCE = org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.ConfigurationElementImpl Configuration Element}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ConfigurationElementImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getConfigurationElement() + * @generated + */ + int CONFIGURATION_ELEMENT = 3; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int CONFIGURATION_ELEMENT__DESCRIPTION = 0; + + /** + * The number of structural features of the 'Configuration Element' class. + * + * + * @generated + * @ordered + */ + int CONFIGURATION_ELEMENT_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Configuration Element' class. + * + * + * @generated + * @ordered + */ + int CONFIGURATION_ELEMENT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl Element Type Set Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getElementTypeSetConfiguration() + * @generated + */ + int ELEMENT_TYPE_SET_CONFIGURATION = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION__DESCRIPTION = CONFIGURATION_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION__NAME = CONFIGURATION_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Element Type Configurations' containment reference list. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS = CONFIGURATION_ELEMENT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Advice Bindings Configurations' containment reference list. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS = CONFIGURATION_ELEMENT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Metamodel Ns URI' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI = CONFIGURATION_ELEMENT_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Element Type Set Configuration' class. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Element Type Set Configuration' class. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_SET_CONFIGURATION_OPERATION_COUNT = CONFIGURATION_ELEMENT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl Element Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getElementTypeConfiguration() + * @generated + */ + int ELEMENT_TYPE_CONFIGURATION = 1; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION__DESCRIPTION = CONFIGURATION_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION__IDENTIFIER = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION__NAME = CONFIGURATION_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Hint' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION__HINT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION__KIND = CONFIGURATION_ELEMENT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Icon Entry' containment reference. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY = CONFIGURATION_ELEMENT_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Element Type Configuration' class. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Element Type Configuration' class. + * + * + * @generated + * @ordered + */ + int ELEMENT_TYPE_CONFIGURATION_OPERATION_COUNT = CONFIGURATION_ELEMENT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.IconEntryImpl Icon Entry}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.IconEntryImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getIconEntry() + * @generated + */ + int ICON_ENTRY = 2; + + /** + * The feature id for the 'Icon Path' attribute. + * + * + * @generated + * @ordered + */ + int ICON_ENTRY__ICON_PATH = 0; + + /** + * The feature id for the 'Bundle Id' attribute. + * + * + * @generated + * @ordered + */ + int ICON_ENTRY__BUNDLE_ID = 1; + + /** + * The number of structural features of the 'Icon Entry' class. + * + * + * @generated + * @ordered + */ + int ICON_ENTRY_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Icon Entry' class. + * + * + * @generated + * @ordered + */ + int ICON_ENTRY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.AbstractMatcherConfigurationImpl Abstract Matcher Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AbstractMatcherConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAbstractMatcherConfiguration() + * @generated + */ + int ABSTRACT_MATCHER_CONFIGURATION = 4; + + /** + * The number of structural features of the 'Abstract Matcher Configuration' class. + * + * + * @generated + * @ordered + */ + int ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Abstract Matcher Configuration' class. + * + * + * @generated + * @ordered + */ + int ABSTRACT_MATCHER_CONFIGURATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.AdviceConfigurationImpl Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAdviceConfiguration() + * @generated + */ + int ADVICE_CONFIGURATION = 5; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int ADVICE_CONFIGURATION__DESCRIPTION = CONFIGURATION_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int ADVICE_CONFIGURATION__BEFORE = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int ADVICE_CONFIGURATION__AFTER = CONFIGURATION_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int ADVICE_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int ADVICE_CONFIGURATION_OPERATION_COUNT = CONFIGURATION_ELEMENT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl Abstract Advice Binding Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAbstractAdviceBindingConfiguration() + * @generated + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION = 6; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION = ADVICE_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE = ADVICE_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER = ADVICE_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER = ADVICE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Target' reference. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET = ADVICE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION = ADVICE_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION = ADVICE_CONFIGURATION_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Inheritance' attribute. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE = ADVICE_CONFIGURATION_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Abstract Advice Binding Configuration' class. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT = ADVICE_CONFIGURATION_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Abstract Advice Binding Configuration' class. + * + * + * @generated + * @ordered + */ + int ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT = ADVICE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl Specialization Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getSpecializationTypeConfiguration() + * @generated + */ + int SPECIALIZATION_TYPE_CONFIGURATION = 7; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__DESCRIPTION = ELEMENT_TYPE_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__IDENTIFIER = ELEMENT_TYPE_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__NAME = ELEMENT_TYPE_CONFIGURATION__NAME; + + /** + * The feature id for the 'Hint' attribute. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__HINT = ELEMENT_TYPE_CONFIGURATION__HINT; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__KIND = ELEMENT_TYPE_CONFIGURATION__KIND; + + /** + * The feature id for the 'Icon Entry' containment reference. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__ICON_ENTRY = ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY; + + /** + * The feature id for the 'Specialized Types ID' attribute list. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Edit Helper Advice Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Specialization Type Configuration' class. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION_FEATURE_COUNT = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 4; + + /** + * The number of operations of the 'Specialization Type Configuration' class. + * + * + * @generated + * @ordered + */ + int SPECIALIZATION_TYPE_CONFIGURATION_OPERATION_COUNT = ELEMENT_TYPE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.ContainerConfigurationImpl Container Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ContainerConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getContainerConfiguration() + * @generated + */ + int CONTAINER_CONFIGURATION = 8; + + /** + * The feature id for the 'Container Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION = 0; + + /** + * The feature id for the 'EContainment Features' reference list. + * + * + * @generated + * @ordered + */ + int CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES = 1; + + /** + * The number of structural features of the 'Container Configuration' class. + * + * + * @generated + * @ordered + */ + int CONTAINER_CONFIGURATION_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Container Configuration' class. + * + * + * @generated + * @ordered + */ + int CONTAINER_CONFIGURATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.MetamodelTypeConfigurationImpl Metamodel Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.MetamodelTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getMetamodelTypeConfiguration() + * @generated + */ + int METAMODEL_TYPE_CONFIGURATION = 9; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__DESCRIPTION = ELEMENT_TYPE_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__IDENTIFIER = ELEMENT_TYPE_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__NAME = ELEMENT_TYPE_CONFIGURATION__NAME; + + /** + * The feature id for the 'Hint' attribute. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__HINT = ELEMENT_TYPE_CONFIGURATION__HINT; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__KIND = ELEMENT_TYPE_CONFIGURATION__KIND; + + /** + * The feature id for the 'Icon Entry' containment reference. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__ICON_ENTRY = ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY; + + /** + * The feature id for the 'EClass' reference. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__ECLASS = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Edit Helper Class Name' attribute. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Metamodel Type Configuration' class. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION_FEATURE_COUNT = ELEMENT_TYPE_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Metamodel Type Configuration' class. + * + * + * @generated + * @ordered + */ + int METAMODEL_TYPE_CONFIGURATION_OPERATION_COUNT = ELEMENT_TYPE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.AbstractEditHelperAdviceConfigurationImpl Abstract Edit Helper Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AbstractEditHelperAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAbstractEditHelperAdviceConfiguration() + * @generated + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION = 10; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__DESCRIPTION = ADVICE_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__BEFORE = ADVICE_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__AFTER = ADVICE_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Target' container reference. + * + * + * @generated + * @ordered + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET = ADVICE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Abstract Edit Helper Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT = ADVICE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Abstract Edit Helper Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_OPERATION_COUNT = ADVICE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.EditHelperAdviceConfigurationImpl Edit Helper Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.EditHelperAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getEditHelperAdviceConfiguration() + * @generated + */ + int EDIT_HELPER_ADVICE_CONFIGURATION = 11; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION__DESCRIPTION = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION__BEFORE = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION__AFTER = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Target' container reference. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION__TARGET = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET; + + /** + * The feature id for the 'Edit Helper Advice Class Name' attribute. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Edit Helper Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Edit Helper Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int EDIT_HELPER_ADVICE_CONFIGURATION_OPERATION_COUNT = ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.AdviceBindingConfigurationImpl Advice Binding Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AdviceBindingConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAdviceBindingConfiguration() + * @generated + */ + int ADVICE_BINDING_CONFIGURATION = 12; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__DESCRIPTION = ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__BEFORE = ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__AFTER = ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__IDENTIFIER = ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Target' reference. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__TARGET = ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION = ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION = ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; + + /** + * The feature id for the 'Inheritance' attribute. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__INHERITANCE = ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; + + /** + * The feature id for the 'Edit Helper Advice Class Name' attribute. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Advice Binding Configuration' class. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT = ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Advice Binding Configuration' class. + * + * + * @generated + * @ordered + */ + int ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT = ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.impl.MatcherConfigurationImpl Matcher Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.MatcherConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getMatcherConfiguration() + * @generated + */ + int MATCHER_CONFIGURATION = 13; + + /** + * The feature id for the 'Matcher Class Name' attribute. + * + * + * @generated + * @ordered + */ + int MATCHER_CONFIGURATION__MATCHER_CLASS_NAME = ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Matcher Configuration' class. + * + * + * @generated + * @ordered + */ + int MATCHER_CONFIGURATION_FEATURE_COUNT = ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Matcher Configuration' class. + * + * + * @generated + * @ordered + */ + int MATCHER_CONFIGURATION_OPERATION_COUNT = ABSTRACT_MATCHER_CONFIGURATION_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getIdentifiedConfiguration() + * @generated + */ + int IDENTIFIED_CONFIGURATION = 14; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int IDENTIFIED_CONFIGURATION__IDENTIFIER = 0; + + /** + * The number of structural features of the 'Identified Configuration' class. + * + * + * @generated + * @ordered + */ + int IDENTIFIED_CONFIGURATION_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Identified Configuration' class. + * + * + * @generated + * @ordered + */ + int IDENTIFIED_CONFIGURATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.NamedConfiguration Named Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.NamedConfiguration + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getNamedConfiguration() + * @generated + */ + int NAMED_CONFIGURATION = 15; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int NAMED_CONFIGURATION__NAME = 0; + + /** + * The number of structural features of the 'Named Configuration' class. + * + * + * @generated + * @ordered + */ + int NAMED_CONFIGURATION_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Named Configuration' class. + * + * + * @generated + * @ordered + */ + int NAMED_CONFIGURATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.types.InheritanceKind Inheritance Kind}' enum. + * + * + * @see org.eclipse.papyrus.infra.types.InheritanceKind + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getInheritanceKind() + * @generated + */ + int INHERITANCE_KIND = 16; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration Element Type Set Configuration}'. + * + * + * @return the meta object for class 'Element Type Set Configuration'. + * @see org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration + * @generated + */ + EClass getElementTypeSetConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getElementTypeConfigurations Element Type Configurations}'. + * + * + * @return the meta object for the containment reference list 'Element Type Configurations'. + * @see org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getElementTypeConfigurations() + * @see #getElementTypeSetConfiguration() + * @generated + */ + EReference getElementTypeSetConfiguration_ElementTypeConfigurations(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getAdviceBindingsConfigurations Advice Bindings Configurations}'. + * + * + * @return the meta object for the containment reference list 'Advice Bindings Configurations'. + * @see org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getAdviceBindingsConfigurations() + * @see #getElementTypeSetConfiguration() + * @generated + */ + EReference getElementTypeSetConfiguration_AdviceBindingsConfigurations(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getMetamodelNsURI Metamodel Ns URI}'. + * + * + * @return the meta object for the attribute 'Metamodel Ns URI'. + * @see org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration#getMetamodelNsURI() + * @see #getElementTypeSetConfiguration() + * @generated + */ + EAttribute getElementTypeSetConfiguration_MetamodelNsURI(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration Element Type Configuration}'. + * + * + * @return the meta object for class 'Element Type Configuration'. + * @see org.eclipse.papyrus.infra.types.ElementTypeConfiguration + * @generated + */ + EClass getElementTypeConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getHint Hint}'. + * + * + * @return the meta object for the attribute 'Hint'. + * @see org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getHint() + * @see #getElementTypeConfiguration() + * @generated + */ + EAttribute getElementTypeConfiguration_Hint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getKind() + * @see #getElementTypeConfiguration() + * @generated + */ + EAttribute getElementTypeConfiguration_Kind(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getIconEntry Icon Entry}'. + * + * + * @return the meta object for the containment reference 'Icon Entry'. + * @see org.eclipse.papyrus.infra.types.ElementTypeConfiguration#getIconEntry() + * @see #getElementTypeConfiguration() + * @generated + */ + EReference getElementTypeConfiguration_IconEntry(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.IconEntry Icon Entry}'. + * + * + * @return the meta object for class 'Icon Entry'. + * @see org.eclipse.papyrus.infra.types.IconEntry + * @generated + */ + EClass getIconEntry(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.IconEntry#getIconPath Icon Path}'. + * + * + * @return the meta object for the attribute 'Icon Path'. + * @see org.eclipse.papyrus.infra.types.IconEntry#getIconPath() + * @see #getIconEntry() + * @generated + */ + EAttribute getIconEntry_IconPath(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.IconEntry#getBundleId Bundle Id}'. + * + * + * @return the meta object for the attribute 'Bundle Id'. + * @see org.eclipse.papyrus.infra.types.IconEntry#getBundleId() + * @see #getIconEntry() + * @generated + */ + EAttribute getIconEntry_BundleId(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * + * @return the meta object for class 'Configuration Element'. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + EClass getConfigurationElement(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.ConfigurationElement#getDescription Description}'. + * + * + * @return the meta object for the attribute 'Description'. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement#getDescription() + * @see #getConfigurationElement() + * @generated + */ + EAttribute getConfigurationElement_Description(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration Abstract Matcher Configuration}'. + * + * + * @return the meta object for class 'Abstract Matcher Configuration'. + * @see org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration + * @generated + */ + EClass getAbstractMatcherConfiguration(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration Advice Configuration}'. + * + * + * @return the meta object for class 'Advice Configuration'. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration + * @generated + */ + EClass getAdviceConfiguration(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration#getBefore Before}'. + * + * + * @return the meta object for the attribute list 'Before'. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration#getBefore() + * @see #getAdviceConfiguration() + * @generated + */ + EAttribute getAdviceConfiguration_Before(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration#getAfter After}'. + * + * + * @return the meta object for the attribute list 'After'. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration#getAfter() + * @see #getAdviceConfiguration() + * @generated + */ + EAttribute getAdviceConfiguration_After(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. + * + * + * @return the meta object for class 'Abstract Advice Binding Configuration'. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration + * @generated + */ + EClass getAbstractAdviceBindingConfiguration(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getTarget Target}'. + * + * + * @return the meta object for the reference 'Target'. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getTarget() + * @see #getAbstractAdviceBindingConfiguration() + * @generated + */ + EReference getAbstractAdviceBindingConfiguration_Target(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getContainerConfiguration Container Configuration}'. + * + * + * @return the meta object for the containment reference 'Container Configuration'. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getContainerConfiguration() + * @see #getAbstractAdviceBindingConfiguration() + * @generated + */ + EReference getAbstractAdviceBindingConfiguration_ContainerConfiguration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getMatcherConfiguration Matcher Configuration}'. + * + * + * @return the meta object for the containment reference 'Matcher Configuration'. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getMatcherConfiguration() + * @see #getAbstractAdviceBindingConfiguration() + * @generated + */ + EReference getAbstractAdviceBindingConfiguration_MatcherConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getInheritance Inheritance}'. + * + * + * @return the meta object for the attribute 'Inheritance'. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration#getInheritance() + * @see #getAbstractAdviceBindingConfiguration() + * @generated + */ + EAttribute getAbstractAdviceBindingConfiguration_Inheritance(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration Specialization Type Configuration}'. + * + * + * @return the meta object for class 'Specialization Type Configuration'. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration + * @generated + */ + EClass getSpecializationTypeConfiguration(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getSpecializedTypesID Specialized Types ID}'. + * + * + * @return the meta object for the attribute list 'Specialized Types ID'. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getSpecializedTypesID() + * @see #getSpecializationTypeConfiguration() + * @generated + */ + EAttribute getSpecializationTypeConfiguration_SpecializedTypesID(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}'. + * + * + * @return the meta object for the containment reference 'Edit Helper Advice Configuration'. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration() + * @see #getSpecializationTypeConfiguration() + * @generated + */ + EReference getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getContainerConfiguration Container Configuration}'. + * + * + * @return the meta object for the containment reference 'Container Configuration'. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getContainerConfiguration() + * @see #getSpecializationTypeConfiguration() + * @generated + */ + EReference getSpecializationTypeConfiguration_ContainerConfiguration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getMatcherConfiguration Matcher Configuration}'. + * + * + * @return the meta object for the containment reference 'Matcher Configuration'. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getMatcherConfiguration() + * @see #getSpecializationTypeConfiguration() + * @generated + */ + EReference getSpecializationTypeConfiguration_MatcherConfiguration(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.ContainerConfiguration Container Configuration}'. + * + * + * @return the meta object for class 'Container Configuration'. + * @see org.eclipse.papyrus.infra.types.ContainerConfiguration + * @generated + */ + EClass getContainerConfiguration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.types.ContainerConfiguration#getContainerMatcherConfiguration Container Matcher Configuration}'. + * + * + * @return the meta object for the containment reference 'Container Matcher Configuration'. + * @see org.eclipse.papyrus.infra.types.ContainerConfiguration#getContainerMatcherConfiguration() + * @see #getContainerConfiguration() + * @generated + */ + EReference getContainerConfiguration_ContainerMatcherConfiguration(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.types.ContainerConfiguration#getEContainmentFeatures EContainment Features}'. + * + * + * @return the meta object for the reference list 'EContainment Features'. + * @see org.eclipse.papyrus.infra.types.ContainerConfiguration#getEContainmentFeatures() + * @see #getContainerConfiguration() + * @generated + */ + EReference getContainerConfiguration_EContainmentFeatures(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration Metamodel Type Configuration}'. + * + * + * @return the meta object for class 'Metamodel Type Configuration'. + * @see org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration + * @generated + */ + EClass getMetamodelTypeConfiguration(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEClass EClass}'. + * + * + * @return the meta object for the reference 'EClass'. + * @see org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEClass() + * @see #getMetamodelTypeConfiguration() + * @generated + */ + EReference getMetamodelTypeConfiguration_EClass(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEditHelperClassName Edit Helper Class Name}'. + * + * + * @return the meta object for the attribute 'Edit Helper Class Name'. + * @see org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEditHelperClassName() + * @see #getMetamodelTypeConfiguration() + * @generated + */ + EAttribute getMetamodelTypeConfiguration_EditHelperClassName(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration Abstract Edit Helper Advice Configuration}'. + * + * + * @return the meta object for class 'Abstract Edit Helper Advice Configuration'. + * @see org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration + * @generated + */ + EClass getAbstractEditHelperAdviceConfiguration(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration#getTarget Target}'. + * + * + * @return the meta object for the container reference 'Target'. + * @see org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration#getTarget() + * @see #getAbstractEditHelperAdviceConfiguration() + * @generated + */ + EReference getAbstractEditHelperAdviceConfiguration_Target(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration Edit Helper Advice Configuration}'. + * + * + * @return the meta object for class 'Edit Helper Advice Configuration'. + * @see org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration + * @generated + */ + EClass getEditHelperAdviceConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}'. + * + * + * @return the meta object for the attribute 'Edit Helper Advice Class Name'. + * @see org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration#getEditHelperAdviceClassName() + * @see #getEditHelperAdviceConfiguration() + * @generated + */ + EAttribute getEditHelperAdviceConfiguration_EditHelperAdviceClassName(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration Advice Binding Configuration}'. + * + * + * @return the meta object for class 'Advice Binding Configuration'. + * @see org.eclipse.papyrus.infra.types.AdviceBindingConfiguration + * @generated + */ + EClass getAdviceBindingConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration#getEditHelperAdviceClassName Edit Helper Advice Class Name}'. + * + * + * @return the meta object for the attribute 'Edit Helper Advice Class Name'. + * @see org.eclipse.papyrus.infra.types.AdviceBindingConfiguration#getEditHelperAdviceClassName() + * @see #getAdviceBindingConfiguration() + * @generated + */ + EAttribute getAdviceBindingConfiguration_EditHelperAdviceClassName(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.MatcherConfiguration Matcher Configuration}'. + * + * + * @return the meta object for class 'Matcher Configuration'. + * @see org.eclipse.papyrus.infra.types.MatcherConfiguration + * @generated + */ + EClass getMatcherConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.MatcherConfiguration#getMatcherClassName Matcher Class Name}'. + * + * + * @return the meta object for the attribute 'Matcher Class Name'. + * @see org.eclipse.papyrus.infra.types.MatcherConfiguration#getMatcherClassName() + * @see #getMatcherConfiguration() + * @generated + */ + EAttribute getMatcherConfiguration_MatcherClassName(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * + * @return the meta object for class 'Identified Configuration'. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + EClass getIdentifiedConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration#getIdentifier Identifier}'. + * + * + * @return the meta object for the attribute 'Identifier'. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration#getIdentifier() + * @see #getIdentifiedConfiguration() + * @generated + */ + EAttribute getIdentifiedConfiguration_Identifier(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.types.NamedConfiguration Named Configuration}'. + * + * + * @return the meta object for class 'Named Configuration'. + * @see org.eclipse.papyrus.infra.types.NamedConfiguration + * @generated + */ + EClass getNamedConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.types.NamedConfiguration#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.papyrus.infra.types.NamedConfiguration#getName() + * @see #getNamedConfiguration() + * @generated + */ + EAttribute getNamedConfiguration_Name(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.types.InheritanceKind Inheritance Kind}'. + * + * + * @return the meta object for enum 'Inheritance Kind'. + * @see org.eclipse.papyrus.infra.types.InheritanceKind + * @generated + */ + EEnum getInheritanceKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + ElementTypesConfigurationsFactory getElementTypesConfigurationsFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl Element Type Set Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getElementTypeSetConfiguration() + * @generated + */ + EClass ELEMENT_TYPE_SET_CONFIGURATION = eINSTANCE.getElementTypeSetConfiguration(); + + /** + * The meta object literal for the 'Element Type Configurations' containment reference list feature. + * + * + * @generated + */ + EReference ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS = eINSTANCE.getElementTypeSetConfiguration_ElementTypeConfigurations(); + + /** + * The meta object literal for the 'Advice Bindings Configurations' containment reference list feature. + * + * + * @generated + */ + EReference ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS = eINSTANCE.getElementTypeSetConfiguration_AdviceBindingsConfigurations(); + + /** + * The meta object literal for the 'Metamodel Ns URI' attribute feature. + * + * + * @generated + */ + EAttribute ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI = eINSTANCE.getElementTypeSetConfiguration_MetamodelNsURI(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl Element Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getElementTypeConfiguration() + * @generated + */ + EClass ELEMENT_TYPE_CONFIGURATION = eINSTANCE.getElementTypeConfiguration(); + + /** + * The meta object literal for the 'Hint' attribute feature. + * + * + * @generated + */ + EAttribute ELEMENT_TYPE_CONFIGURATION__HINT = eINSTANCE.getElementTypeConfiguration_Hint(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute ELEMENT_TYPE_CONFIGURATION__KIND = eINSTANCE.getElementTypeConfiguration_Kind(); + + /** + * The meta object literal for the 'Icon Entry' containment reference feature. + * + * + * @generated + */ + EReference ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY = eINSTANCE.getElementTypeConfiguration_IconEntry(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.IconEntryImpl Icon Entry}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.IconEntryImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getIconEntry() + * @generated + */ + EClass ICON_ENTRY = eINSTANCE.getIconEntry(); + + /** + * The meta object literal for the 'Icon Path' attribute feature. + * + * + * @generated + */ + EAttribute ICON_ENTRY__ICON_PATH = eINSTANCE.getIconEntry_IconPath(); + + /** + * The meta object literal for the 'Bundle Id' attribute feature. + * + * + * @generated + */ + EAttribute ICON_ENTRY__BUNDLE_ID = eINSTANCE.getIconEntry_BundleId(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.ConfigurationElementImpl Configuration Element}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ConfigurationElementImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getConfigurationElement() + * @generated + */ + EClass CONFIGURATION_ELEMENT = eINSTANCE.getConfigurationElement(); + + /** + * The meta object literal for the 'Description' attribute feature. + * + * + * @generated + */ + EAttribute CONFIGURATION_ELEMENT__DESCRIPTION = eINSTANCE.getConfigurationElement_Description(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.AbstractMatcherConfigurationImpl Abstract Matcher Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AbstractMatcherConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAbstractMatcherConfiguration() + * @generated + */ + EClass ABSTRACT_MATCHER_CONFIGURATION = eINSTANCE.getAbstractMatcherConfiguration(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.AdviceConfigurationImpl Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAdviceConfiguration() + * @generated + */ + EClass ADVICE_CONFIGURATION = eINSTANCE.getAdviceConfiguration(); + + /** + * The meta object literal for the 'Before' attribute list feature. + * + * + * @generated + */ + EAttribute ADVICE_CONFIGURATION__BEFORE = eINSTANCE.getAdviceConfiguration_Before(); + + /** + * The meta object literal for the 'After' attribute list feature. + * + * + * @generated + */ + EAttribute ADVICE_CONFIGURATION__AFTER = eINSTANCE.getAdviceConfiguration_After(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl Abstract Advice Binding Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAbstractAdviceBindingConfiguration() + * @generated + */ + EClass ABSTRACT_ADVICE_BINDING_CONFIGURATION = eINSTANCE.getAbstractAdviceBindingConfiguration(); + + /** + * The meta object literal for the 'Target' reference feature. + * + * + * @generated + */ + EReference ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET = eINSTANCE.getAbstractAdviceBindingConfiguration_Target(); + + /** + * The meta object literal for the 'Container Configuration' containment reference feature. + * + * + * @generated + */ + EReference ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION = eINSTANCE.getAbstractAdviceBindingConfiguration_ContainerConfiguration(); + + /** + * The meta object literal for the 'Matcher Configuration' containment reference feature. + * + * + * @generated + */ + EReference ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION = eINSTANCE.getAbstractAdviceBindingConfiguration_MatcherConfiguration(); + + /** + * The meta object literal for the 'Inheritance' attribute feature. + * + * + * @generated + */ + EAttribute ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE = eINSTANCE.getAbstractAdviceBindingConfiguration_Inheritance(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl Specialization Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getSpecializationTypeConfiguration() + * @generated + */ + EClass SPECIALIZATION_TYPE_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration(); + + /** + * The meta object literal for the 'Specialized Types ID' attribute list feature. + * + * + * @generated + */ + EAttribute SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID = eINSTANCE.getSpecializationTypeConfiguration_SpecializedTypesID(); + + /** + * The meta object literal for the 'Edit Helper Advice Configuration' containment reference feature. + * + * + * @generated + */ + EReference SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(); + + /** + * The meta object literal for the 'Container Configuration' containment reference feature. + * + * + * @generated + */ + EReference SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration_ContainerConfiguration(); + + /** + * The meta object literal for the 'Matcher Configuration' containment reference feature. + * + * + * @generated + */ + EReference SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION = eINSTANCE.getSpecializationTypeConfiguration_MatcherConfiguration(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.ContainerConfigurationImpl Container Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.ContainerConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getContainerConfiguration() + * @generated + */ + EClass CONTAINER_CONFIGURATION = eINSTANCE.getContainerConfiguration(); + + /** + * The meta object literal for the 'Container Matcher Configuration' containment reference feature. + * + * + * @generated + */ + EReference CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION = eINSTANCE.getContainerConfiguration_ContainerMatcherConfiguration(); + + /** + * The meta object literal for the 'EContainment Features' reference list feature. + * + * + * @generated + */ + EReference CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES = eINSTANCE.getContainerConfiguration_EContainmentFeatures(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.MetamodelTypeConfigurationImpl Metamodel Type Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.MetamodelTypeConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getMetamodelTypeConfiguration() + * @generated + */ + EClass METAMODEL_TYPE_CONFIGURATION = eINSTANCE.getMetamodelTypeConfiguration(); + + /** + * The meta object literal for the 'EClass' reference feature. + * + * + * @generated + */ + EReference METAMODEL_TYPE_CONFIGURATION__ECLASS = eINSTANCE.getMetamodelTypeConfiguration_EClass(); + + /** + * The meta object literal for the 'Edit Helper Class Name' attribute feature. + * + * + * @generated + */ + EAttribute METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME = eINSTANCE.getMetamodelTypeConfiguration_EditHelperClassName(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.AbstractEditHelperAdviceConfigurationImpl Abstract Edit Helper Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AbstractEditHelperAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAbstractEditHelperAdviceConfiguration() + * @generated + */ + EClass ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION = eINSTANCE.getAbstractEditHelperAdviceConfiguration(); + + /** + * The meta object literal for the 'Target' container reference feature. + * + * + * @generated + */ + EReference ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET = eINSTANCE.getAbstractEditHelperAdviceConfiguration_Target(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.EditHelperAdviceConfigurationImpl Edit Helper Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.EditHelperAdviceConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getEditHelperAdviceConfiguration() + * @generated + */ + EClass EDIT_HELPER_ADVICE_CONFIGURATION = eINSTANCE.getEditHelperAdviceConfiguration(); + + /** + * The meta object literal for the 'Edit Helper Advice Class Name' attribute feature. + * + * + * @generated + */ + EAttribute EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = eINSTANCE.getEditHelperAdviceConfiguration_EditHelperAdviceClassName(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.AdviceBindingConfigurationImpl Advice Binding Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.AdviceBindingConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getAdviceBindingConfiguration() + * @generated + */ + EClass ADVICE_BINDING_CONFIGURATION = eINSTANCE.getAdviceBindingConfiguration(); + + /** + * The meta object literal for the 'Edit Helper Advice Class Name' attribute feature. + * + * + * @generated + */ + EAttribute ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME = eINSTANCE.getAdviceBindingConfiguration_EditHelperAdviceClassName(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.impl.MatcherConfigurationImpl Matcher Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.impl.MatcherConfigurationImpl + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getMatcherConfiguration() + * @generated + */ + EClass MATCHER_CONFIGURATION = eINSTANCE.getMatcherConfiguration(); + + /** + * The meta object literal for the 'Matcher Class Name' attribute feature. + * + * + * @generated + */ + EAttribute MATCHER_CONFIGURATION__MATCHER_CLASS_NAME = eINSTANCE.getMatcherConfiguration_MatcherClassName(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getIdentifiedConfiguration() + * @generated + */ + EClass IDENTIFIED_CONFIGURATION = eINSTANCE.getIdentifiedConfiguration(); + + /** + * The meta object literal for the 'Identifier' attribute feature. + * + * + * @generated + */ + EAttribute IDENTIFIED_CONFIGURATION__IDENTIFIER = eINSTANCE.getIdentifiedConfiguration_Identifier(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.NamedConfiguration Named Configuration}' class. + * + * + * @see org.eclipse.papyrus.infra.types.NamedConfiguration + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getNamedConfiguration() + * @generated + */ + EClass NAMED_CONFIGURATION = eINSTANCE.getNamedConfiguration(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute NAMED_CONFIGURATION__NAME = eINSTANCE.getNamedConfiguration_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.types.InheritanceKind Inheritance Kind}' enum. + * + * + * @see org.eclipse.papyrus.infra.types.InheritanceKind + * @see org.eclipse.papyrus.infra.types.impl.ElementTypesConfigurationsPackageImpl#getInheritanceKind() + * @generated + */ + EEnum INHERITANCE_KIND = eINSTANCE.getInheritanceKind(); + + } + +} //ElementTypesConfigurationsPackage diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IconEntry.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IconEntry.java new file mode 100644 index 00000000000..042ee736012 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IconEntry.java @@ -0,0 +1,87 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Icon Entry'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.IconEntry#getIconPath Icon Path}
  • + *
  • {@link org.eclipse.papyrus.infra.types.IconEntry#getBundleId Bundle Id}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getIconEntry() + * @model + * @generated + */ +public interface IconEntry extends EObject { + /** + * Returns the value of the 'Icon Path' attribute. + * + *

+ * If the meaning of the 'Icon Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Icon Path' attribute. + * @see #setIconPath(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getIconEntry_IconPath() + * @model + * @generated + */ + String getIconPath(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.IconEntry#getIconPath Icon Path}' attribute. + * + * + * @param value the new value of the 'Icon Path' attribute. + * @see #getIconPath() + * @generated + */ + void setIconPath(String value); + + /** + * Returns the value of the 'Bundle Id' attribute. + * + *

+ * If the meaning of the 'Bundle Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Bundle Id' attribute. + * @see #setBundleId(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getIconEntry_BundleId() + * @model + * @generated + */ + String getBundleId(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.IconEntry#getBundleId Bundle Id}' attribute. + * + * + * @param value the new value of the 'Bundle Id' attribute. + * @see #getBundleId() + * @generated + */ + void setBundleId(String value); + +} // IconEntry diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IdentifiedConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IdentifiedConfiguration.java new file mode 100644 index 00000000000..d371ad41302 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/IdentifiedConfiguration.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Identified Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration#getIdentifier Identifier}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getIdentifiedConfiguration() + * @model interface="true" abstract="true" + * @generated + */ +public interface IdentifiedConfiguration extends EObject { + /** + * Returns the value of the 'Identifier' attribute. + * + *

+ * If the meaning of the 'Identifier' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Identifier' attribute. + * @see #setIdentifier(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getIdentifiedConfiguration_Identifier() + * @model required="true" + * @generated + */ + String getIdentifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration#getIdentifier Identifier}' attribute. + * + * + * @param value the new value of the 'Identifier' attribute. + * @see #getIdentifier() + * @generated + */ + void setIdentifier(String value); + +} // IdentifiedConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/InheritanceKind.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/InheritanceKind.java new file mode 100644 index 00000000000..2aec2cf1a44 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/InheritanceKind.java @@ -0,0 +1,224 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Inheritance Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getInheritanceKind() + * @model + * @generated + */ +public enum InheritanceKind implements Enumerator { + /** + * The 'None' literal object. + * + * + * @see #NONE_VALUE + * @generated + * @ordered + */ + NONE(0, "none", "none"), + + /** + * The 'All' literal object. + * + * + * @see #ALL_VALUE + * @generated + * @ordered + */ + ALL(1, "all", "all"); + + /** + * The 'None' literal value. + * + *

+ * If the meaning of 'None' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #NONE + * @model name="none" + * @generated + * @ordered + */ + public static final int NONE_VALUE = 0; + + /** + * The 'All' literal value. + * + *

+ * If the meaning of 'All' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #ALL + * @model name="all" + * @generated + * @ordered + */ + public static final int ALL_VALUE = 1; + + /** + * An array of all the 'Inheritance Kind' enumerators. + * + * + * @generated + */ + private static final InheritanceKind[] VALUES_ARRAY = + new InheritanceKind[] { + NONE, + ALL, + }; + + /** + * A public read-only list of all the 'Inheritance Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Inheritance Kind' literal with the specified literal value. + * + * + * @param literal the literal. + * @return the matching enumerator or null. + * @generated + */ + public static InheritanceKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + InheritanceKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Inheritance Kind' literal with the specified name. + * + * + * @param name the name. + * @return the matching enumerator or null. + * @generated + */ + public static InheritanceKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + InheritanceKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Inheritance Kind' literal with the specified integer value. + * + * + * @param value the integer value. + * @return the matching enumerator or null. + * @generated + */ + public static InheritanceKind get(int value) { + switch (value) { + case NONE_VALUE: return NONE; + case ALL_VALUE: return ALL; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private InheritanceKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //InheritanceKind diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MatcherConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MatcherConfiguration.java new file mode 100644 index 00000000000..2094bd380f3 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MatcherConfiguration.java @@ -0,0 +1,59 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + + +/** + * + * A representation of the model object 'Matcher Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.MatcherConfiguration#getMatcherClassName Matcher Class Name}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getMatcherConfiguration() + * @model + * @generated + */ +public interface MatcherConfiguration extends AbstractMatcherConfiguration { + /** + * Returns the value of the 'Matcher Class Name' attribute. + * + *

+ * If the meaning of the 'Matcher Class Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Matcher Class Name' attribute. + * @see #setMatcherClassName(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getMatcherConfiguration_MatcherClassName() + * @model required="true" + * @generated + */ + String getMatcherClassName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.MatcherConfiguration#getMatcherClassName Matcher Class Name}' attribute. + * + * + * @param value the new value of the 'Matcher Class Name' attribute. + * @see #getMatcherClassName() + * @generated + */ + void setMatcherClassName(String value); + +} // MatcherConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MetamodelTypeConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MetamodelTypeConfiguration.java new file mode 100644 index 00000000000..96e707eacbf --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/MetamodelTypeConfiguration.java @@ -0,0 +1,87 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * A representation of the model object 'Metamodel Type Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEClass EClass}
  • + *
  • {@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEditHelperClassName Edit Helper Class Name}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getMetamodelTypeConfiguration() + * @model + * @generated + */ +public interface MetamodelTypeConfiguration extends ElementTypeConfiguration { + /** + * Returns the value of the 'EClass' reference. + * + *

+ * If the meaning of the 'EClass' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'EClass' reference. + * @see #setEClass(EClass) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getMetamodelTypeConfiguration_EClass() + * @model + * @generated + */ + EClass getEClass(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEClass EClass}' reference. + * + * + * @param value the new value of the 'EClass' reference. + * @see #getEClass() + * @generated + */ + void setEClass(EClass value); + + /** + * Returns the value of the 'Edit Helper Class Name' attribute. + * + *

+ * If the meaning of the 'Edit Helper Class Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Edit Helper Class Name' attribute. + * @see #setEditHelperClassName(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getMetamodelTypeConfiguration_EditHelperClassName() + * @model + * @generated + */ + String getEditHelperClassName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration#getEditHelperClassName Edit Helper Class Name}' attribute. + * + * + * @param value the new value of the 'Edit Helper Class Name' attribute. + * @see #getEditHelperClassName() + * @generated + */ + void setEditHelperClassName(String value); + +} // MetamodelTypeConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/NamedConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/NamedConfiguration.java new file mode 100644 index 00000000000..4be63a904e4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/NamedConfiguration.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Named Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.NamedConfiguration#getName Name}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getNamedConfiguration() + * @model interface="true" abstract="true" + * @generated + */ +public interface NamedConfiguration extends EObject { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getNamedConfiguration_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.NamedConfiguration#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // NamedConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/SpecializationTypeConfiguration.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/SpecializationTypeConfiguration.java new file mode 100644 index 00000000000..c0203534569 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/SpecializationTypeConfiguration.java @@ -0,0 +1,133 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Specialization Type Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getSpecializedTypesID Specialized Types ID}
  • + *
  • {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getContainerConfiguration Container Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getMatcherConfiguration Matcher Configuration}
  • + *
+ * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getSpecializationTypeConfiguration() + * @model + * @generated + */ +public interface SpecializationTypeConfiguration extends ElementTypeConfiguration { + /** + * Returns the value of the 'Specialized Types ID' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Specialized Types ID' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Specialized Types ID' attribute list. + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getSpecializationTypeConfiguration_SpecializedTypesID() + * @model required="true" + * @generated + */ + EList getSpecializedTypesID(); + + /** + * Returns the value of the 'Edit Helper Advice Configuration' containment reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration#getTarget Target}'. + * + *

+ * If the meaning of the 'Edit Helper Advice Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Edit Helper Advice Configuration' containment reference. + * @see #setEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getSpecializationTypeConfiguration_EditHelperAdviceConfiguration() + * @see org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration#getTarget + * @model opposite="target" containment="true" + * @generated + */ + AbstractEditHelperAdviceConfiguration getEditHelperAdviceConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}' containment reference. + * + * + * @param value the new value of the 'Edit Helper Advice Configuration' containment reference. + * @see #getEditHelperAdviceConfiguration() + * @generated + */ + void setEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration value); + + /** + * Returns the value of the 'Container Configuration' containment reference. + * + *

+ * If the meaning of the 'Container Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Configuration' containment reference. + * @see #setContainerConfiguration(ContainerConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getSpecializationTypeConfiguration_ContainerConfiguration() + * @model containment="true" + * @generated + */ + ContainerConfiguration getContainerConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getContainerConfiguration Container Configuration}' containment reference. + * + * + * @param value the new value of the 'Container Configuration' containment reference. + * @see #getContainerConfiguration() + * @generated + */ + void setContainerConfiguration(ContainerConfiguration value); + + /** + * Returns the value of the 'Matcher Configuration' containment reference. + * + *

+ * If the meaning of the 'Matcher Configuration' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Matcher Configuration' containment reference. + * @see #setMatcherConfiguration(AbstractMatcherConfiguration) + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#getSpecializationTypeConfiguration_MatcherConfiguration() + * @model containment="true" + * @generated + */ + AbstractMatcherConfiguration getMatcherConfiguration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration#getMatcherConfiguration Matcher Configuration}' containment reference. + * + * + * @param value the new value of the 'Matcher Configuration' containment reference. + * @see #getMatcherConfiguration() + * @generated + */ + void setMatcherConfiguration(AbstractMatcherConfiguration value); + +} // SpecializationTypeConfiguration diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractAdviceBindingConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractAdviceBindingConfigurationImpl.java new file mode 100644 index 00000000000..ae8c40f72ff --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractAdviceBindingConfigurationImpl.java @@ -0,0 +1,469 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; +import org.eclipse.papyrus.infra.types.InheritanceKind; + +/** + * + * An implementation of the model object 'Abstract Advice Binding Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl#getTarget Target}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl#getContainerConfiguration Container Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl#getMatcherConfiguration Matcher Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl#getInheritance Inheritance}
  • + *
+ * + * @generated + */ +public abstract class AbstractAdviceBindingConfigurationImpl extends AdviceConfigurationImpl implements AbstractAdviceBindingConfiguration { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected String identifier = IDENTIFIER_EDEFAULT; + + /** + * The cached value of the '{@link #getTarget() Target}' reference. + * + * + * @see #getTarget() + * @generated + * @ordered + */ + protected ElementTypeConfiguration target; + + /** + * The cached value of the '{@link #getContainerConfiguration() Container Configuration}' containment reference. + * + * + * @see #getContainerConfiguration() + * @generated + * @ordered + */ + protected ContainerConfiguration containerConfiguration; + + /** + * The cached value of the '{@link #getMatcherConfiguration() Matcher Configuration}' containment reference. + * + * + * @see #getMatcherConfiguration() + * @generated + * @ordered + */ + protected AbstractMatcherConfiguration matcherConfiguration; + + /** + * The default value of the '{@link #getInheritance() Inheritance}' attribute. + * + * + * @see #getInheritance() + * @generated + * @ordered + */ + protected static final InheritanceKind INHERITANCE_EDEFAULT = InheritanceKind.NONE; + + /** + * The cached value of the '{@link #getInheritance() Inheritance}' attribute. + * + * + * @see #getInheritance() + * @generated + * @ordered + */ + protected InheritanceKind inheritance = INHERITANCE_EDEFAULT; + + /** + * + * + * @generated + */ + protected AbstractAdviceBindingConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER, oldIdentifier, identifier)); + } + + /** + * + * + * @generated + */ + public ElementTypeConfiguration getTarget() { + if (target != null && target.eIsProxy()) { + InternalEObject oldTarget = (InternalEObject)target; + target = (ElementTypeConfiguration)eResolveProxy(oldTarget); + if (target != oldTarget) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET, oldTarget, target)); + } + } + return target; + } + + /** + * + * + * @generated + */ + public ElementTypeConfiguration basicGetTarget() { + return target; + } + + /** + * + * + * @generated + */ + public void setTarget(ElementTypeConfiguration newTarget) { + ElementTypeConfiguration oldTarget = target; + target = newTarget; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET, oldTarget, target)); + } + + /** + * + * + * @generated + */ + public ContainerConfiguration getContainerConfiguration() { + return containerConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetContainerConfiguration(ContainerConfiguration newContainerConfiguration, NotificationChain msgs) { + ContainerConfiguration oldContainerConfiguration = containerConfiguration; + containerConfiguration = newContainerConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, oldContainerConfiguration, newContainerConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setContainerConfiguration(ContainerConfiguration newContainerConfiguration) { + if (newContainerConfiguration != containerConfiguration) { + NotificationChain msgs = null; + if (containerConfiguration != null) + msgs = ((InternalEObject)containerConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); + if (newContainerConfiguration != null) + msgs = ((InternalEObject)newContainerConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); + msgs = basicSetContainerConfiguration(newContainerConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION, newContainerConfiguration, newContainerConfiguration)); + } + + /** + * + * + * @generated + */ + public AbstractMatcherConfiguration getMatcherConfiguration() { + return matcherConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration, NotificationChain msgs) { + AbstractMatcherConfiguration oldMatcherConfiguration = matcherConfiguration; + matcherConfiguration = newMatcherConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, oldMatcherConfiguration, newMatcherConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration) { + if (newMatcherConfiguration != matcherConfiguration) { + NotificationChain msgs = null; + if (matcherConfiguration != null) + msgs = ((InternalEObject)matcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); + if (newMatcherConfiguration != null) + msgs = ((InternalEObject)newMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); + msgs = basicSetMatcherConfiguration(newMatcherConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, newMatcherConfiguration, newMatcherConfiguration)); + } + + /** + * + * + * @generated + */ + public InheritanceKind getInheritance() { + return inheritance; + } + + /** + * + * + * @generated + */ + public void setInheritance(InheritanceKind newInheritance) { + InheritanceKind oldInheritance = inheritance; + inheritance = newInheritance == null ? INHERITANCE_EDEFAULT : newInheritance; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE, oldInheritance, inheritance)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: + return basicSetContainerConfiguration(null, msgs); + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: + return basicSetMatcherConfiguration(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: + return getIdentifier(); + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: + if (resolve) return getTarget(); + return basicGetTarget(); + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: + return getContainerConfiguration(); + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: + return getMatcherConfiguration(); + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: + return getInheritance(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: + setIdentifier((String)newValue); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: + setTarget((ElementTypeConfiguration)newValue); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: + setContainerConfiguration((ContainerConfiguration)newValue); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: + setMatcherConfiguration((AbstractMatcherConfiguration)newValue); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: + setInheritance((InheritanceKind)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: + setTarget((ElementTypeConfiguration)null); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: + setContainerConfiguration((ContainerConfiguration)null); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: + setMatcherConfiguration((AbstractMatcherConfiguration)null); + return; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: + setInheritance(INHERITANCE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: + return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET: + return target != null; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION: + return containerConfiguration != null; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION: + return matcherConfiguration != null; + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE: + return inheritance != INHERITANCE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == IdentifiedConfiguration.class) { + switch (derivedFeatureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER: return ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == IdentifiedConfiguration.class) { + switch (baseFeatureID) { + case ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER: return ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (identifier: "); + result.append(identifier); + result.append(", inheritance: "); + result.append(inheritance); + result.append(')'); + return result.toString(); + } + +} //AbstractAdviceBindingConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractEditHelperAdviceConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractEditHelperAdviceConfigurationImpl.java new file mode 100644 index 00000000000..b7ca6a5ebb7 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractEditHelperAdviceConfigurationImpl.java @@ -0,0 +1,205 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EcoreUtil; + +import org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +/** + * + * An implementation of the model object 'Abstract Edit Helper Advice Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.AbstractEditHelperAdviceConfigurationImpl#getTarget Target}
  • + *
+ * + * @generated + */ +public abstract class AbstractEditHelperAdviceConfigurationImpl extends AdviceConfigurationImpl implements AbstractEditHelperAdviceConfiguration { + /** + * + * + * @generated + */ + protected AbstractEditHelperAdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public SpecializationTypeConfiguration getTarget() { + if (eContainerFeatureID() != ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET) return null; + return (SpecializationTypeConfiguration)eInternalContainer(); + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTarget(SpecializationTypeConfiguration newTarget, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject)newTarget, ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, msgs); + return msgs; + } + + /** + * + * + * @generated + */ + public void setTarget(SpecializationTypeConfiguration newTarget) { + if (newTarget != eInternalContainer() || (eContainerFeatureID() != ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET && newTarget != null)) { + if (EcoreUtil.isAncestor(this, newTarget)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newTarget != null) + msgs = ((InternalEObject)newTarget).eInverseAdd(this, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, SpecializationTypeConfiguration.class, msgs); + msgs = basicSetTarget(newTarget, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, newTarget, newTarget)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetTarget((SpecializationTypeConfiguration)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + return basicSetTarget(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + return eInternalContainer().eInverseRemove(this, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, SpecializationTypeConfiguration.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + return getTarget(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + setTarget((SpecializationTypeConfiguration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + setTarget((SpecializationTypeConfiguration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET: + return getTarget() != null; + } + return super.eIsSet(featureID); + } + +} //AbstractEditHelperAdviceConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractMatcherConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractMatcherConfigurationImpl.java new file mode 100644 index 00000000000..cc18910c073 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AbstractMatcherConfigurationImpl.java @@ -0,0 +1,49 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model object 'Abstract Matcher Configuration'. + * + * + * @generated + */ +public abstract class AbstractMatcherConfigurationImpl extends MinimalEObjectImpl.Container implements AbstractMatcherConfiguration { + /** + * + * + * @generated + */ + protected AbstractMatcherConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ABSTRACT_MATCHER_CONFIGURATION; + } + +} //AbstractMatcherConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceBindingConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceBindingConfigurationImpl.java new file mode 100644 index 00000000000..24cada778b5 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceBindingConfigurationImpl.java @@ -0,0 +1,172 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.AdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model object 'Advice Binding Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.AdviceBindingConfigurationImpl#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • + *
+ * + * @generated + */ +public class AdviceBindingConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements AdviceBindingConfiguration { + /** + * The default value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. + * + * + * @see #getEditHelperAdviceClassName() + * @generated + * @ordered + */ + protected static final String EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. + * + * + * @see #getEditHelperAdviceClassName() + * @generated + * @ordered + */ + protected String editHelperAdviceClassName = EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected AdviceBindingConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ADVICE_BINDING_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getEditHelperAdviceClassName() { + return editHelperAdviceClassName; + } + + /** + * + * + * @generated + */ + public void setEditHelperAdviceClassName(String newEditHelperAdviceClassName) { + String oldEditHelperAdviceClassName = editHelperAdviceClassName; + editHelperAdviceClassName = newEditHelperAdviceClassName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, oldEditHelperAdviceClassName, editHelperAdviceClassName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + return getEditHelperAdviceClassName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + setEditHelperAdviceClassName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + setEditHelperAdviceClassName(EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + return EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT == null ? editHelperAdviceClassName != null : !EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT.equals(editHelperAdviceClassName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (editHelperAdviceClassName: "); + result.append(editHelperAdviceClassName); + result.append(')'); + return result.toString(); + } + +} //AdviceBindingConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceConfigurationImpl.java new file mode 100644 index 00000000000..b03701761c6 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/AdviceConfigurationImpl.java @@ -0,0 +1,193 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model object 'Advice Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.AdviceConfigurationImpl#getBefore Before}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.AdviceConfigurationImpl#getAfter After}
  • + *
+ * + * @generated + */ +public abstract class AdviceConfigurationImpl extends ConfigurationElementImpl implements AdviceConfiguration { + /** + * The cached value of the '{@link #getBefore() Before}' attribute list. + * + * + * @see #getBefore() + * @generated + * @ordered + */ + protected EList before; + + /** + * The cached value of the '{@link #getAfter() After}' attribute list. + * + * + * @see #getAfter() + * @generated + * @ordered + */ + protected EList after; + + /** + * + * + * @generated + */ + protected AdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getBefore() { + if (before == null) { + before = new EDataTypeUniqueEList(String.class, this, ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__BEFORE); + } + return before; + } + + /** + * + * + * @generated + */ + public EList getAfter() { + if (after == null) { + after = new EDataTypeUniqueEList(String.class, this, ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__AFTER); + } + return after; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: + return getBefore(); + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__AFTER: + return getAfter(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: + getBefore().clear(); + getBefore().addAll((Collection)newValue); + return; + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__AFTER: + getAfter().clear(); + getAfter().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: + getBefore().clear(); + return; + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__AFTER: + getAfter().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__BEFORE: + return before != null && !before.isEmpty(); + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION__AFTER: + return after != null && !after.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @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(')'); + return result.toString(); + } + +} //AdviceConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ConfigurationElementImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ConfigurationElementImpl.java new file mode 100644 index 00000000000..e9c91d8f273 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ConfigurationElementImpl.java @@ -0,0 +1,173 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.MinimalEObjectImpl; + +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model object 'Configuration Element'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.ConfigurationElementImpl#getDescription Description}
  • + *
+ * + * @generated + */ +public abstract class ConfigurationElementImpl extends MinimalEObjectImpl.Container implements ConfigurationElement { + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * + * + * @generated + */ + protected ConfigurationElementImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.CONFIGURATION_ELEMENT; + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: + return getDescription(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: + setDescription((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //ConfigurationElementImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ContainerConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ContainerConfigurationImpl.java new file mode 100644 index 00000000000..a447d46c596 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ContainerConfigurationImpl.java @@ -0,0 +1,228 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.EReference; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model object 'Container Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.ContainerConfigurationImpl#getContainerMatcherConfiguration Container Matcher Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ContainerConfigurationImpl#getEContainmentFeatures EContainment Features}
  • + *
+ * + * @generated + */ +public class ContainerConfigurationImpl extends MinimalEObjectImpl.Container implements ContainerConfiguration { + /** + * The cached value of the '{@link #getContainerMatcherConfiguration() Container Matcher Configuration}' containment reference. + * + * + * @see #getContainerMatcherConfiguration() + * @generated + * @ordered + */ + protected AbstractMatcherConfiguration containerMatcherConfiguration; + + /** + * The cached value of the '{@link #getEContainmentFeatures() EContainment Features}' reference list. + * + * + * @see #getEContainmentFeatures() + * @generated + * @ordered + */ + protected EList eContainmentFeatures; + + /** + * + * + * @generated + */ + protected ContainerConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.CONTAINER_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public AbstractMatcherConfiguration getContainerMatcherConfiguration() { + return containerMatcherConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetContainerMatcherConfiguration(AbstractMatcherConfiguration newContainerMatcherConfiguration, NotificationChain msgs) { + AbstractMatcherConfiguration oldContainerMatcherConfiguration = containerMatcherConfiguration; + containerMatcherConfiguration = newContainerMatcherConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, oldContainerMatcherConfiguration, newContainerMatcherConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setContainerMatcherConfiguration(AbstractMatcherConfiguration newContainerMatcherConfiguration) { + if (newContainerMatcherConfiguration != containerMatcherConfiguration) { + NotificationChain msgs = null; + if (containerMatcherConfiguration != null) + msgs = ((InternalEObject)containerMatcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, null, msgs); + if (newContainerMatcherConfiguration != null) + msgs = ((InternalEObject)newContainerMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, null, msgs); + msgs = basicSetContainerMatcherConfiguration(newContainerMatcherConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, newContainerMatcherConfiguration, newContainerMatcherConfiguration)); + } + + /** + * + * + * @generated + */ + public EList getEContainmentFeatures() { + if (eContainmentFeatures == null) { + eContainmentFeatures = new EObjectResolvingEList(EReference.class, this, ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES); + } + return eContainmentFeatures; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: + return basicSetContainerMatcherConfiguration(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: + return getContainerMatcherConfiguration(); + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: + return getEContainmentFeatures(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: + setContainerMatcherConfiguration((AbstractMatcherConfiguration)newValue); + return; + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: + getEContainmentFeatures().clear(); + getEContainmentFeatures().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: + setContainerMatcherConfiguration((AbstractMatcherConfiguration)null); + return; + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: + getEContainmentFeatures().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION: + return containerMatcherConfiguration != null; + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES: + return eContainmentFeatures != null && !eContainmentFeatures.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ContainerConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/EditHelperAdviceConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/EditHelperAdviceConfigurationImpl.java new file mode 100644 index 00000000000..959c2bbda4d --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/EditHelperAdviceConfigurationImpl.java @@ -0,0 +1,172 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.EditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * An implementation of the model object 'Edit Helper Advice Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.EditHelperAdviceConfigurationImpl#getEditHelperAdviceClassName Edit Helper Advice Class Name}
  • + *
+ * + * @generated + */ +public class EditHelperAdviceConfigurationImpl extends AbstractEditHelperAdviceConfigurationImpl implements EditHelperAdviceConfiguration { + /** + * The default value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. + * + * + * @see #getEditHelperAdviceClassName() + * @generated + * @ordered + */ + protected static final String EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEditHelperAdviceClassName() Edit Helper Advice Class Name}' attribute. + * + * + * @see #getEditHelperAdviceClassName() + * @generated + * @ordered + */ + protected String editHelperAdviceClassName = EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected EditHelperAdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.EDIT_HELPER_ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getEditHelperAdviceClassName() { + return editHelperAdviceClassName; + } + + /** + * + * + * @generated + */ + public void setEditHelperAdviceClassName(String newEditHelperAdviceClassName) { + String oldEditHelperAdviceClassName = editHelperAdviceClassName; + editHelperAdviceClassName = newEditHelperAdviceClassName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME, oldEditHelperAdviceClassName, editHelperAdviceClassName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + return getEditHelperAdviceClassName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + setEditHelperAdviceClassName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + setEditHelperAdviceClassName(EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME: + return EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT == null ? editHelperAdviceClassName != null : !EDIT_HELPER_ADVICE_CLASS_NAME_EDEFAULT.equals(editHelperAdviceClassName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (editHelperAdviceClassName: "); + result.append(editHelperAdviceClassName); + result.append(')'); + return result.toString(); + } + +} //EditHelperAdviceConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeConfigurationImpl.java new file mode 100644 index 00000000000..447a47cb352 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeConfigurationImpl.java @@ -0,0 +1,461 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IconEntry; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; +import org.eclipse.papyrus.infra.types.NamedConfiguration; + +/** + * + * An implementation of the model object 'Element Type Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl#getName Name}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl#getHint Hint}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeConfigurationImpl#getIconEntry Icon Entry}
  • + *
+ * + * @generated + */ +public abstract class ElementTypeConfigurationImpl extends ConfigurationElementImpl implements ElementTypeConfiguration { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected String identifier = IDENTIFIER_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getHint() Hint}' attribute. + * + * + * @see #getHint() + * @generated + * @ordered + */ + protected static final String HINT_EDEFAULT = ""; + + /** + * The cached value of the '{@link #getHint() Hint}' attribute. + * + * + * @see #getHint() + * @generated + * @ordered + */ + protected String hint = HINT_EDEFAULT; + + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final String KIND_EDEFAULT = "org.eclipse.gmf.runtime.emf.type.core.IHintedType"; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected String kind = KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getIconEntry() Icon Entry}' containment reference. + * + * + * @see #getIconEntry() + * @generated + * @ordered + */ + protected IconEntry iconEntry; + + /** + * + * + * @generated + */ + protected ElementTypeConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER, oldIdentifier, identifier)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getHint() { + return hint; + } + + /** + * + * + * @generated + */ + public void setHint(String newHint) { + String oldHint = hint; + hint = newHint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT, oldHint, hint)); + } + + /** + * + * + * @generated + */ + public String getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(String newKind) { + String oldKind = kind; + kind = newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public IconEntry getIconEntry() { + return iconEntry; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetIconEntry(IconEntry newIconEntry, NotificationChain msgs) { + IconEntry oldIconEntry = iconEntry; + iconEntry = newIconEntry; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, oldIconEntry, newIconEntry); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setIconEntry(IconEntry newIconEntry) { + if (newIconEntry != iconEntry) { + NotificationChain msgs = null; + if (iconEntry != null) + msgs = ((InternalEObject)iconEntry).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, null, msgs); + if (newIconEntry != null) + msgs = ((InternalEObject)newIconEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, null, msgs); + msgs = basicSetIconEntry(newIconEntry, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY, newIconEntry, newIconEntry)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: + return basicSetIconEntry(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: + return getIdentifier(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: + return getName(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: + return getHint(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: + return getKind(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: + return getIconEntry(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: + setIdentifier((String)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: + setName((String)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: + setHint((String)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: + setKind((String)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: + setIconEntry((IconEntry)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: + setName(NAME_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: + setHint(HINT_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: + setKind(KIND_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: + setIconEntry((IconEntry)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: + return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__HINT: + return HINT_EDEFAULT == null ? hint != null : !HINT_EDEFAULT.equals(hint); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__KIND: + return KIND_EDEFAULT == null ? kind != null : !KIND_EDEFAULT.equals(kind); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY: + return iconEntry != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == IdentifiedConfiguration.class) { + switch (derivedFeatureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER: return ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER; + default: return -1; + } + } + if (baseClass == NamedConfiguration.class) { + switch (derivedFeatureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME: return ElementTypesConfigurationsPackage.NAMED_CONFIGURATION__NAME; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == IdentifiedConfiguration.class) { + switch (baseFeatureID) { + case ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER: return ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__IDENTIFIER; + default: return -1; + } + } + if (baseClass == NamedConfiguration.class) { + switch (baseFeatureID) { + case ElementTypesConfigurationsPackage.NAMED_CONFIGURATION__NAME: return ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION__NAME; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (identifier: "); + result.append(identifier); + result.append(", name: "); + result.append(name); + result.append(", hint: "); + result.append(hint); + result.append(", kind: "); + result.append(kind); + result.append(')'); + return result.toString(); + } + +} //ElementTypeConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeSetConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeSetConfigurationImpl.java new file mode 100644 index 00000000000..e358bb7f1ed --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypeSetConfigurationImpl.java @@ -0,0 +1,422 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; +import org.eclipse.papyrus.infra.types.NamedConfiguration; + +/** + * + * An implementation of the model object 'Element Type Set Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl#getName Name}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl#getElementTypeConfigurations Element Type Configurations}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl#getAdviceBindingsConfigurations Advice Bindings Configurations}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl#getMetamodelNsURI Metamodel Ns URI}
  • + *
+ * + * @generated + */ +public class ElementTypeSetConfigurationImpl extends ConfigurationElementImpl implements ElementTypeSetConfiguration { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected String identifier = IDENTIFIER_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getElementTypeConfigurations() Element Type Configurations}' containment reference list. + * + * + * @see #getElementTypeConfigurations() + * @generated + * @ordered + */ + protected EList elementTypeConfigurations; + + /** + * The cached value of the '{@link #getAdviceBindingsConfigurations() Advice Bindings Configurations}' containment reference list. + * + * + * @see #getAdviceBindingsConfigurations() + * @generated + * @ordered + */ + protected EList adviceBindingsConfigurations; + + /** + * The default value of the '{@link #getMetamodelNsURI() Metamodel Ns URI}' attribute. + * + * + * @see #getMetamodelNsURI() + * @generated + * @ordered + */ + protected static final String METAMODEL_NS_URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMetamodelNsURI() Metamodel Ns URI}' attribute. + * + * + * @see #getMetamodelNsURI() + * @generated + * @ordered + */ + protected String metamodelNsURI = METAMODEL_NS_URI_EDEFAULT; + + /** + * + * + * @generated + */ + protected ElementTypeSetConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER, oldIdentifier, identifier)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public EList getElementTypeConfigurations() { + if (elementTypeConfigurations == null) { + elementTypeConfigurations = new EObjectContainmentEList(ElementTypeConfiguration.class, this, ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS); + } + return elementTypeConfigurations; + } + + /** + * + * + * @generated + */ + public EList getAdviceBindingsConfigurations() { + if (adviceBindingsConfigurations == null) { + adviceBindingsConfigurations = new EObjectContainmentEList(AbstractAdviceBindingConfiguration.class, this, ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS); + } + return adviceBindingsConfigurations; + } + + /** + * + * + * @generated + */ + public String getMetamodelNsURI() { + return metamodelNsURI; + } + + /** + * + * + * @generated + */ + public void setMetamodelNsURI(String newMetamodelNsURI) { + String oldMetamodelNsURI = metamodelNsURI; + metamodelNsURI = newMetamodelNsURI; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI, oldMetamodelNsURI, metamodelNsURI)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: + return ((InternalEList)getElementTypeConfigurations()).basicRemove(otherEnd, msgs); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: + return ((InternalEList)getAdviceBindingsConfigurations()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: + return getIdentifier(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: + return getName(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: + return getElementTypeConfigurations(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: + return getAdviceBindingsConfigurations(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: + return getMetamodelNsURI(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: + setIdentifier((String)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: + setName((String)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: + getElementTypeConfigurations().clear(); + getElementTypeConfigurations().addAll((Collection)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: + getAdviceBindingsConfigurations().clear(); + getAdviceBindingsConfigurations().addAll((Collection)newValue); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: + setMetamodelNsURI((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: + setName(NAME_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: + getElementTypeConfigurations().clear(); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: + getAdviceBindingsConfigurations().clear(); + return; + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: + setMetamodelNsURI(METAMODEL_NS_URI_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: + return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS: + return elementTypeConfigurations != null && !elementTypeConfigurations.isEmpty(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS: + return adviceBindingsConfigurations != null && !adviceBindingsConfigurations.isEmpty(); + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI: + return METAMODEL_NS_URI_EDEFAULT == null ? metamodelNsURI != null : !METAMODEL_NS_URI_EDEFAULT.equals(metamodelNsURI); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == IdentifiedConfiguration.class) { + switch (derivedFeatureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER: return ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER; + default: return -1; + } + } + if (baseClass == NamedConfiguration.class) { + switch (derivedFeatureID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME: return ElementTypesConfigurationsPackage.NAMED_CONFIGURATION__NAME; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == IdentifiedConfiguration.class) { + switch (baseFeatureID) { + case ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION__IDENTIFIER: return ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__IDENTIFIER; + default: return -1; + } + } + if (baseClass == NamedConfiguration.class) { + switch (baseFeatureID) { + case ElementTypesConfigurationsPackage.NAMED_CONFIGURATION__NAME: return ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION__NAME; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (identifier: "); + result.append(identifier); + result.append(", name: "); + result.append(name); + result.append(", metamodelNsURI: "); + result.append(metamodelNsURI); + result.append(')'); + return result.toString(); + } + +} //ElementTypeSetConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsFactoryImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsFactoryImpl.java new file mode 100644 index 00000000000..81814b16b0f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsFactoryImpl.java @@ -0,0 +1,233 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class ElementTypesConfigurationsFactoryImpl extends EFactoryImpl implements ElementTypesConfigurationsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static ElementTypesConfigurationsFactory init() { + try { + ElementTypesConfigurationsFactory theElementTypesConfigurationsFactory = (ElementTypesConfigurationsFactory)EPackage.Registry.INSTANCE.getEFactory(ElementTypesConfigurationsPackage.eNS_URI); + if (theElementTypesConfigurationsFactory != null) { + return theElementTypesConfigurationsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ElementTypesConfigurationsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public ElementTypesConfigurationsFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION: return createElementTypeSetConfiguration(); + case ElementTypesConfigurationsPackage.ICON_ENTRY: return createIconEntry(); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION: return createSpecializationTypeConfiguration(); + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION: return createContainerConfiguration(); + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION: return createMetamodelTypeConfiguration(); + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION: return createEditHelperAdviceConfiguration(); + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION: return createAdviceBindingConfiguration(); + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION: return createMatcherConfiguration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case ElementTypesConfigurationsPackage.INHERITANCE_KIND: + return createInheritanceKindFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case ElementTypesConfigurationsPackage.INHERITANCE_KIND: + return convertInheritanceKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public ElementTypeSetConfiguration createElementTypeSetConfiguration() { + ElementTypeSetConfigurationImpl elementTypeSetConfiguration = new ElementTypeSetConfigurationImpl(); + return elementTypeSetConfiguration; + } + + /** + * + * + * @generated + */ + public IconEntry createIconEntry() { + IconEntryImpl iconEntry = new IconEntryImpl(); + return iconEntry; + } + + /** + * + * + * @generated + */ + public SpecializationTypeConfiguration createSpecializationTypeConfiguration() { + SpecializationTypeConfigurationImpl specializationTypeConfiguration = new SpecializationTypeConfigurationImpl(); + return specializationTypeConfiguration; + } + + /** + * + * + * @generated + */ + public ContainerConfiguration createContainerConfiguration() { + ContainerConfigurationImpl containerConfiguration = new ContainerConfigurationImpl(); + return containerConfiguration; + } + + /** + * + * + * @generated + */ + public MetamodelTypeConfiguration createMetamodelTypeConfiguration() { + MetamodelTypeConfigurationImpl metamodelTypeConfiguration = new MetamodelTypeConfigurationImpl(); + return metamodelTypeConfiguration; + } + + /** + * + * + * @generated + */ + public EditHelperAdviceConfiguration createEditHelperAdviceConfiguration() { + EditHelperAdviceConfigurationImpl editHelperAdviceConfiguration = new EditHelperAdviceConfigurationImpl(); + return editHelperAdviceConfiguration; + } + + /** + * + * + * @generated + */ + public AdviceBindingConfiguration createAdviceBindingConfiguration() { + AdviceBindingConfigurationImpl adviceBindingConfiguration = new AdviceBindingConfigurationImpl(); + return adviceBindingConfiguration; + } + + /** + * + * + * @generated + */ + public MatcherConfiguration createMatcherConfiguration() { + MatcherConfigurationImpl matcherConfiguration = new MatcherConfigurationImpl(); + return matcherConfiguration; + } + + /** + * + * + * @generated + */ + public InheritanceKind createInheritanceKindFromString(EDataType eDataType, String initialValue) { + InheritanceKind result = InheritanceKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertInheritanceKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ElementTypesConfigurationsPackage getElementTypesConfigurationsPackage() { + return (ElementTypesConfigurationsPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ElementTypesConfigurationsPackage getPackage() { + return ElementTypesConfigurationsPackage.eINSTANCE; + } + +} //ElementTypesConfigurationsFactoryImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsPackageImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsPackageImpl.java new file mode 100644 index 00000000000..98f75ed6fb8 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/ElementTypesConfigurationsPackageImpl.java @@ -0,0 +1,852 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.impl.EPackageImpl; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.AdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IconEntry; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; +import org.eclipse.papyrus.infra.types.InheritanceKind; +import org.eclipse.papyrus.infra.types.MatcherConfiguration; +import org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration; +import org.eclipse.papyrus.infra.types.NamedConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class ElementTypesConfigurationsPackageImpl extends EPackageImpl implements ElementTypesConfigurationsPackage { + /** + * + * + * @generated + */ + private EClass elementTypeSetConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass elementTypeConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass iconEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass configurationElementEClass = null; + + /** + * + * + * @generated + */ + private EClass abstractMatcherConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass adviceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass abstractAdviceBindingConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass specializationTypeConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass containerConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass metamodelTypeConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass abstractEditHelperAdviceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass editHelperAdviceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass adviceBindingConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass matcherConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass identifiedConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass namedConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EEnum inheritanceKindEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage#eNS_URI + * @see #init() + * @generated + */ + private ElementTypesConfigurationsPackageImpl() { + super(eNS_URI, ElementTypesConfigurationsFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link ElementTypesConfigurationsPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ElementTypesConfigurationsPackage init() { + if (isInited) return (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + + // Obtain or create and register package + ElementTypesConfigurationsPackageImpl theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ElementTypesConfigurationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ElementTypesConfigurationsPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theElementTypesConfigurationsPackage.createPackageContents(); + + // Initialize created meta-data + theElementTypesConfigurationsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theElementTypesConfigurationsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ElementTypesConfigurationsPackage.eNS_URI, theElementTypesConfigurationsPackage); + return theElementTypesConfigurationsPackage; + } + + /** + * + * + * @generated + */ + public EClass getElementTypeSetConfiguration() { + return elementTypeSetConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getElementTypeSetConfiguration_ElementTypeConfigurations() { + return (EReference)elementTypeSetConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getElementTypeSetConfiguration_AdviceBindingsConfigurations() { + return (EReference)elementTypeSetConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getElementTypeSetConfiguration_MetamodelNsURI() { + return (EAttribute)elementTypeSetConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getElementTypeConfiguration() { + return elementTypeConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getElementTypeConfiguration_Hint() { + return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getElementTypeConfiguration_Kind() { + return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getElementTypeConfiguration_IconEntry() { + return (EReference)elementTypeConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getIconEntry() { + return iconEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getIconEntry_IconPath() { + return (EAttribute)iconEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getIconEntry_BundleId() { + return (EAttribute)iconEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getConfigurationElement() { + return configurationElementEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getConfigurationElement_Description() { + return (EAttribute)configurationElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getAbstractMatcherConfiguration() { + return abstractMatcherConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EClass getAdviceConfiguration() { + return adviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAdviceConfiguration_Before() { + return (EAttribute)adviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAdviceConfiguration_After() { + return (EAttribute)adviceConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAbstractAdviceBindingConfiguration() { + return abstractAdviceBindingConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getAbstractAdviceBindingConfiguration_Target() { + return (EReference)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAbstractAdviceBindingConfiguration_ContainerConfiguration() { + return (EReference)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getAbstractAdviceBindingConfiguration_MatcherConfiguration() { + return (EReference)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getAbstractAdviceBindingConfiguration_Inheritance() { + return (EAttribute)abstractAdviceBindingConfigurationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSpecializationTypeConfiguration() { + return specializationTypeConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSpecializationTypeConfiguration_SpecializedTypesID() { + return (EAttribute)specializationTypeConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSpecializationTypeConfiguration_EditHelperAdviceConfiguration() { + return (EReference)specializationTypeConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSpecializationTypeConfiguration_ContainerConfiguration() { + return (EReference)specializationTypeConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSpecializationTypeConfiguration_MatcherConfiguration() { + return (EReference)specializationTypeConfigurationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getContainerConfiguration() { + return containerConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getContainerConfiguration_ContainerMatcherConfiguration() { + return (EReference)containerConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getContainerConfiguration_EContainmentFeatures() { + return (EReference)containerConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getMetamodelTypeConfiguration() { + return metamodelTypeConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getMetamodelTypeConfiguration_EClass() { + return (EReference)metamodelTypeConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMetamodelTypeConfiguration_EditHelperClassName() { + return (EAttribute)metamodelTypeConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAbstractEditHelperAdviceConfiguration() { + return abstractEditHelperAdviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getAbstractEditHelperAdviceConfiguration_Target() { + return (EReference)abstractEditHelperAdviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getEditHelperAdviceConfiguration() { + return editHelperAdviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getEditHelperAdviceConfiguration_EditHelperAdviceClassName() { + return (EAttribute)editHelperAdviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getAdviceBindingConfiguration() { + return adviceBindingConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAdviceBindingConfiguration_EditHelperAdviceClassName() { + return (EAttribute)adviceBindingConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMatcherConfiguration() { + return matcherConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMatcherConfiguration_MatcherClassName() { + return (EAttribute)matcherConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getIdentifiedConfiguration() { + return identifiedConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getIdentifiedConfiguration_Identifier() { + return (EAttribute)identifiedConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getNamedConfiguration() { + return namedConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNamedConfiguration_Name() { + return (EAttribute)namedConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getInheritanceKind() { + return inheritanceKindEEnum; + } + + /** + * + * + * @generated + */ + public ElementTypesConfigurationsFactory getElementTypesConfigurationsFactory() { + return (ElementTypesConfigurationsFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + elementTypeSetConfigurationEClass = createEClass(ELEMENT_TYPE_SET_CONFIGURATION); + createEReference(elementTypeSetConfigurationEClass, ELEMENT_TYPE_SET_CONFIGURATION__ELEMENT_TYPE_CONFIGURATIONS); + createEReference(elementTypeSetConfigurationEClass, ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS); + createEAttribute(elementTypeSetConfigurationEClass, ELEMENT_TYPE_SET_CONFIGURATION__METAMODEL_NS_URI); + + elementTypeConfigurationEClass = createEClass(ELEMENT_TYPE_CONFIGURATION); + createEAttribute(elementTypeConfigurationEClass, ELEMENT_TYPE_CONFIGURATION__HINT); + createEAttribute(elementTypeConfigurationEClass, ELEMENT_TYPE_CONFIGURATION__KIND); + createEReference(elementTypeConfigurationEClass, ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY); + + iconEntryEClass = createEClass(ICON_ENTRY); + createEAttribute(iconEntryEClass, ICON_ENTRY__ICON_PATH); + createEAttribute(iconEntryEClass, ICON_ENTRY__BUNDLE_ID); + + configurationElementEClass = createEClass(CONFIGURATION_ELEMENT); + createEAttribute(configurationElementEClass, CONFIGURATION_ELEMENT__DESCRIPTION); + + abstractMatcherConfigurationEClass = createEClass(ABSTRACT_MATCHER_CONFIGURATION); + + adviceConfigurationEClass = createEClass(ADVICE_CONFIGURATION); + createEAttribute(adviceConfigurationEClass, ADVICE_CONFIGURATION__BEFORE); + createEAttribute(adviceConfigurationEClass, ADVICE_CONFIGURATION__AFTER); + + abstractAdviceBindingConfigurationEClass = createEClass(ABSTRACT_ADVICE_BINDING_CONFIGURATION); + createEReference(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET); + createEReference(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION); + createEReference(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION); + createEAttribute(abstractAdviceBindingConfigurationEClass, ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE); + + specializationTypeConfigurationEClass = createEClass(SPECIALIZATION_TYPE_CONFIGURATION); + createEAttribute(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID); + createEReference(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION); + createEReference(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION); + createEReference(specializationTypeConfigurationEClass, SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION); + + containerConfigurationEClass = createEClass(CONTAINER_CONFIGURATION); + createEReference(containerConfigurationEClass, CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION); + createEReference(containerConfigurationEClass, CONTAINER_CONFIGURATION__ECONTAINMENT_FEATURES); + + metamodelTypeConfigurationEClass = createEClass(METAMODEL_TYPE_CONFIGURATION); + createEReference(metamodelTypeConfigurationEClass, METAMODEL_TYPE_CONFIGURATION__ECLASS); + createEAttribute(metamodelTypeConfigurationEClass, METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME); + + abstractEditHelperAdviceConfigurationEClass = createEClass(ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION); + createEReference(abstractEditHelperAdviceConfigurationEClass, ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET); + + editHelperAdviceConfigurationEClass = createEClass(EDIT_HELPER_ADVICE_CONFIGURATION); + createEAttribute(editHelperAdviceConfigurationEClass, EDIT_HELPER_ADVICE_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME); + + adviceBindingConfigurationEClass = createEClass(ADVICE_BINDING_CONFIGURATION); + createEAttribute(adviceBindingConfigurationEClass, ADVICE_BINDING_CONFIGURATION__EDIT_HELPER_ADVICE_CLASS_NAME); + + matcherConfigurationEClass = createEClass(MATCHER_CONFIGURATION); + createEAttribute(matcherConfigurationEClass, MATCHER_CONFIGURATION__MATCHER_CLASS_NAME); + + identifiedConfigurationEClass = createEClass(IDENTIFIED_CONFIGURATION); + createEAttribute(identifiedConfigurationEClass, IDENTIFIED_CONFIGURATION__IDENTIFIER); + + namedConfigurationEClass = createEClass(NAMED_CONFIGURATION); + createEAttribute(namedConfigurationEClass, NAMED_CONFIGURATION__NAME); + + // Create enums + inheritanceKindEEnum = createEEnum(INHERITANCE_KIND); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + elementTypeSetConfigurationEClass.getESuperTypes().add(this.getConfigurationElement()); + elementTypeSetConfigurationEClass.getESuperTypes().add(this.getIdentifiedConfiguration()); + elementTypeSetConfigurationEClass.getESuperTypes().add(this.getNamedConfiguration()); + elementTypeConfigurationEClass.getESuperTypes().add(this.getConfigurationElement()); + elementTypeConfigurationEClass.getESuperTypes().add(this.getIdentifiedConfiguration()); + elementTypeConfigurationEClass.getESuperTypes().add(this.getNamedConfiguration()); + adviceConfigurationEClass.getESuperTypes().add(this.getConfigurationElement()); + abstractAdviceBindingConfigurationEClass.getESuperTypes().add(this.getAdviceConfiguration()); + abstractAdviceBindingConfigurationEClass.getESuperTypes().add(this.getIdentifiedConfiguration()); + specializationTypeConfigurationEClass.getESuperTypes().add(this.getElementTypeConfiguration()); + metamodelTypeConfigurationEClass.getESuperTypes().add(this.getElementTypeConfiguration()); + abstractEditHelperAdviceConfigurationEClass.getESuperTypes().add(this.getAdviceConfiguration()); + editHelperAdviceConfigurationEClass.getESuperTypes().add(this.getAbstractEditHelperAdviceConfiguration()); + adviceBindingConfigurationEClass.getESuperTypes().add(this.getAbstractAdviceBindingConfiguration()); + matcherConfigurationEClass.getESuperTypes().add(this.getAbstractMatcherConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(elementTypeSetConfigurationEClass, ElementTypeSetConfiguration.class, "ElementTypeSetConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getElementTypeSetConfiguration_ElementTypeConfigurations(), this.getElementTypeConfiguration(), null, "elementTypeConfigurations", null, 0, -1, ElementTypeSetConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getElementTypeSetConfiguration_AdviceBindingsConfigurations(), this.getAbstractAdviceBindingConfiguration(), null, "adviceBindingsConfigurations", null, 0, -1, ElementTypeSetConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getElementTypeSetConfiguration_MetamodelNsURI(), ecorePackage.getEString(), "metamodelNsURI", null, 1, 1, ElementTypeSetConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(elementTypeConfigurationEClass, ElementTypeConfiguration.class, "ElementTypeConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getElementTypeConfiguration_Hint(), ecorePackage.getEString(), "hint", "", 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getElementTypeConfiguration_Kind(), ecorePackage.getEString(), "kind", "org.eclipse.gmf.runtime.emf.type.core.IHintedType", 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getElementTypeConfiguration_IconEntry(), this.getIconEntry(), null, "iconEntry", null, 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(iconEntryEClass, IconEntry.class, "IconEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIconEntry_IconPath(), ecorePackage.getEString(), "iconPath", null, 0, 1, IconEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getIconEntry_BundleId(), ecorePackage.getEString(), "bundleId", null, 0, 1, IconEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(configurationElementEClass, ConfigurationElement.class, "ConfigurationElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getConfigurationElement_Description(), ecorePackage.getEString(), "description", null, 0, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(abstractMatcherConfigurationEClass, AbstractMatcherConfiguration.class, "AbstractMatcherConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(adviceConfigurationEClass, AdviceConfiguration.class, "AdviceConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAdviceConfiguration_Before(), ecorePackage.getEString(), "before", null, 0, -1, AdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAdviceConfiguration_After(), ecorePackage.getEString(), "after", null, 0, -1, AdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(abstractAdviceBindingConfigurationEClass, AbstractAdviceBindingConfiguration.class, "AbstractAdviceBindingConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAbstractAdviceBindingConfiguration_Target(), this.getElementTypeConfiguration(), null, "target", null, 1, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAbstractAdviceBindingConfiguration_ContainerConfiguration(), this.getContainerConfiguration(), null, "containerConfiguration", null, 0, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAbstractAdviceBindingConfiguration_MatcherConfiguration(), this.getAbstractMatcherConfiguration(), null, "matcherConfiguration", null, 0, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAbstractAdviceBindingConfiguration_Inheritance(), this.getInheritanceKind(), "inheritance", null, 1, 1, AbstractAdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(specializationTypeConfigurationEClass, SpecializationTypeConfiguration.class, "SpecializationTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSpecializationTypeConfiguration_SpecializedTypesID(), ecorePackage.getEString(), "specializedTypesID", null, 1, -1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(), this.getAbstractEditHelperAdviceConfiguration(), this.getAbstractEditHelperAdviceConfiguration_Target(), "editHelperAdviceConfiguration", null, 0, 1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSpecializationTypeConfiguration_ContainerConfiguration(), this.getContainerConfiguration(), null, "containerConfiguration", null, 0, 1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSpecializationTypeConfiguration_MatcherConfiguration(), this.getAbstractMatcherConfiguration(), null, "matcherConfiguration", null, 0, 1, SpecializationTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerConfigurationEClass, ContainerConfiguration.class, "ContainerConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainerConfiguration_ContainerMatcherConfiguration(), this.getAbstractMatcherConfiguration(), null, "containerMatcherConfiguration", null, 0, 1, ContainerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainerConfiguration_EContainmentFeatures(), ecorePackage.getEReference(), null, "eContainmentFeatures", null, 0, -1, ContainerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metamodelTypeConfigurationEClass, MetamodelTypeConfiguration.class, "MetamodelTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMetamodelTypeConfiguration_EClass(), ecorePackage.getEClass(), null, "eClass", null, 0, 1, MetamodelTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMetamodelTypeConfiguration_EditHelperClassName(), ecorePackage.getEString(), "editHelperClassName", null, 0, 1, MetamodelTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(abstractEditHelperAdviceConfigurationEClass, AbstractEditHelperAdviceConfiguration.class, "AbstractEditHelperAdviceConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAbstractEditHelperAdviceConfiguration_Target(), this.getSpecializationTypeConfiguration(), this.getSpecializationTypeConfiguration_EditHelperAdviceConfiguration(), "target", null, 1, 1, AbstractEditHelperAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(editHelperAdviceConfigurationEClass, EditHelperAdviceConfiguration.class, "EditHelperAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEditHelperAdviceConfiguration_EditHelperAdviceClassName(), ecorePackage.getEString(), "editHelperAdviceClassName", null, 1, 1, EditHelperAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(adviceBindingConfigurationEClass, AdviceBindingConfiguration.class, "AdviceBindingConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAdviceBindingConfiguration_EditHelperAdviceClassName(), ecorePackage.getEString(), "editHelperAdviceClassName", null, 1, 1, AdviceBindingConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(matcherConfigurationEClass, MatcherConfiguration.class, "MatcherConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMatcherConfiguration_MatcherClassName(), ecorePackage.getEString(), "matcherClassName", null, 1, 1, MatcherConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(identifiedConfigurationEClass, IdentifiedConfiguration.class, "IdentifiedConfiguration", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIdentifiedConfiguration_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, IdentifiedConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(namedConfigurationEClass, NamedConfiguration.class, "NamedConfiguration", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamedConfiguration_Name(), ecorePackage.getEString(), "name", null, 1, 1, NamedConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(inheritanceKindEEnum, InheritanceKind.class, "InheritanceKind"); + addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.NONE); + addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.ALL); + + // Create resource + createResource(eNS_URI); + } + +} //ElementTypesConfigurationsPackageImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/IconEntryImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/IconEntryImpl.java new file mode 100644 index 00000000000..67572526283 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/IconEntryImpl.java @@ -0,0 +1,227 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.MinimalEObjectImpl; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IconEntry; + +/** + * + * An implementation of the model object 'Icon Entry'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.IconEntryImpl#getIconPath Icon Path}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.IconEntryImpl#getBundleId Bundle Id}
  • + *
+ * + * @generated + */ +public class IconEntryImpl extends MinimalEObjectImpl.Container implements IconEntry { + /** + * The default value of the '{@link #getIconPath() Icon Path}' attribute. + * + * + * @see #getIconPath() + * @generated + * @ordered + */ + protected static final String ICON_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIconPath() Icon Path}' attribute. + * + * + * @see #getIconPath() + * @generated + * @ordered + */ + protected String iconPath = ICON_PATH_EDEFAULT; + + /** + * The default value of the '{@link #getBundleId() Bundle Id}' attribute. + * + * + * @see #getBundleId() + * @generated + * @ordered + */ + protected static final String BUNDLE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBundleId() Bundle Id}' attribute. + * + * + * @see #getBundleId() + * @generated + * @ordered + */ + protected String bundleId = BUNDLE_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected IconEntryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.ICON_ENTRY; + } + + /** + * + * + * @generated + */ + public String getIconPath() { + return iconPath; + } + + /** + * + * + * @generated + */ + public void setIconPath(String newIconPath) { + String oldIconPath = iconPath; + iconPath = newIconPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ICON_ENTRY__ICON_PATH, oldIconPath, iconPath)); + } + + /** + * + * + * @generated + */ + public String getBundleId() { + return bundleId; + } + + /** + * + * + * @generated + */ + public void setBundleId(String newBundleId) { + String oldBundleId = bundleId; + bundleId = newBundleId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.ICON_ENTRY__BUNDLE_ID, oldBundleId, bundleId)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ICON_ENTRY__ICON_PATH: + return getIconPath(); + case ElementTypesConfigurationsPackage.ICON_ENTRY__BUNDLE_ID: + return getBundleId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ICON_ENTRY__ICON_PATH: + setIconPath((String)newValue); + return; + case ElementTypesConfigurationsPackage.ICON_ENTRY__BUNDLE_ID: + setBundleId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ICON_ENTRY__ICON_PATH: + setIconPath(ICON_PATH_EDEFAULT); + return; + case ElementTypesConfigurationsPackage.ICON_ENTRY__BUNDLE_ID: + setBundleId(BUNDLE_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.ICON_ENTRY__ICON_PATH: + return ICON_PATH_EDEFAULT == null ? iconPath != null : !ICON_PATH_EDEFAULT.equals(iconPath); + case ElementTypesConfigurationsPackage.ICON_ENTRY__BUNDLE_ID: + return BUNDLE_ID_EDEFAULT == null ? bundleId != null : !BUNDLE_ID_EDEFAULT.equals(bundleId); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (iconPath: "); + result.append(iconPath); + result.append(", bundleId: "); + result.append(bundleId); + result.append(')'); + return result.toString(); + } + +} //IconEntryImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MatcherConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MatcherConfigurationImpl.java new file mode 100644 index 00000000000..78becef0f99 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MatcherConfigurationImpl.java @@ -0,0 +1,172 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.MatcherConfiguration; + +/** + * + * An implementation of the model object 'Matcher Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.MatcherConfigurationImpl#getMatcherClassName Matcher Class Name}
  • + *
+ * + * @generated + */ +public class MatcherConfigurationImpl extends AbstractMatcherConfigurationImpl implements MatcherConfiguration { + /** + * The default value of the '{@link #getMatcherClassName() Matcher Class Name}' attribute. + * + * + * @see #getMatcherClassName() + * @generated + * @ordered + */ + protected static final String MATCHER_CLASS_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMatcherClassName() Matcher Class Name}' attribute. + * + * + * @see #getMatcherClassName() + * @generated + * @ordered + */ + protected String matcherClassName = MATCHER_CLASS_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected MatcherConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.MATCHER_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getMatcherClassName() { + return matcherClassName; + } + + /** + * + * + * @generated + */ + public void setMatcherClassName(String newMatcherClassName) { + String oldMatcherClassName = matcherClassName; + matcherClassName = newMatcherClassName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME, oldMatcherClassName, matcherClassName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: + return getMatcherClassName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: + setMatcherClassName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: + setMatcherClassName(MATCHER_CLASS_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION__MATCHER_CLASS_NAME: + return MATCHER_CLASS_NAME_EDEFAULT == null ? matcherClassName != null : !MATCHER_CLASS_NAME_EDEFAULT.equals(matcherClassName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (matcherClassName: "); + result.append(matcherClassName); + result.append(')'); + return result.toString(); + } + +} //MatcherConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MetamodelTypeConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MetamodelTypeConfigurationImpl.java new file mode 100644 index 00000000000..002474183ea --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/MetamodelTypeConfigurationImpl.java @@ -0,0 +1,233 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration; + +/** + * + * An implementation of the model object 'Metamodel Type Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.MetamodelTypeConfigurationImpl#getEClass EClass}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.MetamodelTypeConfigurationImpl#getEditHelperClassName Edit Helper Class Name}
  • + *
+ * + * @generated + */ +public class MetamodelTypeConfigurationImpl extends ElementTypeConfigurationImpl implements MetamodelTypeConfiguration { + /** + * The cached value of the '{@link #getEClass() EClass}' reference. + * + * + * @see #getEClass() + * @generated + * @ordered + */ + protected EClass eClass; + + /** + * The default value of the '{@link #getEditHelperClassName() Edit Helper Class Name}' attribute. + * + * + * @see #getEditHelperClassName() + * @generated + * @ordered + */ + protected static final String EDIT_HELPER_CLASS_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEditHelperClassName() Edit Helper Class Name}' attribute. + * + * + * @see #getEditHelperClassName() + * @generated + * @ordered + */ + protected String editHelperClassName = EDIT_HELPER_CLASS_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected MetamodelTypeConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.METAMODEL_TYPE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EClass getEClass() { + if (eClass != null && eClass.eIsProxy()) { + InternalEObject oldEClass = (InternalEObject)eClass; + eClass = (EClass)eResolveProxy(oldEClass); + if (eClass != oldEClass) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS, oldEClass, eClass)); + } + } + return eClass; + } + + /** + * + * + * @generated + */ + public EClass basicGetEClass() { + return eClass; + } + + /** + * + * + * @generated + */ + public void setEClass(EClass newEClass) { + EClass oldEClass = eClass; + eClass = newEClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS, oldEClass, eClass)); + } + + /** + * + * + * @generated + */ + public String getEditHelperClassName() { + return editHelperClassName; + } + + /** + * + * + * @generated + */ + public void setEditHelperClassName(String newEditHelperClassName) { + String oldEditHelperClassName = editHelperClassName; + editHelperClassName = newEditHelperClassName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME, oldEditHelperClassName, editHelperClassName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: + if (resolve) return getEClass(); + return basicGetEClass(); + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: + return getEditHelperClassName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: + setEClass((EClass)newValue); + return; + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: + setEditHelperClassName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: + setEClass((EClass)null); + return; + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: + setEditHelperClassName(EDIT_HELPER_CLASS_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__ECLASS: + return eClass != null; + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION__EDIT_HELPER_CLASS_NAME: + return EDIT_HELPER_CLASS_NAME_EDEFAULT == null ? editHelperClassName != null : !EDIT_HELPER_CLASS_NAME_EDEFAULT.equals(editHelperClassName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (editHelperClassName: "); + result.append(editHelperClassName); + result.append(')'); + return result.toString(); + } + +} //MetamodelTypeConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/SpecializationTypeConfigurationImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/SpecializationTypeConfigurationImpl.java new file mode 100644 index 00000000000..f460c2960ef --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/impl/SpecializationTypeConfigurationImpl.java @@ -0,0 +1,392 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.EDataTypeUniqueEList; + +import org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +/** + * + * An implementation of the model object 'Specialization Type Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl#getSpecializedTypesID Specialized Types ID}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl#getEditHelperAdviceConfiguration Edit Helper Advice Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl#getContainerConfiguration Container Configuration}
  • + *
  • {@link org.eclipse.papyrus.infra.types.impl.SpecializationTypeConfigurationImpl#getMatcherConfiguration Matcher Configuration}
  • + *
+ * + * @generated + */ +public class SpecializationTypeConfigurationImpl extends ElementTypeConfigurationImpl implements SpecializationTypeConfiguration { + /** + * The cached value of the '{@link #getSpecializedTypesID() Specialized Types ID}' attribute list. + * + * + * @see #getSpecializedTypesID() + * @generated + * @ordered + */ + protected EList specializedTypesID; + + /** + * The cached value of the '{@link #getEditHelperAdviceConfiguration() Edit Helper Advice Configuration}' containment reference. + * + * + * @see #getEditHelperAdviceConfiguration() + * @generated + * @ordered + */ + protected AbstractEditHelperAdviceConfiguration editHelperAdviceConfiguration; + + /** + * The cached value of the '{@link #getContainerConfiguration() Container Configuration}' containment reference. + * + * + * @see #getContainerConfiguration() + * @generated + * @ordered + */ + protected ContainerConfiguration containerConfiguration; + + /** + * The cached value of the '{@link #getMatcherConfiguration() Matcher Configuration}' containment reference. + * + * + * @see #getMatcherConfiguration() + * @generated + * @ordered + */ + protected AbstractMatcherConfiguration matcherConfiguration; + + /** + * + * + * @generated + */ + protected SpecializationTypeConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getSpecializedTypesID() { + if (specializedTypesID == null) { + specializedTypesID = new EDataTypeUniqueEList(String.class, this, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID); + } + return specializedTypesID; + } + + /** + * + * + * @generated + */ + public AbstractEditHelperAdviceConfiguration getEditHelperAdviceConfiguration() { + return editHelperAdviceConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration newEditHelperAdviceConfiguration, NotificationChain msgs) { + AbstractEditHelperAdviceConfiguration oldEditHelperAdviceConfiguration = editHelperAdviceConfiguration; + editHelperAdviceConfiguration = newEditHelperAdviceConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, oldEditHelperAdviceConfiguration, newEditHelperAdviceConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration newEditHelperAdviceConfiguration) { + if (newEditHelperAdviceConfiguration != editHelperAdviceConfiguration) { + NotificationChain msgs = null; + if (editHelperAdviceConfiguration != null) + msgs = ((InternalEObject)editHelperAdviceConfiguration).eInverseRemove(this, ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, AbstractEditHelperAdviceConfiguration.class, msgs); + if (newEditHelperAdviceConfiguration != null) + msgs = ((InternalEObject)newEditHelperAdviceConfiguration).eInverseAdd(this, ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION__TARGET, AbstractEditHelperAdviceConfiguration.class, msgs); + msgs = basicSetEditHelperAdviceConfiguration(newEditHelperAdviceConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, newEditHelperAdviceConfiguration, newEditHelperAdviceConfiguration)); + } + + /** + * + * + * @generated + */ + public ContainerConfiguration getContainerConfiguration() { + return containerConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetContainerConfiguration(ContainerConfiguration newContainerConfiguration, NotificationChain msgs) { + ContainerConfiguration oldContainerConfiguration = containerConfiguration; + containerConfiguration = newContainerConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, oldContainerConfiguration, newContainerConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setContainerConfiguration(ContainerConfiguration newContainerConfiguration) { + if (newContainerConfiguration != containerConfiguration) { + NotificationChain msgs = null; + if (containerConfiguration != null) + msgs = ((InternalEObject)containerConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); + if (newContainerConfiguration != null) + msgs = ((InternalEObject)newContainerConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, null, msgs); + msgs = basicSetContainerConfiguration(newContainerConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION, newContainerConfiguration, newContainerConfiguration)); + } + + /** + * + * + * @generated + */ + public AbstractMatcherConfiguration getMatcherConfiguration() { + return matcherConfiguration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration, NotificationChain msgs) { + AbstractMatcherConfiguration oldMatcherConfiguration = matcherConfiguration; + matcherConfiguration = newMatcherConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, oldMatcherConfiguration, newMatcherConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setMatcherConfiguration(AbstractMatcherConfiguration newMatcherConfiguration) { + if (newMatcherConfiguration != matcherConfiguration) { + NotificationChain msgs = null; + if (matcherConfiguration != null) + msgs = ((InternalEObject)matcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); + if (newMatcherConfiguration != null) + msgs = ((InternalEObject)newMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs); + msgs = basicSetMatcherConfiguration(newMatcherConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, newMatcherConfiguration, newMatcherConfiguration)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + if (editHelperAdviceConfiguration != null) + msgs = ((InternalEObject)editHelperAdviceConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION, null, msgs); + return basicSetEditHelperAdviceConfiguration((AbstractEditHelperAdviceConfiguration)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + return basicSetEditHelperAdviceConfiguration(null, msgs); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: + return basicSetContainerConfiguration(null, msgs); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: + return basicSetMatcherConfiguration(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: + return getSpecializedTypesID(); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + return getEditHelperAdviceConfiguration(); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: + return getContainerConfiguration(); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: + return getMatcherConfiguration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: + getSpecializedTypesID().clear(); + getSpecializedTypesID().addAll((Collection)newValue); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + setEditHelperAdviceConfiguration((AbstractEditHelperAdviceConfiguration)newValue); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: + setContainerConfiguration((ContainerConfiguration)newValue); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: + setMatcherConfiguration((AbstractMatcherConfiguration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: + getSpecializedTypesID().clear(); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + setEditHelperAdviceConfiguration((AbstractEditHelperAdviceConfiguration)null); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: + setContainerConfiguration((ContainerConfiguration)null); + return; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: + setMatcherConfiguration((AbstractMatcherConfiguration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID: + return specializedTypesID != null && !specializedTypesID.isEmpty(); + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__EDIT_HELPER_ADVICE_CONFIGURATION: + return editHelperAdviceConfiguration != null; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__CONTAINER_CONFIGURATION: + return containerConfiguration != null; + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION: + return matcherConfiguration != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (specializedTypesID: "); + result.append(specializedTypesID); + result.append(')'); + return result.toString(); + } + +} //SpecializationTypeConfigurationImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsAdapterFactory.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsAdapterFactory.java new file mode 100644 index 00000000000..dd857a159c4 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsAdapterFactory.java @@ -0,0 +1,400 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage + * @generated + */ +public class ElementTypesConfigurationsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static ElementTypesConfigurationsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public ElementTypesConfigurationsAdapterFactory() { + if (modelPackage == null) { + modelPackage = ElementTypesConfigurationsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected ElementTypesConfigurationsSwitch modelSwitch = + new ElementTypesConfigurationsSwitch() { + @Override + public Adapter caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + return createElementTypeSetConfigurationAdapter(); + } + @Override + public Adapter caseElementTypeConfiguration(ElementTypeConfiguration object) { + return createElementTypeConfigurationAdapter(); + } + @Override + public Adapter caseIconEntry(IconEntry object) { + return createIconEntryAdapter(); + } + @Override + public Adapter caseConfigurationElement(ConfigurationElement object) { + return createConfigurationElementAdapter(); + } + @Override + public Adapter caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { + return createAbstractMatcherConfigurationAdapter(); + } + @Override + public Adapter caseAdviceConfiguration(AdviceConfiguration object) { + return createAdviceConfigurationAdapter(); + } + @Override + public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return createAbstractAdviceBindingConfigurationAdapter(); + } + @Override + public Adapter caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { + return createSpecializationTypeConfigurationAdapter(); + } + @Override + public Adapter caseContainerConfiguration(ContainerConfiguration object) { + return createContainerConfigurationAdapter(); + } + @Override + public Adapter caseMetamodelTypeConfiguration(MetamodelTypeConfiguration object) { + return createMetamodelTypeConfigurationAdapter(); + } + @Override + public Adapter caseAbstractEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration object) { + return createAbstractEditHelperAdviceConfigurationAdapter(); + } + @Override + public Adapter caseEditHelperAdviceConfiguration(EditHelperAdviceConfiguration object) { + return createEditHelperAdviceConfigurationAdapter(); + } + @Override + public Adapter caseAdviceBindingConfiguration(AdviceBindingConfiguration object) { + return createAdviceBindingConfigurationAdapter(); + } + @Override + public Adapter caseMatcherConfiguration(MatcherConfiguration object) { + return createMatcherConfigurationAdapter(); + } + @Override + public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return createIdentifiedConfigurationAdapter(); + } + @Override + public Adapter caseNamedConfiguration(NamedConfiguration object) { + return createNamedConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.types.ElementTypeSetConfiguration Element Type Set Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration + * @generated + */ + public Adapter createElementTypeSetConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ElementTypeConfiguration Element Type Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ElementTypeConfiguration + * @generated + */ + public Adapter createElementTypeConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IconEntry Icon Entry}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IconEntry + * @generated + */ + public Adapter createIconEntryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + public Adapter createConfigurationElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration Abstract Matcher Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration + * @generated + */ + public Adapter createAbstractMatcherConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration + * @generated + */ + public Adapter createAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration + * @generated + */ + public Adapter createAbstractAdviceBindingConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration Specialization Type Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration + * @generated + */ + public Adapter createSpecializationTypeConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ContainerConfiguration Container Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ContainerConfiguration + * @generated + */ + public Adapter createContainerConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration Metamodel Type Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration + * @generated + */ + public Adapter createMetamodelTypeConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration Abstract Edit Helper Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractEditHelperAdviceConfiguration + * @generated + */ + public Adapter createAbstractEditHelperAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration Edit Helper Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.EditHelperAdviceConfiguration + * @generated + */ + public Adapter createEditHelperAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceBindingConfiguration Advice Binding Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AdviceBindingConfiguration + * @generated + */ + public Adapter createAdviceBindingConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.MatcherConfiguration Matcher Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.MatcherConfiguration + * @generated + */ + public Adapter createMatcherConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + public Adapter createIdentifiedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.NamedConfiguration Named Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.NamedConfiguration + * @generated + */ + public Adapter createNamedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //ElementTypesConfigurationsAdapterFactory diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceFactoryImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceFactoryImpl.java new file mode 100644 index 00000000000..6d6ec5d6e3f --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsResourceImpl + * @generated + */ +public class ElementTypesConfigurationsResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public ElementTypesConfigurationsResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new ElementTypesConfigurationsResourceImpl(uri); + return result; + } + +} //ElementTypesConfigurationsResourceFactoryImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceImpl.java new file mode 100644 index 00000000000..7bf8d497b95 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsResourceFactoryImpl + * @generated + */ +public class ElementTypesConfigurationsResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public ElementTypesConfigurationsResourceImpl(URI uri) { + super(uri); + } + +} //ElementTypesConfigurationsResourceImpl diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsSwitch.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsSwitch.java new file mode 100644 index 00000000000..479ec3bd9d1 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src-gen/org/eclipse/papyrus/infra/types/util/ElementTypesConfigurationsSwitch.java @@ -0,0 +1,463 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.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.types.*; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage + * @generated + */ +public class ElementTypesConfigurationsSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static ElementTypesConfigurationsPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public ElementTypesConfigurationsSwitch() { + if (modelPackage == null) { + modelPackage = ElementTypesConfigurationsPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_SET_CONFIGURATION: { + ElementTypeSetConfiguration elementTypeSetConfiguration = (ElementTypeSetConfiguration)theEObject; + T result = caseElementTypeSetConfiguration(elementTypeSetConfiguration); + if (result == null) result = caseConfigurationElement(elementTypeSetConfiguration); + if (result == null) result = caseIdentifiedConfiguration(elementTypeSetConfiguration); + if (result == null) result = caseNamedConfiguration(elementTypeSetConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ELEMENT_TYPE_CONFIGURATION: { + ElementTypeConfiguration elementTypeConfiguration = (ElementTypeConfiguration)theEObject; + T result = caseElementTypeConfiguration(elementTypeConfiguration); + if (result == null) result = caseConfigurationElement(elementTypeConfiguration); + if (result == null) result = caseIdentifiedConfiguration(elementTypeConfiguration); + if (result == null) result = caseNamedConfiguration(elementTypeConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ICON_ENTRY: { + IconEntry iconEntry = (IconEntry)theEObject; + T result = caseIconEntry(iconEntry); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.CONFIGURATION_ELEMENT: { + ConfigurationElement configurationElement = (ConfigurationElement)theEObject; + T result = caseConfigurationElement(configurationElement); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION: { + AbstractMatcherConfiguration abstractMatcherConfiguration = (AbstractMatcherConfiguration)theEObject; + T result = caseAbstractMatcherConfiguration(abstractMatcherConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ADVICE_CONFIGURATION: { + AdviceConfiguration adviceConfiguration = (AdviceConfiguration)theEObject; + T result = caseAdviceConfiguration(adviceConfiguration); + if (result == null) result = caseConfigurationElement(adviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION: { + AbstractAdviceBindingConfiguration abstractAdviceBindingConfiguration = (AbstractAdviceBindingConfiguration)theEObject; + T result = caseAbstractAdviceBindingConfiguration(abstractAdviceBindingConfiguration); + if (result == null) result = caseAdviceConfiguration(abstractAdviceBindingConfiguration); + if (result == null) result = caseIdentifiedConfiguration(abstractAdviceBindingConfiguration); + if (result == null) result = caseConfigurationElement(abstractAdviceBindingConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.SPECIALIZATION_TYPE_CONFIGURATION: { + SpecializationTypeConfiguration specializationTypeConfiguration = (SpecializationTypeConfiguration)theEObject; + T result = caseSpecializationTypeConfiguration(specializationTypeConfiguration); + if (result == null) result = caseElementTypeConfiguration(specializationTypeConfiguration); + if (result == null) result = caseConfigurationElement(specializationTypeConfiguration); + if (result == null) result = caseIdentifiedConfiguration(specializationTypeConfiguration); + if (result == null) result = caseNamedConfiguration(specializationTypeConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.CONTAINER_CONFIGURATION: { + ContainerConfiguration containerConfiguration = (ContainerConfiguration)theEObject; + T result = caseContainerConfiguration(containerConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.METAMODEL_TYPE_CONFIGURATION: { + MetamodelTypeConfiguration metamodelTypeConfiguration = (MetamodelTypeConfiguration)theEObject; + T result = caseMetamodelTypeConfiguration(metamodelTypeConfiguration); + if (result == null) result = caseElementTypeConfiguration(metamodelTypeConfiguration); + if (result == null) result = caseConfigurationElement(metamodelTypeConfiguration); + if (result == null) result = caseIdentifiedConfiguration(metamodelTypeConfiguration); + if (result == null) result = caseNamedConfiguration(metamodelTypeConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ABSTRACT_EDIT_HELPER_ADVICE_CONFIGURATION: { + AbstractEditHelperAdviceConfiguration abstractEditHelperAdviceConfiguration = (AbstractEditHelperAdviceConfiguration)theEObject; + T result = caseAbstractEditHelperAdviceConfiguration(abstractEditHelperAdviceConfiguration); + if (result == null) result = caseAdviceConfiguration(abstractEditHelperAdviceConfiguration); + if (result == null) result = caseConfigurationElement(abstractEditHelperAdviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.EDIT_HELPER_ADVICE_CONFIGURATION: { + EditHelperAdviceConfiguration editHelperAdviceConfiguration = (EditHelperAdviceConfiguration)theEObject; + T result = caseEditHelperAdviceConfiguration(editHelperAdviceConfiguration); + if (result == null) result = caseAbstractEditHelperAdviceConfiguration(editHelperAdviceConfiguration); + if (result == null) result = caseAdviceConfiguration(editHelperAdviceConfiguration); + if (result == null) result = caseConfigurationElement(editHelperAdviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.ADVICE_BINDING_CONFIGURATION: { + AdviceBindingConfiguration adviceBindingConfiguration = (AdviceBindingConfiguration)theEObject; + T result = caseAdviceBindingConfiguration(adviceBindingConfiguration); + if (result == null) result = caseAbstractAdviceBindingConfiguration(adviceBindingConfiguration); + if (result == null) result = caseAdviceConfiguration(adviceBindingConfiguration); + if (result == null) result = caseIdentifiedConfiguration(adviceBindingConfiguration); + if (result == null) result = caseConfigurationElement(adviceBindingConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.MATCHER_CONFIGURATION: { + MatcherConfiguration matcherConfiguration = (MatcherConfiguration)theEObject; + T result = caseMatcherConfiguration(matcherConfiguration); + if (result == null) result = caseAbstractMatcherConfiguration(matcherConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.IDENTIFIED_CONFIGURATION: { + IdentifiedConfiguration identifiedConfiguration = (IdentifiedConfiguration)theEObject; + T result = caseIdentifiedConfiguration(identifiedConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ElementTypesConfigurationsPackage.NAMED_CONFIGURATION: { + NamedConfiguration namedConfiguration = (NamedConfiguration)theEObject; + T result = caseNamedConfiguration(namedConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Element Type Set Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Element Type Set Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Element Type Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Element Type Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseElementTypeConfiguration(ElementTypeConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Icon Entry'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Icon Entry'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIconEntry(IconEntry object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfigurationElement(ConfigurationElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAdviceConfiguration(AdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Specialization Type Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Specialization Type Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Container Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Container Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainerConfiguration(ContainerConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Metamodel Type Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Metamodel Type Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMetamodelTypeConfiguration(MetamodelTypeConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Edit Helper Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Edit Helper Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractEditHelperAdviceConfiguration(AbstractEditHelperAdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Edit Helper Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Edit Helper Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEditHelperAdviceConfiguration(EditHelperAdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Advice Binding Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Advice Binding Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAdviceBindingConfiguration(AdviceBindingConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Matcher Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Matcher Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMatcherConfiguration(MatcherConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Identified Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Identified Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedConfiguration(NamedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //ElementTypesConfigurationsSwitch diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceFactoryImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceFactoryImpl.java new file mode 100644 index 00000000000..d3bb9f9cdda --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceFactoryImpl.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.resource; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsResourceFactoryImpl; + +public class CustomElementTypesConfigurationsResourceFactoryImpl extends ElementTypesConfigurationsResourceFactoryImpl { + + @Override + public Resource createResource(URI uri) { + Resource result = new CustomElementTypesConfigurationsResourceImpl(uri); + return result; + } + +} diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceImpl.java b/plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceImpl.java new file mode 100644 index 00000000000..790c49384d1 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types/src/org/eclipse/papyrus/infra/types/resource/CustomElementTypesConfigurationsResourceImpl.java @@ -0,0 +1,28 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.infra.types.resource; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsResourceImpl; + +public class CustomElementTypesConfigurationsResourceImpl extends ElementTypesConfigurationsResourceImpl { + + public CustomElementTypesConfigurationsResourceImpl(URI uri) { + super(uri); + } + + @Override + protected boolean useUUIDs() { + return true; + } +} diff --git a/plugins/infra/types/pom.xml b/plugins/infra/types/pom.xml new file mode 100644 index 00000000000..f9f460eff6e --- /dev/null +++ b/plugins/infra/types/pom.xml @@ -0,0 +1,22 @@ + + + 4.0.0 + org.eclipse.papyrus.infra-types + pom + + org.eclipse.papyrus + org.eclipse.papyrus.infra + 0.0.1-SNAPSHOT + + Papyrus Infra Extended Element Types + Plug-ins contributing model-driven types to the GMF Run-time Element-Types registry. + + + org.eclipse.papyrus.infra.types + org.eclipse.papyrus.infra.types.core + org.eclipse.papyrus.infra.types.edit + org.eclipse.papyrus.infra.types.editor + org.eclipse.papyrus.infra.types.rulebased + org.eclipse.papyrus.infra.types.ui + + diff --git a/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/META-INF/MANIFEST.MF b/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/META-INF/MANIFEST.MF index c27591ff9a9..b575b2d7e5f 100644 --- a/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/META-INF/MANIFEST.MF +++ b/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/META-INF/MANIFEST.MF @@ -4,7 +4,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.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.elementtypesconfigurations;bundle-version="1.2.0" + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0" Export-Package: org.eclipse.papyrus.infra.extendedtypes, org.eclipse.papyrus.infra.extendedtypes.advices, org.eclipse.papyrus.infra.extendedtypes.impl, diff --git a/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java b/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java index 0c2aa4964ec..97d1ff2f286 100644 --- a/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java +++ b/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java @@ -38,9 +38,9 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementType; import org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor; import org.eclipse.gmf.runtime.emf.type.core.internal.impl.SpecializationTypeRegistry; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType; import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.osgi.framework.Bundle; /** diff --git a/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/UserExtendedTypesRegistry.java b/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/UserExtendedTypesRegistry.java index e94d7291781..649b2133248 100644 --- a/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/UserExtendedTypesRegistry.java +++ b/plugins/infra/xtypes/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/UserExtendedTypesRegistry.java @@ -24,8 +24,8 @@ import java.util.function.Predicate; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.Platform; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; import org.eclipse.papyrus.infra.extendedtypes.internal.spi.IUserExtendedTypesProvider; +import org.eclipse.papyrus.infra.types.core.Activator; /** * Registry of {@link IUserExtendedTypesProvider}s. diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/META-INF/MANIFEST.MF b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/META-INF/MANIFEST.MF index e480b7c4f66..d4ddce72c7f 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/META-INF/MANIFEST.MF +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/META-INF/MANIFEST.MF @@ -20,8 +20,8 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.infra.tools;bundle-version="1.2.0", org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0", org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0", org.eclipse.papyrus.infra.ui;bundle-version="1.2.0", org.eclipse.papyrus.uml.service.types.ui;bundle-version="1.2.0" Bundle-Vendor: %providerName diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-activities.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-activities.elementtypesconfigurations index 6da5ab8edfd..4fcfcb76579 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-activities.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-activities.elementtypesconfigurations @@ -1,26 +1,26 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-allocations.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-allocations.elementtypesconfigurations index 4e5784e7e39..1cf2257b994 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-allocations.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-allocations.elementtypesconfigurations @@ -1,11 +1,11 @@ - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-blocks.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-blocks.elementtypesconfigurations index a78272353f1..f5880e1582b 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-blocks.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-blocks.elementtypesconfigurations @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-constraints.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-constraints.elementtypesconfigurations index 5af3d8f3998..6aa1dedf629 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-constraints.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-constraints.elementtypesconfigurations @@ -1,8 +1,8 @@ - - - - - - - + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-modelelements.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-modelelements.elementtypesconfigurations index e35abc81c72..0c6c4b25455 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-modelelements.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-modelelements.elementtypesconfigurations @@ -1,17 +1,17 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-portsandflows.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-portsandflows.elementtypesconfigurations index 42a2ec77016..4da11c58d49 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-portsandflows.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-portsandflows.elementtypesconfigurations @@ -1,14 +1,14 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-requirements.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-requirements.elementtypesconfigurations index 9461a0d6acc..411f7ef648e 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-requirements.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml-requirements.elementtypesconfigurations @@ -1,23 +1,23 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml.elementtypesconfigurations b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml.elementtypesconfigurations index 63cd70ff49b..960f5165acd 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml.elementtypesconfigurations +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/model/sysml.elementtypesconfigurations @@ -1,247 +1,247 @@ - - - - org.eclipse.papyrus.uml.Property - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - org.eclipse.papyrus.uml.AssociationBase - - - - - org.eclipse.papyrus.sysml.Association - - - - - org.eclipse.papyrus.sysml.Association - - - - - org.eclipse.papyrus.sysml.Association - - - - - org.eclipse.papyrus.sysml.Association - - - - - org.eclipse.papyrus.sysml.Association - - - - - org.eclipse.papyrus.sysml.Association - - - - - - org.eclipse.papyrus.uml.Class - - - - - - org.eclipse.papyrus.uml.Dependency - - - - - - org.eclipse.papyrus.uml.Class - - - - - - org.eclipse.papyrus.uml.Property - - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - - org.eclipse.papyrus.uml.InstanceSpecification - - - - - - org.eclipse.papyrus.uml.Port - - - - - - org.eclipse.papyrus.sysml.FlowPort - - - - - - org.eclipse.papyrus.sysml.FlowPort - - - - - - org.eclipse.papyrus.sysml.FlowPort - - - - - - org.eclipse.papyrus.sysml.FlowPort - - - - - - org.eclipse.papyrus.uml.Property - - - - - - org.eclipse.papyrus.uml.Interface - - - - - - org.eclipse.papyrus.uml.InformationFlow - - - - - - org.eclipse.papyrus.uml.Property - - - - - - org.eclipse.papyrus.uml.Comment - - - - - - org.eclipse.papyrus.uml.Comment - - - - - - org.eclipse.papyrus.uml.Property - - - - - - org.eclipse.papyrus.uml.Class - - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - - org.eclipse.papyrus.uml.InstanceSpecification - - - - - - org.eclipse.papyrus.uml.Property - - - - - - org.eclipse.papyrus.uml.DataType - - - - - - org.eclipse.papyrus.uml.Enumeration - - - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - - org.eclipse.papyrus.uml.Package - - - - - - org.eclipse.papyrus.uml.Class - - - - - - org.eclipse.papyrus.uml.Property - - - - - - - - - - - - - - - - - - - - - - + + + + org.eclipse.papyrus.uml.Property + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + org.eclipse.papyrus.uml.AssociationBase + + + + + org.eclipse.papyrus.sysml.Association + + + + + org.eclipse.papyrus.sysml.Association + + + + + org.eclipse.papyrus.sysml.Association + + + + + org.eclipse.papyrus.sysml.Association + + + + + org.eclipse.papyrus.sysml.Association + + + + + org.eclipse.papyrus.sysml.Association + + + + + + org.eclipse.papyrus.uml.Class + + + + + + org.eclipse.papyrus.uml.Dependency + + + + + + org.eclipse.papyrus.uml.Class + + + + + + org.eclipse.papyrus.uml.Property + + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + + org.eclipse.papyrus.uml.InstanceSpecification + + + + + + org.eclipse.papyrus.uml.Port + + + + + + org.eclipse.papyrus.sysml.FlowPort + + + + + + org.eclipse.papyrus.sysml.FlowPort + + + + + + org.eclipse.papyrus.sysml.FlowPort + + + + + + org.eclipse.papyrus.sysml.FlowPort + + + + + + org.eclipse.papyrus.uml.Property + + + + + + org.eclipse.papyrus.uml.Interface + + + + + + org.eclipse.papyrus.uml.InformationFlow + + + + + + org.eclipse.papyrus.uml.Property + + + + + + org.eclipse.papyrus.uml.Comment + + + + + + org.eclipse.papyrus.uml.Comment + + + + + + org.eclipse.papyrus.uml.Property + + + + + + org.eclipse.papyrus.uml.Class + + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + + org.eclipse.papyrus.uml.InstanceSpecification + + + + + + org.eclipse.papyrus.uml.Property + + + + + + org.eclipse.papyrus.uml.DataType + + + + + + org.eclipse.papyrus.uml.Enumeration + + + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + + org.eclipse.papyrus.uml.Package + + + + + + org.eclipse.papyrus.uml.Class + + + + + + org.eclipse.papyrus.uml.Property + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/plugin.xml b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/plugin.xml index c34b3200766..13dde203aca 100644 --- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/plugin.xml +++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/plugin.xml @@ -369,56 +369,56 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/META-INF/MANIFEST.MF b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/META-INF/MANIFEST.MF index f42dd4a2ffb..dc0cb12bca6 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/META-INF/MANIFEST.MF +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Require-Bundle: org.eclipse.core.runtime, org.eclipse.emf.ecore;bundle-version="2.11.0", org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0", org.eclipse.uml2.uml;bundle-version="5.1.0", org.eclipse.xtext.xbase.lib;bundle-version="2.8.0", org.eclipse.xtend.lib;bundle-version="2.8.0", @@ -11,7 +11,7 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", com.google.inject;bundle-version="3.0.0", org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator;bundle-version="1.2.0", org.eclipse.ui;bundle-version="3.107.0", org.eclipse.papyrus.infra.gmfdiag.assistant;bundle-version="1.2.0", org.eclipse.papyrus.uml.profile.assistants.generator;bundle-version="1.2.0", @@ -19,7 +19,7 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.papyrus.uml.diagram.wizards;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.2.0", org.eclipse.ui.ide;bundle-version="3.10.100", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui;bundle-version="1.2.0" + org.eclipse.papyrus.uml.profile.types.generator.ui;bundle-version="1.2.0" Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy Bundle-ClassPath: . diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/plugin.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/plugin.xml index 8aec488df80..958c626bc31 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/plugin.xml +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui/plugin.xml @@ -5,7 +5,7 @@ point="org.eclipse.ui.menus"> + locationURI="popup:org.eclipse.papyrus.uml.profile.types.generator.ui.generateMenu?after=additions"> generator, Identifiers identifiers, GeneratorWizardModel wizardModel) { if (generator instanceof ElementTypesGenerator) { - return wizardModel.getOutputModelURI().trimFileExtension().appendFileExtension("elementtypesconfigurations"); + return wizardModel.getOutputModelURI().trimFileExtension().appendFileExtension("typesconfigurations"); } return super.getOutputURI(generator, identifiers, wizardModel); diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/META-INF/MANIFEST.MF b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/META-INF/MANIFEST.MF index 7d676014e80..ef6af45fc25 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/META-INF/MANIFEST.MF +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/META-INF/MANIFEST.MF @@ -2,14 +2,14 @@ Manifest-Version: 1.0 Require-Bundle: org.eclipse.core.runtime, org.eclipse.emf.ecore;bundle-version="2.11.0", org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0", org.eclipse.uml2.uml;bundle-version="5.1.0", org.eclipse.xtend.lib;bundle-version="2.8.0", org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", com.google.inject;bundle-version="3.0.0", org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.assistant;bundle-version="1.2.0", org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", org.eclipse.papyrus.uml.filters;bundle-version="1.2.0" diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ConnectionAssistantRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ConnectionAssistantRule.xtend index 378f5f0c559..7ebc4421897 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ConnectionAssistantRule.xtend +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ConnectionAssistantRule.xtend @@ -14,14 +14,14 @@ package org.eclipse.papyrus.uml.profile.assistants.generator import javax.inject.Inject import javax.inject.Singleton -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration import org.eclipse.papyrus.infra.filters.Filter import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantFactory import org.eclipse.papyrus.infra.gmfdiag.assistant.ConnectionAssistant -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UML -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UMLElementTypes -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ImpliedExtension +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers +import org.eclipse.papyrus.uml.profile.types.generator.UML +import org.eclipse.papyrus.uml.profile.types.generator.UMLElementTypes +import org.eclipse.papyrus.uml.profile.types.generator.ImpliedExtension +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration /** * Transformation rule for generating a {@link ConnectionAssistant} from a UML {@link Extension}. diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/FiltersUtil.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/FiltersUtil.xtend index 4fb746c6c44..3a08459ab4f 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/FiltersUtil.xtend +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/FiltersUtil.xtend @@ -23,8 +23,8 @@ import org.eclipse.uml2.uml.Profile import org.eclipse.papyrus.uml.filters.UMLFiltersFactory import org.eclipse.emf.ecore.util.EcoreUtil import javax.inject.Inject -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UML +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.uml.profile.types.generator.UML /** * Utility extensions for working with {@link Filter}s. diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/GeneratorModule.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/GeneratorModule.java index 969258b07f8..8720b304b18 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/GeneratorModule.java +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/GeneratorModule.java @@ -15,13 +15,13 @@ package org.eclipse.papyrus.uml.profile.assistants.generator; import org.eclipse.emf.ecore.EClass; import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantPackage; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.OutputModel; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; +import org.eclipse.papyrus.uml.profile.types.generator.OutputModel; /** * The base Guice injector module for the UML Profile to Modeling Assistants transformation. */ -public class GeneratorModule extends org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.GeneratorModule { +public class GeneratorModule extends org.eclipse.papyrus.uml.profile.types.generator.GeneratorModule { public GeneratorModule(Identifiers identifiers) { super(identifiers); } diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend index e7db611a1d1..20a0a3a8eed 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend @@ -16,9 +16,9 @@ import javax.inject.Inject import javax.inject.Singleton import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantFactory import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UML -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UMLElementTypes +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers +import org.eclipse.papyrus.uml.profile.types.generator.UML +import org.eclipse.papyrus.uml.profile.types.generator.UMLElementTypes import org.eclipse.uml2.uml.Profile /** diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantsGenerator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantsGenerator.java index 97f22f5686a..bdd9b6bba57 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantsGenerator.java +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantsGenerator.java @@ -14,8 +14,8 @@ package org.eclipse.papyrus.uml.profile.assistants.generator; import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.AbstractGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; +import org.eclipse.papyrus.uml.profile.types.generator.AbstractGenerator; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; import org.eclipse.uml2.uml.Profile; import com.google.inject.Inject; diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/PopupAssistantRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/PopupAssistantRule.xtend index 7b95dd16dc6..76e34290c06 100644 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/PopupAssistantRule.xtend +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/PopupAssistantRule.xtend @@ -14,14 +14,14 @@ package org.eclipse.papyrus.uml.profile.assistants.generator import javax.inject.Inject import javax.inject.Singleton -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration import org.eclipse.papyrus.infra.filters.Filter import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantFactory import org.eclipse.papyrus.infra.gmfdiag.assistant.PopupAssistant -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UML -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UMLElementTypes -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ImpliedExtension +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers +import org.eclipse.papyrus.uml.profile.types.generator.UML +import org.eclipse.papyrus.uml.profile.types.generator.UMLElementTypes +import org.eclipse.papyrus.uml.profile.types.generator.ImpliedExtension /** * Transformation rule for generating a {@link PopupAssistant} from a UML {@link Extension}. diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.classpath b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.classpath deleted file mode 100644 index 098194ca4b7..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.project b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.project deleted file mode 100644 index a626ff98979..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.papyrus.emf.facet.common.ProjectNature - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f08be2b06c4..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.ui.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/META-INF/MANIFEST.MF b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/META-INF/MANIFEST.MF deleted file mode 100644 index d5c9bf17450..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/META-INF/MANIFEST.MF +++ /dev/null @@ -1,35 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;bundle-version="2.11.0", - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0", - org.eclipse.uml2.uml;bundle-version="5.1.0", - org.eclipse.xtext.xbase.lib;bundle-version="2.8.0", - org.eclipse.xtend.lib;bundle-version="2.8.0", - org.eclipse.xtend.lib.macro;bundle-version="2.8.0", - org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", - com.google.inject;bundle-version="3.0.0", - org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator;bundle-version="1.2.0", - org.eclipse.ui;bundle-version="3.107.0", - org.eclipse.papyrus.infra.core;bundle-version="1.2.0", - org.eclipse.papyrus.uml.diagram.wizards;bundle-version="1.2.0", - org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.2.0", - org.eclipse.ui.ide;bundle-version="3.10.100", - org.eclipse.papyrus.infra.tools;bundle-version="1.2.0", - org.eclipse.papyrus.infra.ui;bundle-version="1.2.0" -Export-Package: org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal, - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.handlers, - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards;x-friends:="org.eclipse.papyrus.uml.profile.assistants.generator.ui" -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Localization: plugin -Bundle-Name: %pluginName -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.Activator -Bundle-Description: %pluginDescription -Bundle-SymbolicName: org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/about.html b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/build.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/build.properties deleted file mode 100644 index 31c15b846e8..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/build.properties +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2015 Christian W. Damus and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Christian W. Damus - Initial API and implementation - -bin.includes = .,\ - META-INF/,\ - plugin.properties,\ - about.html,\ - plugin.xml,\ - icons/ -jars.compile.order = . -source.. = src/ -output.. = bin/ -src.includes = about.html diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/plugin.gif b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/plugin.gif deleted file mode 100644 index 8493df40dfe..00000000000 Binary files a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/plugin.gif and /dev/null differ diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/project.png b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/project.png deleted file mode 100644 index 154776ea14e..00000000000 Binary files a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/icons/full/obj16/project.png and /dev/null differ diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.properties deleted file mode 100644 index 3ff1edb84b8..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.properties +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2015 Christian W. Damus and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Christian W. Damus - Initial API and implementation - -pluginName = Papyrus Element Types Configuration Generator for UML Profiles -providerName = Eclipse Modeling Project -pluginDescription = User interface for generation of Element Type Configuration models for UML profiles diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.xml deleted file mode 100644 index d62afe03d0e..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/plugin.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/pom.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/pom.xml deleted file mode 100644 index 5ca9bc8f127..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus - org.eclipse.papyrus.uml-assistants - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/Activator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/Activator.java deleted file mode 100644 index fa5ea6808b4..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/Activator.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - */ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * This is the central singleton for the UML Profile Element Types Generator UI plugin. - */ -public final class Activator extends AbstractUIPlugin { - public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui"; //$NON-NLS-1$ - - /** - * Keep track of the singleton. - */ - private static Activator INSTANCE; - - /** Logging helper */ - public static LogHelper log = new LogHelper(); - - public Activator() { - super(); - } - - public static Activator getInstance() { - return INSTANCE; - } - - @Override - public void start(BundleContext context) throws Exception { - INSTANCE = this; - log.setPlugin(this); - - super.start(context); - } - - public ImageDescriptor getIcon(String path) { - if (!path.startsWith("/")) { - path = "$nl$/icons/full/" + path; //$NON-NLS-1$ - } - return imageDescriptorFromPlugin(PLUGIN_ID, path); - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/handlers/GenerateElementTypesHandler.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/handlers/GenerateElementTypesHandler.java deleted file mode 100644 index 0ce7061198d..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/handlers/GenerateElementTypesHandler.java +++ /dev/null @@ -1,62 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.handlers; - -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.wizard.WizardDialog; -import org.eclipse.papyrus.infra.emf.utils.EMFHelper; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards.GeneratorWizard; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.handlers.HandlerUtil; -import org.eclipse.uml2.uml.Profile; - -/** - * @author damus - * - */ -public class GenerateElementTypesHandler extends AbstractHandler { - - /** - * Constructor. - * - */ - public GenerateElementTypesHandler() { - super(); - } - - @Override - public Object execute(ExecutionEvent event) throws ExecutionException { - ISelection selection = HandlerUtil.getCurrentSelection(event); - if (selection instanceof IStructuredSelection) { - IStructuredSelection sselection = (IStructuredSelection) selection; - if (!sselection.isEmpty()) { - EObject eObject = EMFHelper.getEObject(sselection.getFirstElement()); - if (eObject instanceof Profile) { - IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindowChecked(event).getActivePage(); - GeneratorWizard wizard = new GeneratorWizard(page, (Profile) eObject); - WizardDialog dlg = new WizardDialog(HandlerUtil.getActiveShellChecked(event), wizard); - dlg.open(); - } - } - } - - return null; - } - -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/BaseElementTypeSetBlock.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/BaseElementTypeSetBlock.java deleted file mode 100644 index f7a5feed26d..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/BaseElementTypeSetBlock.java +++ /dev/null @@ -1,340 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jface.resource.JFaceResources; -import org.eclipse.jface.resource.LocalResourceManager; -import org.eclipse.jface.resource.ResourceManager; -import org.eclipse.jface.util.Policy; -import org.eclipse.jface.viewers.ArrayContentProvider; -import org.eclipse.jface.viewers.ComboViewer; -import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.StyledString; -import org.eclipse.osgi.util.NLS; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.Activator; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; - -import com.google.common.base.Function; -import com.google.common.base.Strings; -import com.google.common.collect.BiMap; -import com.google.common.collect.HashBiMap; -import com.google.common.collect.Ordering; - -/** - * Composable block of widgets for selection of the element types set on which to base the generated element types model. - */ -class BaseElementTypeSetBlock { - - private static final String DIAGRAM = "diagram"; //$NON-NLS-1$ - - private static final String SUPPRESS_SEMANTIC_SUPERTYPES = "suppressSemanticSupertypes"; //$NON-NLS-1$ - - private static final String UML_ELEMENT_TYPE_SET = "org.eclipse.papyrus.uml.service.types.UMLElementTypeSet"; //$NON-NLS-1$ - - private static final String CONTEXT_ID = "org.eclipse.papyrus.infra.services.edit.TypeContext"; - - private final GeneratorWizardModel model; - - private final BiMap elementTypeSets; - - public BaseElementTypeSetBlock(GeneratorWizardModel model) { - super(); - - this.model = model; - this.elementTypeSets = HashBiMap.create(ElementTypeSetConfigurationRegistry.getInstance().getElementTypeSetConfigurations().get(CONTEXT_ID)); - } - - public void createControl(Composite parent) { - new Label(parent, SWT.NONE).setText("Base element types set:"); - - ComboViewer combo = new ComboViewer(new Combo(parent, SWT.READ_ONLY | SWT.DROP_DOWN)); - combo.setLabelProvider(new DiagramListLabelProvider(parent)); - - /* - * FIXME(Bug 468668): Reinstate this when we can integrate a new Mars (or later) release of the TableCombo. - * cf. https://bugs.eclipse.org/bugs/show_bug.cgi?id=468668 - * - * // Use a two-column table because styled label providers don't work in the TableComboViewer - * TableComboViewer combo = new TableComboViewer(parent, SWT.READ_ONLY | SWT.BORDER | SWT.V_SCROLL); - * combo.getTableCombo().defineColumns(2); - * combo.getTableCombo().setDisplayColumnIndex(0); - * combo.setLabelProvider(new DiagramTableLabelProvider(parent)); - * - */ - - combo.getControl().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - combo.setContentProvider(ArrayContentProvider.getInstance()); - - // TableCombo doesn't use a ViewerComparator even when one is set - combo.setInput(getOrdering().sortedCopy(elementTypeSets.values())); - - final Button suppressSemanticSuperElementTypes = new Button(parent, SWT.CHECK); - suppressSemanticSuperElementTypes.setLayoutData(new GridData(SWT.FILL, SWT.DEFAULT, false, false, 2, 1)); - suppressSemanticSuperElementTypes.setText("Suppress semantic parent in diagram-specific element types"); - suppressSemanticSuperElementTypes.setSelection(model.getDialogSettings().getBoolean(SUPPRESS_SEMANTIC_SUPERTYPES)); - - ElementTypeSetConfiguration initialSelection = getInitialSelection(); - if (initialSelection != null) { - combo.setSelection(new StructuredSelection(initialSelection)); - elementTypeSetSelectionChanged((IStructuredSelection) combo.getSelection()); - } - combo.addSelectionChangedListener(new ISelectionChangedListener() { - - @Override - public void selectionChanged(SelectionChangedEvent event) { - elementTypeSetSelectionChanged((IStructuredSelection) event.getSelection()); - suppressSemanticSuperElementTypes.setEnabled(!UML_ELEMENT_TYPE_SET.equals(model.getSelectedElementTypeSet())); - model.validatePage(); - } - }); - - setSuppressSemanticSupertypes(suppressSemanticSuperElementTypes.getSelection()); - suppressSemanticSuperElementTypes.setEnabled(!UML_ELEMENT_TYPE_SET.equals(model.getSelectedElementTypeSet())); - suppressSemanticSuperElementTypes.addSelectionListener(new SelectionAdapter() { - @Override - public void widgetSelected(SelectionEvent e) { - setSuppressSemanticSupertypes(suppressSemanticSuperElementTypes.getSelection()); - } - }); - } - - void elementTypeSetSelectionChanged(IStructuredSelection selection) { - if (selection.isEmpty()) { - setElementTypeSet(null); - } else { - setElementTypeSet((ElementTypeSetConfiguration) selection.getFirstElement()); - } - } - - void setElementTypeSet(ElementTypeSetConfiguration elementTypeSet) { - model.setSelectedElementTypeSet((elementTypeSet == null) ? null : elementTypeSets.inverse().get(elementTypeSet)); - } - - void setSuppressSemanticSupertypes(boolean suppress) { - model.setSuppressSemanticSuperElementTypes(suppress); - } - - void save() { - model.getDialogSettings().put(DIAGRAM, model.getSelectedElementTypeSet()); - model.getDialogSettings().put(SUPPRESS_SEMANTIC_SUPERTYPES, model.isSuppressSemanticSuperElementTypes()); - } - - private ElementTypeSetConfiguration getInitialSelection() { - ElementTypeSetConfiguration result = null; - - String id = model.getDialogSettings().get(DIAGRAM); - if (id != null) { - result = elementTypeSets.get(id); - } - - if (result == null) { - result = elementTypeSets.get(UML_ELEMENT_TYPE_SET); - } - - return result; - } - - static String getName(ElementTypeSetConfiguration elementTypeSet) { - String result = elementTypeSet.getName(); - - if (Strings.isNullOrEmpty(result)) { - // Infer a name from the URI - URI uri = elementTypeSet.eResource().getURI(); - result = uri.trimFileExtension().lastSegment(); - } - - return result; - } - - private static Function getNameFunction() { - return new Function() { - @Override - public String apply(ElementTypeSetConfiguration input) { - return getName(input); - } - }; - } - - static String getLocation(ElementTypeSetConfiguration elementTypeSet) { - URI uri = elementTypeSet.eResource().getURI(); - String result; - - if (uri.isPlatformResource()) { - result = uri.trimSegments(1).toPlatformString(true); - } else if (uri.isPlatformPlugin()) { - result = uri.segment(1); - } else { - result = uri.toString(); - } - - return result; - } - - private static Function getLocationFunction() { - return new Function() { - @Override - public String apply(ElementTypeSetConfiguration input) { - return getLocation(input); - } - }; - } - - static Ordering getOrdering() { - Ordering strings = Ordering.from(Policy.getComparator()); - - return strings.onResultOf(getNameFunction()).compound(strings.onResultOf(getLocationFunction())); - } - - // - // Nested types - // - - private static class DiagramListLabelProvider extends LabelProvider implements IStyledLabelProvider { - private ResourceManager images; - - DiagramListLabelProvider(Control owner) { - super(); - - // Because we specify an owner, the owner will take care of clean-up, so we - // don't need a dispose() method of our own - images = new LocalResourceManager(JFaceResources.getResources(), owner); - } - - @Override - public StyledString getStyledText(Object element) { - ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) element; - return new StyledString(getName(elementTypeSet)) // - .append(NLS.bind(" - {0}", getLocation(elementTypeSet)), StyledString.QUALIFIER_STYLER); //$NON-NLS-1$ - } - - @Override - public String getText(Object element) { - ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) element; - return NLS.bind("{0} - {1}", getName(elementTypeSet), getLocation(elementTypeSet)); - } - - @Override - public Image getImage(Object element) { - Image result = null; - - ElementTypeSetConfiguration set = (ElementTypeSetConfiguration) element; - URI uri = set.eResource().getURI(); - - if (uri.isPlatformPlugin()) { - result = (Image) images.get(Activator.getInstance().getIcon("obj16/plugin.gif")); //$NON-NLS-1$ - } else if (uri.isPlatformResource()) { - result = (Image) images.get(Activator.getInstance().getIcon("obj16/project.png")); //$NON-NLS-1$ - } - - return result; - } - } - - /* - * FIXME(Bug 468668): Reinstate this when we can integrate a new Mars (or later) release of the TableCombo. - * cf. https://bugs.eclipse.org/bugs/show_bug.cgi?id=468668 - * - * private static class DiagramTableLabelProvider extends LabelProvider implements IStyledLabelProvider, ITableLabelProvider, ITableColorProvider { - * private static final int COLUMN_NAME = 0; - * private static final int COLUMN_LOCATION = 1; - * - * private ResourceManager images; - * - * DiagramTableLabelProvider(Control owner) { - * super(); - * - * // Because we specify an owner, the owner will take care of clean-up, so we - * // don't need a dispose() method of our own - * images = new LocalResourceManager(JFaceResources.getResources(), owner); - * } - * - * @Override - * public StyledString getStyledText(Object element) { - * return new StyledString(getColumnText(element, COLUMN_NAME)) // - * .append(NLS.bind(" - {0}", getColumnText(element, COLUMN_LOCATION)), StyledString.QUALIFIER_STYLER); //$NON-NLS-1$ - * } - * - * @Override - * public String getColumnText(Object element, int column) { - * ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) element; - * String result; - * - * switch (column) { - * case COLUMN_NAME: - * result = getName(elementTypeSet); - * break; - * case COLUMN_LOCATION: - * result = getLocation(elementTypeSet); - * break; - * default: - * throw new IllegalArgumentException("no such column: " + column); //$NON-NLS-1$ - * } - * - * return result; - * } - * - * @Override - * public Image getColumnImage(Object element, int column) { - * Image result = null; - * - * if (column == COLUMN_NAME) { - * ElementTypeSetConfiguration set = (ElementTypeSetConfiguration) element; - * URI uri = set.eResource().getURI(); - * - * if (uri.isPlatformPlugin()) { - * result = (Image) images.get(Activator.getInstance().getIcon("obj16/plugin.gif")); //$NON-NLS-1$ - * } else if (uri.isPlatformResource()) { - * result = (Image) images.get(Activator.getInstance().getIcon("obj16/project.png")); //$NON-NLS-1$ - * } - * } - * - * return result; - * } - * - * @Override - * public Color getForeground(Object element, int column) { - * Color result = null; - * - * if (column == COLUMN_LOCATION) { - * result = JFaceResources.getColorRegistry().get(JFacePreferences.QUALIFIER_COLOR); - * } - * - * return result; - * } - * - * @Override - * public Color getBackground(Object element, int columnIndex) { - * return null; - * } - * } - * - */ -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorMainPage.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorMainPage.java deleted file mode 100644 index 1e0102b2e52..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorMainPage.java +++ /dev/null @@ -1,78 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.dialogs.WizardNewFileCreationPage; - -/** - * @author damus - * - */ -public class GeneratorMainPage extends WizardNewFileCreationPage implements IGeneratorWizardPage { - - private final GeneratorWizardModel model; - - private GeneratorParametersBlock parametersBlock; - private BaseElementTypeSetBlock diagramBlock; - - public GeneratorMainPage(GeneratorWizardModel model, String title, String description, String fileExtension) { - super("main", model.getDefaultContainerSelection()); //$NON-NLS-1$ - - this.model = model; - - setTitle(title); - setDescription(description); - - setAllowExistingResources(true); - setFileExtension(fileExtension); - setFileName(model.getDefaultFileName()); - } - - @Override - public void createControl(Composite parent) { - Composite self = new Composite(parent, SWT.NONE); - - self.setLayout(new GridLayout(2, false)); - - parametersBlock = new GeneratorParametersBlock(model); - parametersBlock.createControl(self); - diagramBlock = new BaseElementTypeSetBlock(model); - diagramBlock.createControl(self); - - super.createControl(self); - getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); - - setControl(self); - - setPageComplete(validatePage()); - } - - @Override - public void save() { - parametersBlock.save(); - diagramBlock.save(); - } - - @Override - public boolean validatePage() { - model.setContainerPath(getContainerFullPath()); - model.setFileName(getFileName()); - - return super.validatePage() && model.validate(); - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorParametersBlock.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorParametersBlock.java deleted file mode 100644 index 61ee04ac291..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorParametersBlock.java +++ /dev/null @@ -1,119 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards; - -import static com.google.common.base.Strings.isNullOrEmpty; -import static org.eclipse.uml2.common.util.UML2Util.getValidJavaIdentifier; -import static org.eclipse.xtext.xbase.lib.StringExtensions.toFirstLower; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Text; -import org.eclipse.uml2.uml.NamedElement; -import org.eclipse.uml2.uml.Profile; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.uml2.uml.util.UMLUtil; - -import com.google.common.base.Function; -import com.google.common.base.Joiner; -import com.google.common.base.Splitter; -import com.google.common.collect.Iterables; - -/** - * @author damus - * - */ -class GeneratorParametersBlock { - - private static final String IDENTIFIER_PREFIX = "identifierPrefix"; //$NON-NLS-1$ - - private final GeneratorWizardModel model; - - private Text idText; - - public GeneratorParametersBlock(GeneratorWizardModel model) { - super(); - - this.model = model; - } - - public void createControl(Composite parent) { - new Label(parent, SWT.NONE).setText("Identifier:"); - idText = new Text(parent, SWT.BORDER | SWT.SINGLE); - idText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - idText.setText(getDefaultIdentifier()); - model.setIdentifier(getIdentifier()); - - idText.addModifyListener(new ModifyListener() { - - @Override - public void modifyText(ModifyEvent e) { - model.setIdentifier(getIdentifier()); - model.validatePage(); - } - }); - } - - private String getIdentifier() { - return idText.getText().trim(); - } - - void save() { - String identifier = getIdentifier(); - if (!getDefaultIdentifier().equals(identifier)) { - // Only a custom default prefix if the user deviated from the default - final String suffix = "." + getDefaultQualifier(); //$NON-NLS-1$ - if (identifier.endsWith(suffix)) { - // This looks like a custom prefix - model.getDialogSettings().put(IDENTIFIER_PREFIX, identifier.substring(0, identifier.length() - suffix.length())); - } - } - } - - private String getDefaultIdentifier() { - return String.format("%s.%s", getDefaultIdentifierPrefix(), getDefaultQualifier()); - } - - private String getDefaultQualifier() { - return Joiner.on('.').join(Iterables.transform(Splitter.on(NamedElement.SEPARATOR).split(model.getProfile().getQualifiedName()), new Function() { - @Override - public String apply(String input) { - return toFirstLower(getValidJavaIdentifier(input)); - } - })); - } - - private String getDefaultIdentifierPrefix() { - String result = model.getDialogSettings().get(IDENTIFIER_PREFIX); - Profile profile = model.getProfile(); - - Stereotype ePackage = profile.getApplicableStereotype(String.format("%s::%s", UMLUtil.PROFILE__ECORE, UMLUtil.STEREOTYPE__E_PACKAGE)); //$NON-NLS-1$ - if ((ePackage != null) && profile.isStereotypeApplied(ePackage)) { - String basePackage = (String) profile.getValue(ePackage, UMLUtil.TAG_DEFINITION__BASE_PACKAGE); - if (!isNullOrEmpty(basePackage)) { - result = basePackage; - } - } - - if (result == null) { - result = "com.example"; //$NON-NLS-1$ - } - - return result; - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizard.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizard.java deleted file mode 100644 index ef8f57d5510..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizard.java +++ /dev/null @@ -1,168 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards; - -import java.lang.reflect.InvocationTargetException; -import java.util.Arrays; -import java.util.List; -import java.util.concurrent.Callable; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.jface.dialogs.DialogSettings; -import org.eclipse.jface.operation.IRunnableWithProgress; -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.osgi.util.NLS; -import org.eclipse.papyrus.infra.ui.util.UIUtil; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.AbstractGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ElementTypesGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.Activator; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.ide.IDE; -import org.eclipse.ui.statushandlers.StatusManager; -import org.eclipse.uml2.uml.Profile; - -import com.google.common.collect.Iterables; -import com.google.common.collect.Lists; -import com.google.common.util.concurrent.Futures; - -/** - * A wizard for generation of a new tooling model model for a UML Profile. - */ -public class GeneratorWizard extends Wizard { - - private final IWorkbenchPage page; - private final GeneratorWizardModel model; - - public GeneratorWizard(IWorkbenchPage page, Profile profile) { - super(); - - setDialogSettings(DialogSettings.getOrCreateSection(Activator.getInstance().getDialogSettings(), GeneratorWizard.class.getName())); - - this.page = page; - this.model = new GeneratorWizardModel(this, profile, getDialogSettings()); - - setWindowTitle("Generate Element Types Model"); - setHelpAvailable(false); - setNeedsProgressMonitor(true); - } - - @Override - public void addPages() { - super.addPages(); - - addPage(createMainPage(model)); - } - - protected IGeneratorWizardPage createMainPage(GeneratorWizardModel model) { - return new GeneratorMainPage(model, "Element Types Configuration Model", "Enter details of the element types model to generate.", "elementtypesconfigurations"); - } - - private void save() { - for (IGeneratorWizardPage next : Iterables.filter(Arrays.asList(getPages()), IGeneratorWizardPage.class)) { - next.save(); - } - } - - @Override - public boolean performFinish() { - save(); - - final IStatus[] status = { Status.CANCEL_STATUS }; - - try { - getContainer().run(true, false, new IRunnableWithProgress() { - - @Override - public void run(IProgressMonitor monitor) { - status[0] = doPerformFinish(monitor); - } - }); - } catch (InterruptedException e) { - status[0] = Status.CANCEL_STATUS; - } catch (InvocationTargetException e) { - status[0] = new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Model generation failed with an exception.", e.getTargetException()); - } - - if (status[0].matches(IStatus.WARNING | IStatus.ERROR)) { - StatusManager.getManager().handle(status[0], StatusManager.BLOCK | StatusManager.LOG); - } - - return status[0].getSeverity() < IStatus.ERROR; - } - - protected IStatus doPerformFinish(IProgressMonitor monitor) { - IStatus result = Status.OK_STATUS; - - Identifiers identifiers = new Identifiers(); - identifiers.setPrefix(model.getIdentifier()); - identifiers.setBaseElementTypesSet(model.getSelectedElementTypeSet()); - identifiers.setSuppressSemanticSuperElementTypes(model.isSuppressSemanticSuperElementTypes()); - - ComposedAdapterFactory adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); - identifiers.setAdapterFactory(adapterFactory); - - try { - List> generators = Lists.newArrayListWithExpectedSize(1); - addGenerators(generators, identifiers, model); - - monitor.beginTask(NLS.bind("Generating {0}", generators.size() > 1 ? "models" : "model"), generators.size() + 1); - - for (AbstractGenerator next : generators) { - monitor.subTask(next.getLabel()); - - result = next.generate(model.getProfile(), getOutputURI(next, identifiers, model)); - - if (result.getSeverity() >= IStatus.ERROR) { - break; - } - - monitor.worked(1); - } - - if (result.getSeverity() < IStatus.ERROR) { - monitor.subTask("Opening editor"); - try { - Futures.get(UIUtil.syncCall(getShell().getDisplay(), new Callable() { - @Override - public Void call() throws Exception { - IDE.openEditor(page, model.getOutputModelFile()); - return null; - } - }), PartInitException.class); - } catch (PartInitException e) { - result = e.getStatus(); - } - } - } finally { - adapterFactory.dispose(); - monitor.done(); - } - - return result; - } - - protected void addGenerators(List> generators, Identifiers identifiers, GeneratorWizardModel wizardModel) { - generators.add(new ElementTypesGenerator(identifiers)); - } - - protected URI getOutputURI(AbstractGenerator generator, Identifiers identifiers, GeneratorWizardModel wizardModel) { - return wizardModel.getOutputModelURI(); - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizardModel.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizardModel.java deleted file mode 100644 index d06f56d05ad..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/GeneratorWizardModel.java +++ /dev/null @@ -1,164 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards; - -import static com.google.common.base.Strings.isNullOrEmpty; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jface.dialogs.IDialogSettings; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.wizard.IWizard; -import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.papyrus.infra.emf.utils.ResourceUtils; -import org.eclipse.uml2.uml.Profile; - -/** - * @author damus - * - */ -public class GeneratorWizardModel { - - private final IWizard owner; - - private final Profile profile; - - private final IDialogSettings settings; - - private String identifier; - - private String selectedElementTypeSet; - - private IPath containerPath; - - private String fileName; - - private boolean suppressSemanticSuperElementTypes; - - public GeneratorWizardModel(IWizard owner, Profile profile, IDialogSettings settings) { - super(); - - this.owner = owner; - this.profile = profile; - this.settings = settings; - } - - public Profile getProfile() { - return profile; - } - - public IDialogSettings getDialogSettings() { - return settings; - } - - private WizardPage currentPage() { - WizardPage result = (WizardPage) owner.getContainer().getCurrentPage(); - - if (result == null) { - result = (WizardPage) owner.getStartingPage(); - } - - return result; - } - - public void setErrorMessage(String message) { - currentPage().setErrorMessage(message); - } - - public String getIdentifier() { - return identifier; - } - - public void setIdentifier(String identifier) { - this.identifier = identifier; - } - - public String getSelectedElementTypeSet() { - return selectedElementTypeSet; - } - - public void setSelectedElementTypeSet(String selectedElementTypeSet) { - this.selectedElementTypeSet = selectedElementTypeSet; - } - - public void setContainerPath(IPath containerPath) { - this.containerPath = containerPath; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - public void setSuppressSemanticSuperElementTypes(boolean suppressSemanticSuperElementTypes) { - this.suppressSemanticSuperElementTypes = suppressSemanticSuperElementTypes; - } - - public boolean isSuppressSemanticSuperElementTypes() { - return suppressSemanticSuperElementTypes; - } - - public URI getOutputModelURI() { - return URI.createPlatformResourceURI(containerPath.append(fileName).toString(), true); - } - - public IFile getOutputModelFile() { - return ResourcesPlugin.getWorkspace().getRoot().getFile(containerPath.append(fileName)); - } - - public void validatePage() { - WizardPage current = currentPage(); - if (current instanceof IGeneratorWizardPage) { - current.setPageComplete(((IGeneratorWizardPage) current).validatePage()); - } - } - - public boolean validate() { - boolean result = true; - - setErrorMessage(null); - if (isNullOrEmpty(getIdentifier())) { - setErrorMessage("An identifier is required."); - result = false; - } else if (getSelectedElementTypeSet() == null) { - setErrorMessage("A base element type set must be selected."); - result = false; - } - - return result; - } - - IStructuredSelection getDefaultContainerSelection() { - IFile file = ResourceUtils.getFile(getProfile().eResource()); - return (file == null) ? StructuredSelection.EMPTY : new StructuredSelection(file.getParent()); - } - - String getDefaultFileName() { - return trimExtensions(EcoreUtil.getURI(profile).trimFragment()).lastSegment(); - } - - static URI trimExtensions(URI uri) { - URI result = uri.trimFileExtension(); - - while (!result.equals(uri)) { - uri = result; - result = result.trimFileExtension(); - } - - return result; - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/IGeneratorWizardPage.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/IGeneratorWizardPage.java deleted file mode 100644 index 341854645ed..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ui/internal/wizards/IGeneratorWizardPage.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui.internal.wizards; - -import org.eclipse.jface.wizard.IWizardPage; - -/** - * Private protocol common to assistants generator wizard pages. - */ -public interface IGeneratorWizardPage extends IWizardPage { - /** - * Queries whether the current page input is valid and, as a side-effect, sets an error message if necessary. - * - * @return whether the current page input is valid - */ - boolean validatePage(); - - /** - * Saves appropriate user inputs in the dialog settings for future invocations of the wizard. - */ - void save(); -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.classpath b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.classpath deleted file mode 100644 index 3e8bd41bf6b..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.project b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.project deleted file mode 100644 index 01d3cd62461..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.project +++ /dev/null @@ -1,35 +0,0 @@ - - - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.papyrus.emf.facet.common.ProjectNature - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f08be2b06c4..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.ui.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.xtend.core.Xtend.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.xtend.core.Xtend.prefs deleted file mode 100644 index 110a6e417d3..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/.settings/org.eclipse.xtend.core.Xtend.prefs +++ /dev/null @@ -1,30 +0,0 @@ -eclipse.preferences.version=1 -is_project_specific=true -org.eclipse.xtend.core.validation.IssueCodes.api_type_inference=ignore -org.eclipse.xtend.core.validation.IssueCodes.dispatch_plain_function_name_clash=warning -org.eclipse.xtend.core.validation.IssueCodes.implicit_return=ignore -org.eclipse.xtend.core.validation.IssueCodes.invalid_operator_signature=error -org.eclipse.xtend.core.validation.IssueCodes.java_doc_linking=org.eclipse.jdt.core.compiler.problem.invalidJavadoc\:ignore -org.eclipse.xtend.core.validation.IssueCodes.orphan_element=ignore -org.eclipse.xtend.core.validation.IssueCodes.single_case_function=warning -org.eclipse.xtend.core.validation.IssueCodes.unused_private_member=org.eclipse.jdt.core.compiler.problem.unusedPrivateMember\:warning -org.eclipse.xtext.builder.copyJavaProblems=error -org.eclipse.xtext.xbase.validation.IssueCodes.constant_condition=warning -org.eclipse.xtext.xbase.validation.IssueCodes.deprecated_member_reference=org.eclipse.jdt.core.compiler.problem.deprecation\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.discouraged_reference=org.eclipse.jdt.core.compiler.problem.discouragedReference\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.equals_with_null=ignore -org.eclipse.xtext.xbase.validation.IssueCodes.forbidden_reference=org.eclipse.jdt.core.compiler.problem.forbiddenReference\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.import_unsued=org.eclipse.jdt.core.compiler.problem.unusedImport\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.import_wildcard_deprecated=warning -org.eclipse.xtext.xbase.validation.IssueCodes.incomplete_cases_on_enum=warning -org.eclipse.xtext.xbase.validation.IssueCodes.java_style_type_cast=error -org.eclipse.xtext.xbase.validation.IssueCodes.null_safe_feature_call_on_primitive_valued_feature=ignore -org.eclipse.xtext.xbase.validation.IssueCodes.obsolete_cast=org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.obsolete_instanceof=org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.operation_without_parentheses=ignore -org.eclipse.xtext.xbase.validation.IssueCodes.suspiciously_overloaded_feature=warning -org.eclipse.xtext.xbase.validation.IssueCodes.unhandled_exception=ignore -org.eclipse.xtext.xbase.validation.IssueCodes.unreachable_case=error -org.eclipse.xtext.xbase.validation.IssueCodes.unreachable_instance_of=error -org.eclipse.xtext.xbase.validation.IssueCodes.unused_local_variable=org.eclipse.jdt.core.compiler.problem.unusedLocal\:warning -org.eclipse.xtext.xbase.validation.IssueCodes.variable_name_discouraged=warning diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/META-INF/MANIFEST.MF b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/META-INF/MANIFEST.MF deleted file mode 100644 index 6c121be4efc..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/META-INF/MANIFEST.MF +++ /dev/null @@ -1,24 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;bundle-version="2.11.0", - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.uml2.uml;bundle-version="5.1.0", - org.eclipse.xtend.lib;bundle-version="2.8.0", - org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", - com.google.inject;bundle-version="3.0.0", - org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0" -Export-Package: org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator, - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.internal;x-internal:=true -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Localization: plugin -Bundle-Name: %pluginName -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.internal.Activator -Bundle-Description: %pluginDescription -Bundle-SymbolicName: org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/about.html b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/build.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/build.properties deleted file mode 100644 index 5cfa9579cf0..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/build.properties +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2014 Christian W. Damus and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Christian W. Damus - Initial API and implementation - -bin.includes = .,\ - META-INF/,\ - plugin.properties,\ - about.html -jars.compile.order = . -source.. = src/,\ - xtend-gen/ -output.. = bin/ -src.includes = about.html diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/plugin.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/plugin.properties deleted file mode 100644 index a65abd84a2e..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/plugin.properties +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2014 Christian W. Damus and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Christian W. Damus - Initial API and implementation - -pluginName = Papyrus Element Types Configuration Generator for UML Profiles -providerName = Eclipse Modeling Project -pluginDescription = Element types model generation for UML profiles diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/pom.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/pom.xml deleted file mode 100644 index 595eae488fc..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus - org.eclipse.papyrus.uml-assistants - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - 1.2.0-SNAPSHOT - eclipse-plugin - - - - - - - org.apache.maven.plugins - maven-clean-plugin - - - - xtend-gen - - **/.gitignore - - - - - - - - org.eclipse.xtend - xtend-maven-plugin - - - - compile - - - xtend-gen - - - - - - - diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/AbstractGenerator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/AbstractGenerator.java deleted file mode 100644 index e2a92877720..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/AbstractGenerator.java +++ /dev/null @@ -1,153 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator; - -import java.io.IOException; -import java.net.URISyntaxException; -import java.util.Set; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -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.papyrus.infra.emf.utils.EMFHelper; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.internal.Activator; -import org.eclipse.uml2.common.util.UML2Util; - -import com.google.common.base.Strings; -import com.google.common.collect.Sets; -import com.google.inject.Guice; -import com.google.inject.Inject; -import com.google.inject.Injector; - -/** - * Scaffolding for an Xtend model-to-model transformation. - * - * @param - * the kind of model element that I generate from a UML profile - */ -public abstract class AbstractGenerator { - - private final Injector injector; - - @Inject - @InputModel - private EClass inputType; - - @Inject - @OutputModel - private EClass outputType; - - @Inject - private Identifiers identifiers; - - public AbstractGenerator(Identifiers identifiers) { - this(new GeneratorModule(identifiers)); - } - - public AbstractGenerator(GeneratorModule module) { - super(); - - this.injector = Guice.createInjector(module); - injector.injectMembers(this); - } - - public String getLabel() { - String result = identifiers.getLabel(outputType); - - return Strings.isNullOrEmpty(result) ? "output model" : result; - } - - public IStatus generate(URI inputURI, URI outputURI) { - IStatus result; - ResourceSet resourceSet = new ResourceSetImpl(); - - try { - I input = UML2Util.load(resourceSet, inputURI, inputType); - result = generate(input, outputURI); - } finally { - EMFHelper.unload(resourceSet); - } - - return result; - } - - public IStatus generate(I input, URI outputURI) { - IStatus result; - ResourceSet resourceSet = new ResourceSetImpl(); - - try { - Resource output = resourceSet.createResource(outputURI); - - result = generate(input, output.getContents()); - - try { - output.save(null); - } catch (IOException e) { - throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Failed to save output", e)); - } - refreshContainer(outputURI); - } catch (CoreException e) { - result = e.getStatus(); - } finally { - EMFHelper.unload(resourceSet); - } - - return result; - } - - public IStatus generate(I input, EList output) { - IStatus result = Status.OK_STATUS; - - output.add(generate(input)); - - return result; - } - - protected abstract O generate(I input); - - protected void refreshContainer(URI resourceURI) throws CoreException { - if (resourceURI.isPlatformResource()) { - IContainer container = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(resourceURI.toPlatformString(true))).getParent(); - if ((container != null) && container.isAccessible()) { - container.refreshLocal(IResource.DEPTH_ONE, null); - } - } else if (resourceURI.isFile()) { - try { - IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new java.net.URI(resourceURI.toString())); - Set containers = Sets.newHashSet(); - for (IFile next : files) { - containers.add(next.getParent()); - } - - for (IContainer next : containers) { - next.refreshLocal(IResource.DEPTH_ONE, null); - } - } catch (URISyntaxException e) { - throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Bad resource URI", e)); - } - } - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ApplyStereotypeAdviceRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ApplyStereotypeAdviceRule.xtend deleted file mode 100644 index 486d8ac81ab..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ApplyStereotypeAdviceRule.xtend +++ /dev/null @@ -1,46 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import javax.inject.Inject -import javax.inject.Singleton -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory -import org.eclipse.uml2.uml.Stereotype - -/** - * Transformation rule for generating an {@link ApplyStereotypeAdviceConfiguration} from a UML {@link Stereotype}. - */ -@Singleton -class ApplyStereotypeAdviceRule { - static extension ApplyStereotypeAdviceConfigurationFactory applyStereotypeAdviceConfigurationFactory = ApplyStereotypeAdviceConfigurationFactory. - eINSTANCE - - @Inject extension ElementTypeRule - @Inject extension Identifiers - - def create createApplyStereotypeAdviceConfiguration toAdviceConfiguration(Stereotype umlStereotype, - ImpliedExtension umlExtension, ElementTypeConfiguration supertype) { - - identifier = umlStereotype.name.toFirstLower.qualified + supertype.hintSuffix - stereotypesToApply.add(umlStereotype.toStereotypeToApply(supertype)) - target = umlExtension.toElementType(supertype) - } - - private def create createStereotypeToApply toStereotypeToApply(Stereotype umlStereotype, ElementTypeConfiguration supertype) { - requiredProfiles.add(umlStereotype.profile.qualifiedName) - stereotypeQualifiedName = umlStereotype.qualifiedName - updateName = true - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ConfigurationSetRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ConfigurationSetRule.xtend deleted file mode 100644 index ff849b75271..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ConfigurationSetRule.xtend +++ /dev/null @@ -1,60 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * Benoit Maggi - #474408 : order by identifier the generated file - *****************************************************************************/ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import java.util.List -import javax.inject.Inject -import javax.inject.Singleton -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory -import org.eclipse.uml2.uml.Profile -import org.eclipse.uml2.uml.UMLPackage - -/** - * Transformation rule for generating an {@link ElementTypeSetConfiguration} from a UML {@link Profile}. - */ -@Singleton -class ConfigurationSetRule { - static extension ElementtypesconfigurationsFactory elementtypesconfigurationsFactory = ElementtypesconfigurationsFactory. - eINSTANCE - - @Inject extension Identifiers - @Inject extension UML - @Inject extension UMLElementTypes - @Inject extension ElementTypeRule - @Inject extension ApplyStereotypeAdviceRule - - def create createElementTypeSetConfiguration toConfigurationSet(Profile umlProfile) { - - // Initialize the generation of IDs - umlProfile.setIdentifierBase - - identifier = "elementTypes".qualified - metamodelNsURI = baseUMLElementTypeSet?.metamodelNsURI ?: UMLPackage.eNS_URI; - - val List elementTypeConfigurationList = newArrayList() - val List adviceBindingConfigurationList = newArrayList() - - umlProfile.allExtensions.forEach[ext | - elementTypeConfigurationList.addAll(ext.metaclass.diagramSpecificElementTypes.map[ext.toElementType(it)]) - - // We only need to generate advice bindings for element types that won't inherit the from a parent semantic type - val typesNeedingAdvice = ext.metaclass.diagramSpecificElementTypes.filter[!hasSemanticSupertype] - adviceBindingConfigurationList.addAll(typesNeedingAdvice.map[ext.stereotype.toAdviceConfiguration(ext, it)]) - ] - adviceBindingsConfigurations.addAll(adviceBindingConfigurationList.sortBy[identifier]) - elementTypeConfigurations.addAll(elementTypeConfigurationList.sortBy[identifier]) - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypeRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypeRule.xtend deleted file mode 100644 index 99878ba8f53..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypeRule.xtend +++ /dev/null @@ -1,100 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import javax.inject.Inject -import javax.inject.Singleton -import org.eclipse.core.resources.ResourcesPlugin -import org.eclipse.emf.common.util.URI -import org.eclipse.emf.ecore.EObject -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationFactory -import org.eclipse.uml2.uml.Stereotype - -import static extension org.eclipse.emf.common.util.URI.decode -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration - -/** - * Transformation rule for generating a {@link SpecializationTypeConfiguration} from a UML metaclass {@link Extension}. - */ -@Singleton -class ElementTypeRule { - static extension ElementtypesconfigurationsFactory elementtypesconfigurationsFactory = ElementtypesconfigurationsFactory. - eINSTANCE - static extension StereotypeApplicationMatcherConfigurationFactory stereotypeApplicationMatcherConfigurationFactory = StereotypeApplicationMatcherConfigurationFactory. - eINSTANCE - - @Inject extension UMLElementTypes - @Inject extension Identifiers - - def create createSpecializationTypeConfiguration toElementType(ImpliedExtension umlExtension, - ElementTypeConfiguration supertype) { - - // Basics - identifier = umlExtension.toElementTypeID(supertype) - if (supertype.hasSemanticSupertype) { - // Add the base semantic type in addition to the parent visual type - specializedTypesID.add(umlExtension.toElementTypeID(umlExtension.metaclass.elementTypeConfiguration)) - } - specializedTypesID.add(supertype.identifier) - hint = supertype.hint - name = umlExtension.toElementTypeName(supertype) - - // Icon - var icon = umlExtension.stereotype.iconEntry - iconEntry = if(icon != null) icon else umlExtension.metaclass.iconEntry - - // Add stereotype matcher, if it isn't inherited from a semantic supertype - if (!supertype.hasSemanticSupertype) { - matcherConfiguration = umlExtension.toMatcherConfiguration(supertype) - } - } - - private def create createStereotypeApplicationMatcherConfiguration toMatcherConfiguration(ImpliedExtension umlExtension, - ElementTypeConfiguration supertype) { - - stereotypesQualifiedNames.add(umlExtension.stereotype.qualifiedName) - } - - private def getIconEntry(Stereotype stereotype) { - val image = stereotype.icons.findFirst[!location.nullOrEmpty] - if (image != null) { - val uri = URI.createURI(image.location, true) - - if (uri != null) { - createIconEntry => [ - if (uri.platform) { - - // Explicit platform-scheme URI - bundleId = uri.segment(1) - iconPath = "/" + uri.segmentsList.drop(2).join("/", [decode]) - } else if (uri.relative) { - - // Bundle-relative path. Infer the bundle ID from the containing project - bundleId = stereotype.containingProject.name - iconPath = "/" + uri.toString.decode - } else { - - // Absolute URI: use as is; don't decode it - iconPath = uri.toString - } - ] - } - } - } - - private def containingProject(EObject object) { - ResourcesPlugin.workspace.root.getProject(object.eResource.URI.segment(2)) - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypesGenerator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypesGenerator.java deleted file mode 100644 index 39c707ed966..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ElementTypesGenerator.java +++ /dev/null @@ -1,41 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.uml2.uml.Profile; - -import com.google.inject.Inject; - -/** - * The generator facade for the UML Profile to Element Types Set Configuration transformation. - */ -public class ElementTypesGenerator extends AbstractGenerator { - - @Inject - private ConfigurationSetRule mainRule; - - public ElementTypesGenerator(Identifiers identifiers) { - this(new GeneratorModule(identifiers)); - } - - public ElementTypesGenerator(GeneratorModule module) { - super(module); - } - - @Override - protected ElementTypeSetConfiguration generate(Profile profile) { - return mainRule.toConfigurationSet(profile); - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/GeneratorModule.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/GeneratorModule.java deleted file mode 100644 index 6b27f93dd97..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/GeneratorModule.java +++ /dev/null @@ -1,77 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.uml2.uml.UMLPackage; - -import com.google.inject.AbstractModule; - -/** - * The base Guice injector module for the UML Profile to Element Types Set Configuration transformation. - */ -public class GeneratorModule extends AbstractModule { - private final Identifiers identifiers; - - public GeneratorModule(Identifiers identifiers) { - super(); - - this.identifiers = identifiers; - } - - @Override - protected void configure() { - // bind transformation parameters - bindInputType(); - bindOutputType(); - - // bind extensions - bindIdentifiers(); - bindUMLElementTypes(); - - // bind transformation rules - bindConfigurationSetRule(); - bindElementTypeRule(); - bindApplyStereotypeAdviceRule(); - } - - protected void bindInputType() { - bind(EClass.class).annotatedWith(InputModel.class).toInstance(UMLPackage.Literals.PROFILE); - } - - protected void bindOutputType() { - bind(EClass.class).annotatedWith(OutputModel.class).toInstance(ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); - } - - protected void bindIdentifiers() { - bind(Identifiers.class).toInstance(identifiers); - } - - protected void bindUMLElementTypes() { - // Pass - } - - protected void bindConfigurationSetRule() { - // Pass - } - - protected void bindElementTypeRule() { - // Pass - } - - protected void bindApplyStereotypeAdviceRule() { - // Pass - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/Identifiers.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/Identifiers.xtend deleted file mode 100644 index 5c0a0bf4306..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/Identifiers.xtend +++ /dev/null @@ -1,112 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import static extension org.eclipse.uml2.common.util.UML2Util.getValidJavaIdentifier - -import org.eclipse.xtend.lib.annotations.Accessors -import javax.inject.Singleton -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration -import javax.inject.Inject -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration -import org.eclipse.emf.common.notify.AdapterFactory -import org.eclipse.emf.ecore.EObject -import org.eclipse.emf.edit.provider.IItemLabelProvider -import org.eclipse.emf.ecore.EClassifier -import org.eclipse.emf.common.util.ResourceLocator - -/** - * Utility extensions for working with and generating unique identifiers in the element types model. - */ -@Singleton -class Identifiers { - @Inject extension UMLElementTypes - - @Accessors - String prefix - - @Accessors - final String umlElementTypesSet = "org.eclipse.papyrus.uml.service.types.UMLElementTypeSet" - - @Accessors - final String contextId = "org.eclipse.papyrus.infra.services.edit.TypeContext"; - - @Accessors - String baseElementTypesSet = umlElementTypesSet - - @Accessors - ElementTypeSetConfiguration baseElementTypesSetConfiguration - - @Accessors - boolean suppressSemanticSuperElementTypes - - @Accessors - AdapterFactory adapterFactory - - String identifierBase - - def setIdentifierBase(org.eclipse.uml2.uml.Package umlPackage) { - identifierBase = prefix - } - - def getQualified(String id) { - identifierBase + "." + id - } - - def toElementTypeID(ImpliedExtension umlExtension, ElementTypeConfiguration supertype) { - val stereo = umlExtension.stereotype - var name = if (stereo.allExtendedMetaclasses.size <= 1) stereo.name else stereo.name + "_" + umlExtension.metaclass.name - name.validJavaIdentifier.qualified + supertype.hintSuffix - } - - def toElementTypeName(ImpliedExtension umlExtension, ElementTypeConfiguration supertype) { - val stereo = umlExtension.stereotype - val discriminators = newArrayList() => [ - if (stereo.extensions.size > 1) add(umlExtension.metaclass.name) - if (!supertype.hint.nullOrEmpty && (umlExtension.metaclass.diagramSpecificElementTypes.size > 1)) add(supertype.hint) - ] - - if (discriminators.nullOrEmpty) - if (stereo.allExtendedMetaclasses.size <= 1) stereo.name - else stereo.name + " " + umlExtension.metaclass.name - else stereo.name + discriminators.join(" (", ", ", ")")[toString] - } - - def dispatch hintSuffix(ElementTypeConfiguration elementType) { - "" - } - - def dispatch hintSuffix(SpecializationTypeConfiguration elementType) { - if (elementType.hint.nullOrEmpty) "" else "_" + elementType.hint - } - - def dispatch getLabel(EObject object) { - val labels = adapterFactory?.adapt(object, IItemLabelProvider) as IItemLabelProvider - labels?.getText(object) - } - - def dispatch getLabel(EClassifier eClassifier) { - try { - eClassifier.resourceLocator?.getString("_UI_" + eClassifier.name + "_type") - } catch (Exception e) { - eClassifier.name - } - } - - private def ResourceLocator getResourceLocator(EObject object) { - switch adapter : adapterFactory?.adapt(object, IItemLabelProvider) { - ResourceLocator : adapter - } - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ImpliedExtension.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ImpliedExtension.xtend deleted file mode 100644 index aaac942b81c..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/ImpliedExtension.xtend +++ /dev/null @@ -1,28 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import org.eclipse.xtend.lib.annotations.Data -import org.eclipse.uml2.uml.Class -import org.eclipse.uml2.uml.Stereotype - -/** - * An analogue of the UML {@code Extension} metaclass that represents an implied metaclass extension. - * This may be modeled in the profile either directly, via an extension, or indirectly, via an - * inherited extension. - */ -@Data class ImpliedExtension { - Stereotype stereotype - Class metaclass -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/InputModel.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/InputModel.java deleted file mode 100644 index 76ffd1e2ec1..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/InputModel.java +++ /dev/null @@ -1,31 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -import com.google.inject.BindingAnnotation; - -/** - * Injector annotation for the model-to-model transformation's input model type. - */ -@BindingAnnotation -@Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) -public @interface InputModel { - // Empty -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/OutputModel.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/OutputModel.java deleted file mode 100644 index a32889685e7..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/OutputModel.java +++ /dev/null @@ -1,31 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -import com.google.inject.BindingAnnotation; - -/** - * Injector annotation for the model-to-model transformation's output model type. - */ -@BindingAnnotation -@Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) -public @interface OutputModel { - // Empty -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UML.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UML.xtend deleted file mode 100644 index 14e4660082e..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UML.xtend +++ /dev/null @@ -1,117 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import static org.eclipse.uml2.uml.UMLPackage.Literals.* - -import javax.inject.Singleton -import org.eclipse.uml2.uml.NamedElement -import org.eclipse.uml2.uml.Stereotype -import org.eclipse.uml2.uml.Profile -import org.eclipse.emf.ecore.EClass -import org.eclipse.emf.ecore.EReference -import java.util.Set - -/** - * Utility extensions for working with UML models and elements. - */ -@Singleton -class UML { - - // Each of these corresponds to a case in the getSourceReferences(...) and getTargetReferences(...) extensions - final Set relationshipLikeUMLMetaclasses = #{ RELATIONSHIP, GENERALIZATION_SET, CONNECTOR, ACTIVITY_EDGE, TRANSITION, MESSAGE } - - def dispatch getProfile(Profile element) { - element - } - - def dispatch getProfile(NamedElement element) { - element.allOwningPackages.filter(Profile).head - } - - def dispatch getProfile(ImpliedExtension umlExtension) { - umlExtension.stereotype.profile - } - - def dispatch Profile getRootProfile(Profile element) { - element.namespace?.rootProfile ?: element - } - def dispatch getRootProfile(NamedElement element) { - element.allOwningPackages.filter(Profile).last - } - - def Iterable getAllExtensions(org.eclipse.uml2.uml.Package package_) { - package_.ownedTypes.filter(Stereotype).map[impliedExtensions].flatten - + package_.nestedPackages.map[allExtensions].flatten - } - - def Iterable impliedExtensions(Stereotype stereotype) { - stereotype.allExtendedMetaclasses.map[new ImpliedExtension(stereotype, it)] - } - - def isRelationship(EClass eClass) { - relationshipLikeUMLMetaclasses.exists[isSuperTypeOf(eClass)] - } - - def getSourceReferences(EClass relationshipClass) { - switch relationshipClass { - case DIRECTED_RELATIONSHIP.isSuperTypeOf(relationshipClass): - relationshipClass.EAllReferences.filter[!derived && changeable && subsets(DIRECTED_RELATIONSHIP__SOURCE)] - case ASSOCIATION.isSuperTypeOf(relationshipClass): - // ends are both source and target - #[ASSOCIATION__END_TYPE] - case CONNECTOR.isSuperTypeOf(relationshipClass): - // ends are both source and target - #[CONNECTOR__END] - case ACTIVITY_EDGE.isSuperTypeOf(relationshipClass): - #[ACTIVITY_EDGE__SOURCE] - case TRANSITION.isSuperTypeOf(relationshipClass): - #[TRANSITION__SOURCE] - case MESSAGE.isSuperTypeOf(relationshipClass): - #[MESSAGE__SEND_EVENT] - case GENERALIZATION_SET.isSuperTypeOf(relationshipClass): - // generalization sets just connect a bunch of generalizations - #[GENERALIZATION_SET__GENERALIZATION] - default: - #[] - } - } - - def getTargetReferences(EClass relationshipClass) { - switch relationshipClass { - case DIRECTED_RELATIONSHIP.isSuperTypeOf(relationshipClass): - relationshipClass.EAllReferences.filter[!derived && changeable && subsets(DIRECTED_RELATIONSHIP__TARGET)] - case ASSOCIATION.isSuperTypeOf(relationshipClass): - // ends are both source and target - #[ASSOCIATION__END_TYPE] - case CONNECTOR.isSuperTypeOf(relationshipClass): - // ends are both source and target - #[CONNECTOR__END] - case ACTIVITY_EDGE.isSuperTypeOf(relationshipClass): - #[ACTIVITY_EDGE__TARGET] - case TRANSITION.isSuperTypeOf(relationshipClass): - #[TRANSITION__TARGET] - case MESSAGE.isSuperTypeOf(relationshipClass): - #[MESSAGE__RECEIVE_EVENT] - case GENERALIZATION_SET.isSuperTypeOf(relationshipClass): - // generalization sets just connect a bunch of generalizations - #[GENERALIZATION_SET__GENERALIZATION] - default: - #[] - } - } - - def subsets(EReference subset, EReference superset) { - subset.getEAnnotation("subsets")?.references?.contains(superset) - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UMLElementTypes.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UMLElementTypes.xtend deleted file mode 100644 index 47dae5a4a72..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/UMLElementTypes.xtend +++ /dev/null @@ -1,226 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014, 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - -import javax.inject.Inject -import javax.inject.Singleton -import org.eclipse.emf.ecore.EClass -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry -import org.eclipse.gmf.runtime.emf.type.core.IElementType -import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType -import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsFactory -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry -import org.eclipse.papyrus.infra.elementtypesconfigurations.MetamodelTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry -import org.eclipse.uml2.uml.Class -import org.eclipse.uml2.uml.UMLPackage -import java.util.regex.Pattern - -/** - * Utility extensions for working with and generating objects for the base UML element types specialized by the profile. - */ -@Singleton -class UMLElementTypes { - private static final Pattern VISUAL_ID_PATTERN = Pattern.compile("\\d{4}"); - - static extension ElementtypesconfigurationsFactory elementtypesconfigurationsFactory = ElementtypesconfigurationsFactory. - eINSTANCE - - @Inject extension Identifiers - @Inject extension UML - - def getElementTypeID(Class metaclass) { - "org.eclipse.papyrus.uml." + metaclass.name - } - - def getElementTypeConfiguration(Class metaclass) { - baseUMLElementTypeSet.elementTypeConfigurations.findFirst[identifier == metaclass.elementTypeID] - } - - def getBaseUMLElementTypeSet() { - ElementTypeSetConfigurationRegistry.getInstance.getElementTypeSetConfigurations().get(contextId).get(umlElementTypesSet) - } - - def getBaseUMLElementTypes() { - baseUMLElementTypeSet.elementTypeConfigurations.map [ - ElementTypeRegistry.getInstance.getType(identifier) - ].filterNull - } - - def getEClass(Class metaclass) { - UMLPackage.eINSTANCE.getEClassifier(metaclass.name) as EClass - } - - def getIconEntry(Class metaclass) { - metaclass.elementTypeConfiguration?.iconEntry.copy() - } - - private def copy(IconEntry prototype) { - createIconEntry() => [ - bundleId = prototype.bundleId - iconPath = prototype.iconPath - ] - } - - def getBaseElementTypeSet() { - baseElementTypesSetConfiguration ?: ElementTypeSetConfigurationRegistry.getInstance.getElementTypeSetConfigurations().get(contextId).get(baseElementTypesSet) - } - - def getBaseElementTypes() { - baseElementTypeSet.elementTypeConfigurations.filter[validType] - } - - def validType(ElementTypeConfiguration elementType) { - elementType.metaclass != null; - } - - private def isDiagramSpecific() { - baseElementTypeSet != baseUMLElementTypeSet - } - - def isDiagramSpecific(ElementTypeConfiguration type) { - type.hint.isVisualID - } - - def hasSemanticSupertype(ElementTypeConfiguration type) { - type.isDiagramSpecific && !suppressSemanticSuperElementTypes - } - - private def isVisualID(String string) { - !string.nullOrEmpty && VISUAL_ID_PATTERN.matcher(string).matches - } - - def getDiagramSpecificElementTypes(Class metaclass) { - // If we're based on the UML element types, themselves, then we're not looking for specializations - if (!diagramSpecific) - baseUMLElementTypeSet.elementTypeConfigurations.filter [ - validType && (identifier == metaclass.elementTypeID) - ] - else - baseElementTypeSet.elementTypeConfigurations.filter(SpecializationTypeConfiguration).filter [ - validType && specializedTypesID.contains(metaclass.elementTypeID) - ] - } - - private def canContain(IElementType containerType, EClass containedEClass) { - containerType.EClass.EAllContainments.exists[EReferenceType.isSuperTypeOf(containedEClass)] - } - - private def canContain(ElementTypeConfiguration containerType, EClass containedEClass) { - ElementTypeRegistry.getInstance.getType(containerType.identifier)?.canContain(containedEClass) - } - - def dispatch canContainType(ElementTypeConfiguration containerType, ElementTypeConfiguration containedTypeConfiguration) { - false - } - - def dispatch canContainType(ElementTypeConfiguration containerType, MetamodelTypeConfiguration containedTypeConfiguration) { - containerType.canContain(containedTypeConfiguration.EClass) - } - - def dispatch canContainType(ElementTypeConfiguration containerType, SpecializationTypeConfiguration containedTypeConfiguration) { - containedTypeConfiguration.specializedTypesID.exists [ supertype | - containerType.canContain(ElementTypeRegistry.getInstance.getType(supertype).EClass) - ] - } - - def isRelationship(IElementType elementType) { - // If the EClass is null, then assume it's something like the Constraint::annotatedElement reference type - // which is like a relationship - (elementType.EClass == null) || elementType.EClass.relationship - } - - def isRelationship(ElementTypeConfiguration elementType) { - // If the EClass is null, then assume it's something like the Constraint::annotatedElement reference type - // which is like a relationship - (elementType.metaclass == null) || elementType.metaclass.relationship - } - - private def dispatch EClass getMetaclass(ElementTypeConfiguration elementType) { - null - } - - private def dispatch EClass getMetaclass(SpecializationTypeConfiguration elementType) { - var IElementType registered = ElementTypeRegistry.instance.getType(elementType.identifier) - if (registered != null) { - registered.metaclass - } else { - elementType.specializedTypesID.map[ElementTypeRegistry.instance.getType(it)].filterNull.head?.EClass - } - } - - private def dispatch EClass getMetaclass(MetamodelTypeConfiguration elementType) { - elementType.EClass - } - - private def dispatch EClass getMetaclass(IElementType elementType) { - null - } - - private def dispatch EClass getMetaclass(IMetamodelType elementType) { - elementType.EClass - } - - private def dispatch EClass getMetaclass(ISpecializationType elementType) { - elementType.metamodelType?.EClass - } - - private def canSourceTo(IElementType sourceType, EClass relationshipEClass) { - relationshipEClass.sourceReferences.exists[EReferenceType.isSuperTypeOf(sourceType.EClass)] - } - - private def canSourceTo(ElementTypeConfiguration sourceType, EClass relationshipEClass) { - ElementTypeRegistry.getInstance.getType(sourceType?.identifier)?.canSourceTo(relationshipEClass) - } - - def dispatch canSourceToType(ElementTypeConfiguration sourceType, ElementTypeConfiguration relationshipTypeConfiguration) { - false - } - - def dispatch canSourceToType(ElementTypeConfiguration sourceType, MetamodelTypeConfiguration relationshipTypeConfiguration) { - sourceType.canSourceTo(relationshipTypeConfiguration.EClass) - } - - def dispatch canSourceToType(ElementTypeConfiguration sourceType, SpecializationTypeConfiguration relationshipTypeConfiguration) { - relationshipTypeConfiguration.specializedTypesID.exists [ supertypeID | - val supertype = ElementTypeRegistry.getInstance.getType(supertypeID) - (supertype != null) && supertype.EClass.isRelationship && sourceType.canSourceTo(supertype.EClass) - ] - } - - private def canTargetFrom(IElementType targetType, EClass relationshipEClass) { - relationshipEClass.targetReferences.exists[EReferenceType.isSuperTypeOf(targetType.EClass)] - } - - private def canTargetFrom(ElementTypeConfiguration targetType, EClass relationshipEClass) { - ElementTypeRegistry.getInstance.getType(targetType?.identifier)?.canTargetFrom(relationshipEClass) - } - - def dispatch canTargetFromType(ElementTypeConfiguration targetType, ElementTypeConfiguration relationshipTypeConfiguration) { - false - } - - def dispatch canTargetFromType(ElementTypeConfiguration targetType, MetamodelTypeConfiguration relationshipTypeConfiguration) { - targetType.canTargetFrom(relationshipTypeConfiguration.EClass) - } - - def dispatch canTargetFromType(ElementTypeConfiguration targetType, SpecializationTypeConfiguration relationshipTypeConfiguration) { - relationshipTypeConfiguration.specializedTypesID.exists [ supertypeID | - val supertype = ElementTypeRegistry.getInstance.getType(supertypeID) - (supertype != null) && supertype.EClass.isRelationship && targetType.canTargetFrom(supertype.EClass) - ] - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/internal/Activator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/internal/Activator.java deleted file mode 100644 index aea9e7f6618..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/internal/Activator.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) 2014 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - */ -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.internal; - -import org.eclipse.core.runtime.Plugin; -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.osgi.framework.BundleContext; - -/** - * This is the central singleton for the UML Profile Element Types Configuration ElementTypesGenerator plugin. - */ -public final class Activator extends Plugin { - public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator"; //$NON-NLS-1$ - - /** - * Keep track of the singleton. - */ - private static Activator INSTANCE; - - /** Logging helper */ - public static LogHelper log = new LogHelper(); - - public Activator() { - super(); - } - - public static Activator getInstance() { - return INSTANCE; - } - - @Override - public void start(BundleContext context) throws Exception { - INSTANCE = this; - log.setPlugin(this); - - super.start(context); - } -} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/xtend-gen/.gitignore b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/xtend-gen/.gitignore deleted file mode 100644 index ee1d87867e7..00000000000 --- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator/xtend-gen/.gitignore +++ /dev/null @@ -1 +0,0 @@ -org/ diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.classpath b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.classpath new file mode 100644 index 00000000000..098194ca4b7 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.project b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.project new file mode 100644 index 00000000000..4e3786687a1 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.project @@ -0,0 +1,29 @@ + + + org.eclipse.papyrus.uml.profile.types.generator.ui + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.papyrus.emf.facet.common.ProjectNature + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f08be2b06c4 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.ui.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/META-INF/MANIFEST.MF b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..cbb2d4def1b --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/META-INF/MANIFEST.MF @@ -0,0 +1,35 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;bundle-version="2.11.0", + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0", + org.eclipse.uml2.uml;bundle-version="5.1.0", + org.eclipse.xtext.xbase.lib;bundle-version="2.8.0", + org.eclipse.xtend.lib;bundle-version="2.8.0", + org.eclipse.xtend.lib.macro;bundle-version="2.8.0", + org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", + com.google.inject;bundle-version="3.0.0", + org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator;bundle-version="1.2.0", + org.eclipse.ui;bundle-version="3.107.0", + org.eclipse.papyrus.infra.core;bundle-version="1.2.0", + org.eclipse.papyrus.uml.diagram.wizards;bundle-version="1.2.0", + org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.2.0", + org.eclipse.ui.ide;bundle-version="3.10.100", + org.eclipse.papyrus.infra.tools;bundle-version="1.2.0", + org.eclipse.papyrus.infra.ui;bundle-version="1.2.0" +Export-Package: org.eclipse.papyrus.uml.profile.types.generator.ui.internal, + org.eclipse.papyrus.uml.profile.types.generator.ui.internal.handlers, + org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards;x-friends:="org.eclipse.papyrus.uml.profile.assistants.generator.ui" +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Localization: plugin +Bundle-Name: %pluginName +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.uml.profile.types.generator.ui.internal.Activator +Bundle-Description: %pluginDescription +Bundle-SymbolicName: org.eclipse.papyrus.uml.profile.types.generator.ui;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/about.html b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/build.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/build.properties new file mode 100644 index 00000000000..31c15b846e8 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/build.properties @@ -0,0 +1,20 @@ +# Copyright (c) 2015 Christian W. Damus and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Christian W. Damus - Initial API and implementation + +bin.includes = .,\ + META-INF/,\ + plugin.properties,\ + about.html,\ + plugin.xml,\ + icons/ +jars.compile.order = . +source.. = src/ +output.. = bin/ +src.includes = about.html diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/plugin.gif b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/plugin.gif new file mode 100644 index 00000000000..8493df40dfe Binary files /dev/null and b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/plugin.gif differ diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/project.png b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/project.png new file mode 100644 index 00000000000..154776ea14e Binary files /dev/null and b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/icons/full/obj16/project.png differ diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.properties new file mode 100644 index 00000000000..3ff1edb84b8 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.properties @@ -0,0 +1,13 @@ +# Copyright (c) 2015 Christian W. Damus and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Christian W. Damus - Initial API and implementation + +pluginName = Papyrus Element Types Configuration Generator for UML Profiles +providerName = Eclipse Modeling Project +pluginDescription = User interface for generation of Element Type Configuration models for UML profiles diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.xml new file mode 100644 index 00000000000..9953366b8ba --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/plugin.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/pom.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/pom.xml new file mode 100644 index 00000000000..bb8f47eb822 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus.uml-assistants + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.uml.profile.types.generator.ui + 1.2.0-SNAPSHOT + eclipse-plugin + \ No newline at end of file diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/Activator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/Activator.java new file mode 100644 index 00000000000..79fa26470e0 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/Activator.java @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + */ +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.papyrus.infra.core.log.LogHelper; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * This is the central singleton for the UML Profile Element Types Generator UI plugin. + */ +public final class Activator extends AbstractUIPlugin { + public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.profile.types.generator.ui"; //$NON-NLS-1$ + + /** + * Keep track of the singleton. + */ + private static Activator INSTANCE; + + /** Logging helper */ + public static LogHelper log = new LogHelper(); + + public Activator() { + super(); + } + + public static Activator getInstance() { + return INSTANCE; + } + + @Override + public void start(BundleContext context) throws Exception { + INSTANCE = this; + log.setPlugin(this); + + super.start(context); + } + + public ImageDescriptor getIcon(String path) { + if (!path.startsWith("/")) { + path = "$nl$/icons/full/" + path; //$NON-NLS-1$ + } + return imageDescriptorFromPlugin(PLUGIN_ID, path); + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/handlers/GenerateElementTypesHandler.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/handlers/GenerateElementTypesHandler.java new file mode 100644 index 00000000000..639b7dcb2a4 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/handlers/GenerateElementTypesHandler.java @@ -0,0 +1,62 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.handlers; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.wizard.WizardDialog; +import org.eclipse.papyrus.infra.emf.utils.EMFHelper; +import org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards.GeneratorWizard; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.handlers.HandlerUtil; +import org.eclipse.uml2.uml.Profile; + +/** + * @author damus + * + */ +public class GenerateElementTypesHandler extends AbstractHandler { + + /** + * Constructor. + * + */ + public GenerateElementTypesHandler() { + super(); + } + + @Override + public Object execute(ExecutionEvent event) throws ExecutionException { + ISelection selection = HandlerUtil.getCurrentSelection(event); + if (selection instanceof IStructuredSelection) { + IStructuredSelection sselection = (IStructuredSelection) selection; + if (!sselection.isEmpty()) { + EObject eObject = EMFHelper.getEObject(sselection.getFirstElement()); + if (eObject instanceof Profile) { + IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindowChecked(event).getActivePage(); + GeneratorWizard wizard = new GeneratorWizard(page, (Profile) eObject); + WizardDialog dlg = new WizardDialog(HandlerUtil.getActiveShellChecked(event), wizard); + dlg.open(); + } + } + } + + return null; + } + +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/BaseElementTypeSetBlock.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/BaseElementTypeSetBlock.java new file mode 100644 index 00000000000..c2258bf4ae6 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/BaseElementTypeSetBlock.java @@ -0,0 +1,340 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.jface.resource.JFaceResources; +import org.eclipse.jface.resource.LocalResourceManager; +import org.eclipse.jface.resource.ResourceManager; +import org.eclipse.jface.util.Policy; +import org.eclipse.jface.viewers.ArrayContentProvider; +import org.eclipse.jface.viewers.ComboViewer; +import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.viewers.StyledString; +import org.eclipse.osgi.util.NLS; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.papyrus.uml.profile.types.generator.ui.internal.Activator; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Label; + +import com.google.common.base.Function; +import com.google.common.base.Strings; +import com.google.common.collect.BiMap; +import com.google.common.collect.HashBiMap; +import com.google.common.collect.Ordering; + +/** + * Composable block of widgets for selection of the element types set on which to base the generated element types model. + */ +class BaseElementTypeSetBlock { + + private static final String DIAGRAM = "diagram"; //$NON-NLS-1$ + + private static final String SUPPRESS_SEMANTIC_SUPERTYPES = "suppressSemanticSupertypes"; //$NON-NLS-1$ + + private static final String UML_ELEMENT_TYPE_SET = "org.eclipse.papyrus.uml.service.types.UMLElementTypeSet"; //$NON-NLS-1$ + + private static final String CONTEXT_ID = "org.eclipse.papyrus.infra.services.edit.TypeContext"; + + private final GeneratorWizardModel model; + + private final BiMap elementTypeSets; + + public BaseElementTypeSetBlock(GeneratorWizardModel model) { + super(); + + this.model = model; + this.elementTypeSets = HashBiMap.create(ElementTypeSetConfigurationRegistry.getInstance().getElementTypeSetConfigurations().get(CONTEXT_ID)); + } + + public void createControl(Composite parent) { + new Label(parent, SWT.NONE).setText("Base element types set:"); + + ComboViewer combo = new ComboViewer(new Combo(parent, SWT.READ_ONLY | SWT.DROP_DOWN)); + combo.setLabelProvider(new DiagramListLabelProvider(parent)); + + /* + * FIXME(Bug 468668): Reinstate this when we can integrate a new Mars (or later) release of the TableCombo. + * cf. https://bugs.eclipse.org/bugs/show_bug.cgi?id=468668 + * + * // Use a two-column table because styled label providers don't work in the TableComboViewer + * TableComboViewer combo = new TableComboViewer(parent, SWT.READ_ONLY | SWT.BORDER | SWT.V_SCROLL); + * combo.getTableCombo().defineColumns(2); + * combo.getTableCombo().setDisplayColumnIndex(0); + * combo.setLabelProvider(new DiagramTableLabelProvider(parent)); + * + */ + + combo.getControl().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); + combo.setContentProvider(ArrayContentProvider.getInstance()); + + // TableCombo doesn't use a ViewerComparator even when one is set + combo.setInput(getOrdering().sortedCopy(elementTypeSets.values())); + + final Button suppressSemanticSuperElementTypes = new Button(parent, SWT.CHECK); + suppressSemanticSuperElementTypes.setLayoutData(new GridData(SWT.FILL, SWT.DEFAULT, false, false, 2, 1)); + suppressSemanticSuperElementTypes.setText("Suppress semantic parent in diagram-specific element types"); + suppressSemanticSuperElementTypes.setSelection(model.getDialogSettings().getBoolean(SUPPRESS_SEMANTIC_SUPERTYPES)); + + ElementTypeSetConfiguration initialSelection = getInitialSelection(); + if (initialSelection != null) { + combo.setSelection(new StructuredSelection(initialSelection)); + elementTypeSetSelectionChanged((IStructuredSelection) combo.getSelection()); + } + combo.addSelectionChangedListener(new ISelectionChangedListener() { + + @Override + public void selectionChanged(SelectionChangedEvent event) { + elementTypeSetSelectionChanged((IStructuredSelection) event.getSelection()); + suppressSemanticSuperElementTypes.setEnabled(!UML_ELEMENT_TYPE_SET.equals(model.getSelectedElementTypeSet())); + model.validatePage(); + } + }); + + setSuppressSemanticSupertypes(suppressSemanticSuperElementTypes.getSelection()); + suppressSemanticSuperElementTypes.setEnabled(!UML_ELEMENT_TYPE_SET.equals(model.getSelectedElementTypeSet())); + suppressSemanticSuperElementTypes.addSelectionListener(new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent e) { + setSuppressSemanticSupertypes(suppressSemanticSuperElementTypes.getSelection()); + } + }); + } + + void elementTypeSetSelectionChanged(IStructuredSelection selection) { + if (selection.isEmpty()) { + setElementTypeSet(null); + } else { + setElementTypeSet((ElementTypeSetConfiguration) selection.getFirstElement()); + } + } + + void setElementTypeSet(ElementTypeSetConfiguration elementTypeSet) { + model.setSelectedElementTypeSet((elementTypeSet == null) ? null : elementTypeSets.inverse().get(elementTypeSet)); + } + + void setSuppressSemanticSupertypes(boolean suppress) { + model.setSuppressSemanticSuperElementTypes(suppress); + } + + void save() { + model.getDialogSettings().put(DIAGRAM, model.getSelectedElementTypeSet()); + model.getDialogSettings().put(SUPPRESS_SEMANTIC_SUPERTYPES, model.isSuppressSemanticSuperElementTypes()); + } + + private ElementTypeSetConfiguration getInitialSelection() { + ElementTypeSetConfiguration result = null; + + String id = model.getDialogSettings().get(DIAGRAM); + if (id != null) { + result = elementTypeSets.get(id); + } + + if (result == null) { + result = elementTypeSets.get(UML_ELEMENT_TYPE_SET); + } + + return result; + } + + static String getName(ElementTypeSetConfiguration elementTypeSet) { + String result = elementTypeSet.getName(); + + if (Strings.isNullOrEmpty(result)) { + // Infer a name from the URI + URI uri = elementTypeSet.eResource().getURI(); + result = uri.trimFileExtension().lastSegment(); + } + + return result; + } + + private static Function getNameFunction() { + return new Function() { + @Override + public String apply(ElementTypeSetConfiguration input) { + return getName(input); + } + }; + } + + static String getLocation(ElementTypeSetConfiguration elementTypeSet) { + URI uri = elementTypeSet.eResource().getURI(); + String result; + + if (uri.isPlatformResource()) { + result = uri.trimSegments(1).toPlatformString(true); + } else if (uri.isPlatformPlugin()) { + result = uri.segment(1); + } else { + result = uri.toString(); + } + + return result; + } + + private static Function getLocationFunction() { + return new Function() { + @Override + public String apply(ElementTypeSetConfiguration input) { + return getLocation(input); + } + }; + } + + static Ordering getOrdering() { + Ordering strings = Ordering.from(Policy.getComparator()); + + return strings.onResultOf(getNameFunction()).compound(strings.onResultOf(getLocationFunction())); + } + + // + // Nested types + // + + private static class DiagramListLabelProvider extends LabelProvider implements IStyledLabelProvider { + private ResourceManager images; + + DiagramListLabelProvider(Control owner) { + super(); + + // Because we specify an owner, the owner will take care of clean-up, so we + // don't need a dispose() method of our own + images = new LocalResourceManager(JFaceResources.getResources(), owner); + } + + @Override + public StyledString getStyledText(Object element) { + ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) element; + return new StyledString(getName(elementTypeSet)) // + .append(NLS.bind(" - {0}", getLocation(elementTypeSet)), StyledString.QUALIFIER_STYLER); //$NON-NLS-1$ + } + + @Override + public String getText(Object element) { + ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) element; + return NLS.bind("{0} - {1}", getName(elementTypeSet), getLocation(elementTypeSet)); + } + + @Override + public Image getImage(Object element) { + Image result = null; + + ElementTypeSetConfiguration set = (ElementTypeSetConfiguration) element; + URI uri = set.eResource().getURI(); + + if (uri.isPlatformPlugin()) { + result = (Image) images.get(Activator.getInstance().getIcon("obj16/plugin.gif")); //$NON-NLS-1$ + } else if (uri.isPlatformResource()) { + result = (Image) images.get(Activator.getInstance().getIcon("obj16/project.png")); //$NON-NLS-1$ + } + + return result; + } + } + + /* + * FIXME(Bug 468668): Reinstate this when we can integrate a new Mars (or later) release of the TableCombo. + * cf. https://bugs.eclipse.org/bugs/show_bug.cgi?id=468668 + * + * private static class DiagramTableLabelProvider extends LabelProvider implements IStyledLabelProvider, ITableLabelProvider, ITableColorProvider { + * private static final int COLUMN_NAME = 0; + * private static final int COLUMN_LOCATION = 1; + * + * private ResourceManager images; + * + * DiagramTableLabelProvider(Control owner) { + * super(); + * + * // Because we specify an owner, the owner will take care of clean-up, so we + * // don't need a dispose() method of our own + * images = new LocalResourceManager(JFaceResources.getResources(), owner); + * } + * + * @Override + * public StyledString getStyledText(Object element) { + * return new StyledString(getColumnText(element, COLUMN_NAME)) // + * .append(NLS.bind(" - {0}", getColumnText(element, COLUMN_LOCATION)), StyledString.QUALIFIER_STYLER); //$NON-NLS-1$ + * } + * + * @Override + * public String getColumnText(Object element, int column) { + * ElementTypeSetConfiguration elementTypeSet = (ElementTypeSetConfiguration) element; + * String result; + * + * switch (column) { + * case COLUMN_NAME: + * result = getName(elementTypeSet); + * break; + * case COLUMN_LOCATION: + * result = getLocation(elementTypeSet); + * break; + * default: + * throw new IllegalArgumentException("no such column: " + column); //$NON-NLS-1$ + * } + * + * return result; + * } + * + * @Override + * public Image getColumnImage(Object element, int column) { + * Image result = null; + * + * if (column == COLUMN_NAME) { + * ElementTypeSetConfiguration set = (ElementTypeSetConfiguration) element; + * URI uri = set.eResource().getURI(); + * + * if (uri.isPlatformPlugin()) { + * result = (Image) images.get(Activator.getInstance().getIcon("obj16/plugin.gif")); //$NON-NLS-1$ + * } else if (uri.isPlatformResource()) { + * result = (Image) images.get(Activator.getInstance().getIcon("obj16/project.png")); //$NON-NLS-1$ + * } + * } + * + * return result; + * } + * + * @Override + * public Color getForeground(Object element, int column) { + * Color result = null; + * + * if (column == COLUMN_LOCATION) { + * result = JFaceResources.getColorRegistry().get(JFacePreferences.QUALIFIER_COLOR); + * } + * + * return result; + * } + * + * @Override + * public Color getBackground(Object element, int columnIndex) { + * return null; + * } + * } + * + */ +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorMainPage.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorMainPage.java new file mode 100644 index 00000000000..25b18ab5871 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorMainPage.java @@ -0,0 +1,78 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards; + +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.dialogs.WizardNewFileCreationPage; + +/** + * @author damus + * + */ +public class GeneratorMainPage extends WizardNewFileCreationPage implements IGeneratorWizardPage { + + private final GeneratorWizardModel model; + + private GeneratorParametersBlock parametersBlock; + private BaseElementTypeSetBlock diagramBlock; + + public GeneratorMainPage(GeneratorWizardModel model, String title, String description, String fileExtension) { + super("main", model.getDefaultContainerSelection()); //$NON-NLS-1$ + + this.model = model; + + setTitle(title); + setDescription(description); + + setAllowExistingResources(true); + setFileExtension(fileExtension); + setFileName(model.getDefaultFileName()); + } + + @Override + public void createControl(Composite parent) { + Composite self = new Composite(parent, SWT.NONE); + + self.setLayout(new GridLayout(2, false)); + + parametersBlock = new GeneratorParametersBlock(model); + parametersBlock.createControl(self); + diagramBlock = new BaseElementTypeSetBlock(model); + diagramBlock.createControl(self); + + super.createControl(self); + getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); + + setControl(self); + + setPageComplete(validatePage()); + } + + @Override + public void save() { + parametersBlock.save(); + diagramBlock.save(); + } + + @Override + public boolean validatePage() { + model.setContainerPath(getContainerFullPath()); + model.setFileName(getFileName()); + + return super.validatePage() && model.validate(); + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorParametersBlock.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorParametersBlock.java new file mode 100644 index 00000000000..212a61dda0c --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorParametersBlock.java @@ -0,0 +1,119 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards; + +import static com.google.common.base.Strings.isNullOrEmpty; +import static org.eclipse.uml2.common.util.UML2Util.getValidJavaIdentifier; +import static org.eclipse.xtext.xbase.lib.StringExtensions.toFirstLower; + +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.Profile; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.util.UMLUtil; + +import com.google.common.base.Function; +import com.google.common.base.Joiner; +import com.google.common.base.Splitter; +import com.google.common.collect.Iterables; + +/** + * @author damus + * + */ +class GeneratorParametersBlock { + + private static final String IDENTIFIER_PREFIX = "identifierPrefix"; //$NON-NLS-1$ + + private final GeneratorWizardModel model; + + private Text idText; + + public GeneratorParametersBlock(GeneratorWizardModel model) { + super(); + + this.model = model; + } + + public void createControl(Composite parent) { + new Label(parent, SWT.NONE).setText("Identifier:"); + idText = new Text(parent, SWT.BORDER | SWT.SINGLE); + idText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); + idText.setText(getDefaultIdentifier()); + model.setIdentifier(getIdentifier()); + + idText.addModifyListener(new ModifyListener() { + + @Override + public void modifyText(ModifyEvent e) { + model.setIdentifier(getIdentifier()); + model.validatePage(); + } + }); + } + + private String getIdentifier() { + return idText.getText().trim(); + } + + void save() { + String identifier = getIdentifier(); + if (!getDefaultIdentifier().equals(identifier)) { + // Only a custom default prefix if the user deviated from the default + final String suffix = "." + getDefaultQualifier(); //$NON-NLS-1$ + if (identifier.endsWith(suffix)) { + // This looks like a custom prefix + model.getDialogSettings().put(IDENTIFIER_PREFIX, identifier.substring(0, identifier.length() - suffix.length())); + } + } + } + + private String getDefaultIdentifier() { + return String.format("%s.%s", getDefaultIdentifierPrefix(), getDefaultQualifier()); + } + + private String getDefaultQualifier() { + return Joiner.on('.').join(Iterables.transform(Splitter.on(NamedElement.SEPARATOR).split(model.getProfile().getQualifiedName()), new Function() { + @Override + public String apply(String input) { + return toFirstLower(getValidJavaIdentifier(input)); + } + })); + } + + private String getDefaultIdentifierPrefix() { + String result = model.getDialogSettings().get(IDENTIFIER_PREFIX); + Profile profile = model.getProfile(); + + Stereotype ePackage = profile.getApplicableStereotype(String.format("%s::%s", UMLUtil.PROFILE__ECORE, UMLUtil.STEREOTYPE__E_PACKAGE)); //$NON-NLS-1$ + if ((ePackage != null) && profile.isStereotypeApplied(ePackage)) { + String basePackage = (String) profile.getValue(ePackage, UMLUtil.TAG_DEFINITION__BASE_PACKAGE); + if (!isNullOrEmpty(basePackage)) { + result = basePackage; + } + } + + if (result == null) { + result = "com.example"; //$NON-NLS-1$ + } + + return result; + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizard.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizard.java new file mode 100644 index 00000000000..5a7eb4df5d7 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizard.java @@ -0,0 +1,168 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards; + +import java.lang.reflect.InvocationTargetException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.Callable; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.jface.dialogs.DialogSettings; +import org.eclipse.jface.operation.IRunnableWithProgress; +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.osgi.util.NLS; +import org.eclipse.papyrus.infra.ui.util.UIUtil; +import org.eclipse.papyrus.uml.profile.types.generator.AbstractGenerator; +import org.eclipse.papyrus.uml.profile.types.generator.ElementTypesGenerator; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; +import org.eclipse.papyrus.uml.profile.types.generator.ui.internal.Activator; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.PartInitException; +import org.eclipse.ui.ide.IDE; +import org.eclipse.ui.statushandlers.StatusManager; +import org.eclipse.uml2.uml.Profile; + +import com.google.common.collect.Iterables; +import com.google.common.collect.Lists; +import com.google.common.util.concurrent.Futures; + +/** + * A wizard for generation of a new tooling model model for a UML Profile. + */ +public class GeneratorWizard extends Wizard { + + private final IWorkbenchPage page; + private final GeneratorWizardModel model; + + public GeneratorWizard(IWorkbenchPage page, Profile profile) { + super(); + + setDialogSettings(DialogSettings.getOrCreateSection(Activator.getInstance().getDialogSettings(), GeneratorWizard.class.getName())); + + this.page = page; + this.model = new GeneratorWizardModel(this, profile, getDialogSettings()); + + setWindowTitle("Generate Element Types Model"); + setHelpAvailable(false); + setNeedsProgressMonitor(true); + } + + @Override + public void addPages() { + super.addPages(); + + addPage(createMainPage(model)); + } + + protected IGeneratorWizardPage createMainPage(GeneratorWizardModel model) { + return new GeneratorMainPage(model, "Element Types Configuration Model", "Enter details of the element types model to generate.", "typesconfigurations"); + } + + private void save() { + for (IGeneratorWizardPage next : Iterables.filter(Arrays.asList(getPages()), IGeneratorWizardPage.class)) { + next.save(); + } + } + + @Override + public boolean performFinish() { + save(); + + final IStatus[] status = { Status.CANCEL_STATUS }; + + try { + getContainer().run(true, false, new IRunnableWithProgress() { + + @Override + public void run(IProgressMonitor monitor) { + status[0] = doPerformFinish(monitor); + } + }); + } catch (InterruptedException e) { + status[0] = Status.CANCEL_STATUS; + } catch (InvocationTargetException e) { + status[0] = new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Model generation failed with an exception.", e.getTargetException()); + } + + if (status[0].matches(IStatus.WARNING | IStatus.ERROR)) { + StatusManager.getManager().handle(status[0], StatusManager.BLOCK | StatusManager.LOG); + } + + return status[0].getSeverity() < IStatus.ERROR; + } + + protected IStatus doPerformFinish(IProgressMonitor monitor) { + IStatus result = Status.OK_STATUS; + + Identifiers identifiers = new Identifiers(); + identifiers.setPrefix(model.getIdentifier()); + identifiers.setBaseElementTypesSet(model.getSelectedElementTypeSet()); + identifiers.setSuppressSemanticSuperElementTypes(model.isSuppressSemanticSuperElementTypes()); + + ComposedAdapterFactory adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); + identifiers.setAdapterFactory(adapterFactory); + + try { + List> generators = Lists.newArrayListWithExpectedSize(1); + addGenerators(generators, identifiers, model); + + monitor.beginTask(NLS.bind("Generating {0}", generators.size() > 1 ? "models" : "model"), generators.size() + 1); + + for (AbstractGenerator next : generators) { + monitor.subTask(next.getLabel()); + + result = next.generate(model.getProfile(), getOutputURI(next, identifiers, model)); + + if (result.getSeverity() >= IStatus.ERROR) { + break; + } + + monitor.worked(1); + } + + if (result.getSeverity() < IStatus.ERROR) { + monitor.subTask("Opening editor"); + try { + Futures.get(UIUtil.syncCall(getShell().getDisplay(), new Callable() { + @Override + public Void call() throws Exception { + IDE.openEditor(page, model.getOutputModelFile()); + return null; + } + }), PartInitException.class); + } catch (PartInitException e) { + result = e.getStatus(); + } + } + } finally { + adapterFactory.dispose(); + monitor.done(); + } + + return result; + } + + protected void addGenerators(List> generators, Identifiers identifiers, GeneratorWizardModel wizardModel) { + generators.add(new ElementTypesGenerator(identifiers)); + } + + protected URI getOutputURI(AbstractGenerator generator, Identifiers identifiers, GeneratorWizardModel wizardModel) { + return wizardModel.getOutputModelURI(); + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizardModel.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizardModel.java new file mode 100644 index 00000000000..204b3fb11df --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/GeneratorWizardModel.java @@ -0,0 +1,164 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards; + +import static com.google.common.base.Strings.isNullOrEmpty; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.IPath; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.jface.dialogs.IDialogSettings; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.wizard.IWizard; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.papyrus.infra.emf.utils.ResourceUtils; +import org.eclipse.uml2.uml.Profile; + +/** + * @author damus + * + */ +public class GeneratorWizardModel { + + private final IWizard owner; + + private final Profile profile; + + private final IDialogSettings settings; + + private String identifier; + + private String selectedElementTypeSet; + + private IPath containerPath; + + private String fileName; + + private boolean suppressSemanticSuperElementTypes; + + public GeneratorWizardModel(IWizard owner, Profile profile, IDialogSettings settings) { + super(); + + this.owner = owner; + this.profile = profile; + this.settings = settings; + } + + public Profile getProfile() { + return profile; + } + + public IDialogSettings getDialogSettings() { + return settings; + } + + private WizardPage currentPage() { + WizardPage result = (WizardPage) owner.getContainer().getCurrentPage(); + + if (result == null) { + result = (WizardPage) owner.getStartingPage(); + } + + return result; + } + + public void setErrorMessage(String message) { + currentPage().setErrorMessage(message); + } + + public String getIdentifier() { + return identifier; + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public String getSelectedElementTypeSet() { + return selectedElementTypeSet; + } + + public void setSelectedElementTypeSet(String selectedElementTypeSet) { + this.selectedElementTypeSet = selectedElementTypeSet; + } + + public void setContainerPath(IPath containerPath) { + this.containerPath = containerPath; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public void setSuppressSemanticSuperElementTypes(boolean suppressSemanticSuperElementTypes) { + this.suppressSemanticSuperElementTypes = suppressSemanticSuperElementTypes; + } + + public boolean isSuppressSemanticSuperElementTypes() { + return suppressSemanticSuperElementTypes; + } + + public URI getOutputModelURI() { + return URI.createPlatformResourceURI(containerPath.append(fileName).toString(), true); + } + + public IFile getOutputModelFile() { + return ResourcesPlugin.getWorkspace().getRoot().getFile(containerPath.append(fileName)); + } + + public void validatePage() { + WizardPage current = currentPage(); + if (current instanceof IGeneratorWizardPage) { + current.setPageComplete(((IGeneratorWizardPage) current).validatePage()); + } + } + + public boolean validate() { + boolean result = true; + + setErrorMessage(null); + if (isNullOrEmpty(getIdentifier())) { + setErrorMessage("An identifier is required."); + result = false; + } else if (getSelectedElementTypeSet() == null) { + setErrorMessage("A base element type set must be selected."); + result = false; + } + + return result; + } + + IStructuredSelection getDefaultContainerSelection() { + IFile file = ResourceUtils.getFile(getProfile().eResource()); + return (file == null) ? StructuredSelection.EMPTY : new StructuredSelection(file.getParent()); + } + + String getDefaultFileName() { + return trimExtensions(EcoreUtil.getURI(profile).trimFragment()).lastSegment(); + } + + static URI trimExtensions(URI uri) { + URI result = uri.trimFileExtension(); + + while (!result.equals(uri)) { + uri = result; + result = result.trimFileExtension(); + } + + return result; + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/IGeneratorWizardPage.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/IGeneratorWizardPage.java new file mode 100644 index 00000000000..c7be545b3e2 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.ui/src/org/eclipse/papyrus/uml/profile/types/generator/ui/internal/wizards/IGeneratorWizardPage.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.ui.internal.wizards; + +import org.eclipse.jface.wizard.IWizardPage; + +/** + * Private protocol common to assistants generator wizard pages. + */ +public interface IGeneratorWizardPage extends IWizardPage { + /** + * Queries whether the current page input is valid and, as a side-effect, sets an error message if necessary. + * + * @return whether the current page input is valid + */ + boolean validatePage(); + + /** + * Saves appropriate user inputs in the dialog settings for future invocations of the wizard. + */ + void save(); +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.classpath b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.classpath new file mode 100644 index 00000000000..3e8bd41bf6b --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.project b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.project new file mode 100644 index 00000000000..9890647cdf6 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.project @@ -0,0 +1,35 @@ + + + org.eclipse.papyrus.uml.profile.types.generator + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.papyrus.emf.facet.common.ProjectNature + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f08be2b06c4 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.ui.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.xtend.core.Xtend.prefs b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.xtend.core.Xtend.prefs new file mode 100644 index 00000000000..110a6e417d3 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/.settings/org.eclipse.xtend.core.Xtend.prefs @@ -0,0 +1,30 @@ +eclipse.preferences.version=1 +is_project_specific=true +org.eclipse.xtend.core.validation.IssueCodes.api_type_inference=ignore +org.eclipse.xtend.core.validation.IssueCodes.dispatch_plain_function_name_clash=warning +org.eclipse.xtend.core.validation.IssueCodes.implicit_return=ignore +org.eclipse.xtend.core.validation.IssueCodes.invalid_operator_signature=error +org.eclipse.xtend.core.validation.IssueCodes.java_doc_linking=org.eclipse.jdt.core.compiler.problem.invalidJavadoc\:ignore +org.eclipse.xtend.core.validation.IssueCodes.orphan_element=ignore +org.eclipse.xtend.core.validation.IssueCodes.single_case_function=warning +org.eclipse.xtend.core.validation.IssueCodes.unused_private_member=org.eclipse.jdt.core.compiler.problem.unusedPrivateMember\:warning +org.eclipse.xtext.builder.copyJavaProblems=error +org.eclipse.xtext.xbase.validation.IssueCodes.constant_condition=warning +org.eclipse.xtext.xbase.validation.IssueCodes.deprecated_member_reference=org.eclipse.jdt.core.compiler.problem.deprecation\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.discouraged_reference=org.eclipse.jdt.core.compiler.problem.discouragedReference\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.equals_with_null=ignore +org.eclipse.xtext.xbase.validation.IssueCodes.forbidden_reference=org.eclipse.jdt.core.compiler.problem.forbiddenReference\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.import_unsued=org.eclipse.jdt.core.compiler.problem.unusedImport\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.import_wildcard_deprecated=warning +org.eclipse.xtext.xbase.validation.IssueCodes.incomplete_cases_on_enum=warning +org.eclipse.xtext.xbase.validation.IssueCodes.java_style_type_cast=error +org.eclipse.xtext.xbase.validation.IssueCodes.null_safe_feature_call_on_primitive_valued_feature=ignore +org.eclipse.xtext.xbase.validation.IssueCodes.obsolete_cast=org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.obsolete_instanceof=org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.operation_without_parentheses=ignore +org.eclipse.xtext.xbase.validation.IssueCodes.suspiciously_overloaded_feature=warning +org.eclipse.xtext.xbase.validation.IssueCodes.unhandled_exception=ignore +org.eclipse.xtext.xbase.validation.IssueCodes.unreachable_case=error +org.eclipse.xtext.xbase.validation.IssueCodes.unreachable_instance_of=error +org.eclipse.xtext.xbase.validation.IssueCodes.unused_local_variable=org.eclipse.jdt.core.compiler.problem.unusedLocal\:warning +org.eclipse.xtext.xbase.validation.IssueCodes.variable_name_discouraged=warning diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/META-INF/MANIFEST.MF b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..3b18f830ec2 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/META-INF/MANIFEST.MF @@ -0,0 +1,24 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;bundle-version="2.11.0", + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.uml2.uml;bundle-version="5.1.0", + org.eclipse.xtend.lib;bundle-version="2.8.0", + org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", + com.google.inject;bundle-version="3.0.0", + org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0" +Export-Package: org.eclipse.papyrus.uml.profile.types.generator, + org.eclipse.papyrus.uml.profile.types.generator.internal;x-internal:=true +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Localization: plugin +Bundle-Name: %pluginName +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.uml.profile.types.generator.internal.Activator +Bundle-Description: %pluginDescription +Bundle-SymbolicName: org.eclipse.papyrus.uml.profile.types.generator;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/about.html b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/build.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/build.properties new file mode 100644 index 00000000000..5cfa9579cf0 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/build.properties @@ -0,0 +1,19 @@ +# Copyright (c) 2014 Christian W. Damus and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Christian W. Damus - Initial API and implementation + +bin.includes = .,\ + META-INF/,\ + plugin.properties,\ + about.html +jars.compile.order = . +source.. = src/,\ + xtend-gen/ +output.. = bin/ +src.includes = about.html diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/plugin.properties b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/plugin.properties new file mode 100644 index 00000000000..a65abd84a2e --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/plugin.properties @@ -0,0 +1,13 @@ +# Copyright (c) 2014 Christian W. Damus and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Christian W. Damus - Initial API and implementation + +pluginName = Papyrus Element Types Configuration Generator for UML Profiles +providerName = Eclipse Modeling Project +pluginDescription = Element types model generation for UML profiles diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/pom.xml b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/pom.xml new file mode 100644 index 00000000000..055ce27b9d6 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus.uml-assistants + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.uml.profile.types.generator + 1.2.0-SNAPSHOT + eclipse-plugin + + + + + + + org.apache.maven.plugins + maven-clean-plugin + + + + xtend-gen + + **/.gitignore + + + + + + + + org.eclipse.xtend + xtend-maven-plugin + + + + compile + + + xtend-gen + + + + + + + \ No newline at end of file diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/AbstractGenerator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/AbstractGenerator.java new file mode 100644 index 00000000000..3dfe2472595 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/AbstractGenerator.java @@ -0,0 +1,153 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.Set; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Path; +import org.eclipse.core.runtime.Status; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +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.papyrus.infra.emf.utils.EMFHelper; +import org.eclipse.papyrus.uml.profile.types.generator.internal.Activator; +import org.eclipse.uml2.common.util.UML2Util; + +import com.google.common.base.Strings; +import com.google.common.collect.Sets; +import com.google.inject.Guice; +import com.google.inject.Inject; +import com.google.inject.Injector; + +/** + * Scaffolding for an Xtend model-to-model transformation. + * + * @param + * the kind of model element that I generate from a UML profile + */ +public abstract class AbstractGenerator { + + private final Injector injector; + + @Inject + @InputModel + private EClass inputType; + + @Inject + @OutputModel + private EClass outputType; + + @Inject + private Identifiers identifiers; + + public AbstractGenerator(Identifiers identifiers) { + this(new GeneratorModule(identifiers)); + } + + public AbstractGenerator(GeneratorModule module) { + super(); + + this.injector = Guice.createInjector(module); + injector.injectMembers(this); + } + + public String getLabel() { + String result = identifiers.getLabel(outputType); + + return Strings.isNullOrEmpty(result) ? "output model" : result; + } + + public IStatus generate(URI inputURI, URI outputURI) { + IStatus result; + ResourceSet resourceSet = new ResourceSetImpl(); + + try { + I input = UML2Util.load(resourceSet, inputURI, inputType); + result = generate(input, outputURI); + } finally { + EMFHelper.unload(resourceSet); + } + + return result; + } + + public IStatus generate(I input, URI outputURI) { + IStatus result; + ResourceSet resourceSet = new ResourceSetImpl(); + + try { + Resource output = resourceSet.createResource(outputURI); + + result = generate(input, output.getContents()); + + try { + output.save(null); + } catch (IOException e) { + throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Failed to save output", e)); + } + refreshContainer(outputURI); + } catch (CoreException e) { + result = e.getStatus(); + } finally { + EMFHelper.unload(resourceSet); + } + + return result; + } + + public IStatus generate(I input, EList output) { + IStatus result = Status.OK_STATUS; + + output.add(generate(input)); + + return result; + } + + protected abstract O generate(I input); + + protected void refreshContainer(URI resourceURI) throws CoreException { + if (resourceURI.isPlatformResource()) { + IContainer container = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(resourceURI.toPlatformString(true))).getParent(); + if ((container != null) && container.isAccessible()) { + container.refreshLocal(IResource.DEPTH_ONE, null); + } + } else if (resourceURI.isFile()) { + try { + IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new java.net.URI(resourceURI.toString())); + Set containers = Sets.newHashSet(); + for (IFile next : files) { + containers.add(next.getParent()); + } + + for (IContainer next : containers) { + next.refreshLocal(IResource.DEPTH_ONE, null); + } + } catch (URISyntaxException e) { + throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Bad resource URI", e)); + } + } + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ApplyStereotypeAdviceRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ApplyStereotypeAdviceRule.xtend new file mode 100644 index 00000000000..7619fed8c3f --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ApplyStereotypeAdviceRule.xtend @@ -0,0 +1,45 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.profile.types.generator + +import javax.inject.Inject +import javax.inject.Singleton +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.uml2.uml.Stereotype +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory + +/** + * Transformation rule for generating an {@link ApplyStereotypeAdviceConfiguration} from a UML {@link Stereotype}. + */ +@Singleton +class ApplyStereotypeAdviceRule { + static extension ApplyStereotypeAdviceFactory applyStereotypeAdviceConfigurationFactory = ApplyStereotypeAdviceFactory. + eINSTANCE + + @Inject extension ElementTypeRule + @Inject extension Identifiers + + def create createApplyStereotypeAdviceConfiguration toAdviceConfiguration(Stereotype umlStereotype, + ImpliedExtension umlExtension, ElementTypeConfiguration supertype) { + + identifier = umlStereotype.name.toFirstLower.qualified + supertype.hintSuffix + stereotypesToApply.add(umlStereotype.toStereotypeToApply(supertype)) + target = umlExtension.toElementType(supertype) + } + + private def create createStereotypeToApply toStereotypeToApply(Stereotype umlStereotype, ElementTypeConfiguration supertype) { + requiredProfiles.add(umlStereotype.profile.qualifiedName) + stereotypeQualifiedName = umlStereotype.qualifiedName + updateName = true + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ConfigurationSetRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ConfigurationSetRule.xtend new file mode 100644 index 00000000000..ccb28f016c6 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ConfigurationSetRule.xtend @@ -0,0 +1,60 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * Benoit Maggi - #474408 : order by identifier the generated file + *****************************************************************************/ +package org.eclipse.papyrus.uml.profile.types.generator + +import java.util.List +import javax.inject.Inject +import javax.inject.Singleton +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration +import org.eclipse.uml2.uml.Profile +import org.eclipse.uml2.uml.UMLPackage +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory + +/** + * Transformation rule for generating an {@link ElementTypeSetConfiguration} from a UML {@link Profile}. + */ +@Singleton +class ConfigurationSetRule { + static extension ElementTypesConfigurationsFactory elementtypesconfigurationsFactory = ElementTypesConfigurationsFactory. + eINSTANCE + + @Inject extension Identifiers + @Inject extension UML + @Inject extension UMLElementTypes + @Inject extension ElementTypeRule + @Inject extension ApplyStereotypeAdviceRule + + def create createElementTypeSetConfiguration toConfigurationSet(Profile umlProfile) { + + // Initialize the generation of IDs + umlProfile.setIdentifierBase + + identifier = "elementTypes".qualified + metamodelNsURI = baseUMLElementTypeSet?.metamodelNsURI ?: UMLPackage.eNS_URI; + + val List elementTypeConfigurationList = newArrayList() + val List adviceBindingConfigurationList = newArrayList() + + umlProfile.allExtensions.forEach[ext | + elementTypeConfigurationList.addAll(ext.metaclass.diagramSpecificElementTypes.map[ext.toElementType(it)]) + + // We only need to generate advice bindings for element types that won't inherit the from a parent semantic type + val typesNeedingAdvice = ext.metaclass.diagramSpecificElementTypes.filter[!hasSemanticSupertype] + adviceBindingConfigurationList.addAll(typesNeedingAdvice.map[ext.stereotype.toAdviceConfiguration(ext, it)]) + ] + adviceBindingsConfigurations.addAll(adviceBindingConfigurationList.sortBy[identifier]) + elementTypeConfigurations.addAll(elementTypeConfigurationList.sortBy[identifier]) + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypeRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypeRule.xtend new file mode 100644 index 00000000000..9d37c8f1844 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypeRule.xtend @@ -0,0 +1,101 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.profile.types.generator + +import javax.inject.Inject +import javax.inject.Singleton +import org.eclipse.core.resources.ResourcesPlugin +import org.eclipse.emf.common.util.URI +import org.eclipse.emf.ecore.EObject + +import org.eclipse.uml2.uml.Stereotype + +import static extension org.eclipse.emf.common.util.URI.decode +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherFactory + +/** + * Transformation rule for generating a {@link SpecializationTypeConfiguration} from a UML metaclass {@link Extension}. + */ +@Singleton +class ElementTypeRule { + static extension ElementTypesConfigurationsFactory elementtypesconfigurationsFactory = ElementTypesConfigurationsFactory. + eINSTANCE + static extension StereotypeApplicationMatcherFactory stereotypeApplicationMatcherConfigurationFactory = StereotypeApplicationMatcherFactory. + eINSTANCE + + @Inject extension UMLElementTypes + @Inject extension Identifiers + + def create createSpecializationTypeConfiguration toElementType(ImpliedExtension umlExtension, + ElementTypeConfiguration supertype) { + + // Basics + identifier = umlExtension.toElementTypeID(supertype) + if (supertype.hasSemanticSupertype) { + // Add the base semantic type in addition to the parent visual type + specializedTypesID.add(umlExtension.toElementTypeID(umlExtension.metaclass.elementTypeConfiguration)) + } + specializedTypesID.add(supertype.identifier) + hint = supertype.hint + name = umlExtension.toElementTypeName(supertype) + + // Icon + var icon = umlExtension.stereotype.iconEntry + iconEntry = if(icon != null) icon else umlExtension.metaclass.iconEntry + + // Add stereotype matcher, if it isn't inherited from a semantic supertype + if (!supertype.hasSemanticSupertype) { + matcherConfiguration = umlExtension.toMatcherConfiguration(supertype) + } + } + + private def create createStereotypeApplicationMatcherConfiguration toMatcherConfiguration(ImpliedExtension umlExtension, + ElementTypeConfiguration supertype) { + + stereotypesQualifiedNames.add(umlExtension.stereotype.qualifiedName) + } + + private def getIconEntry(Stereotype stereotype) { + val image = stereotype.icons.findFirst[!location.nullOrEmpty] + if (image != null) { + val uri = URI.createURI(image.location, true) + + if (uri != null) { + createIconEntry => [ + if (uri.platform) { + + // Explicit platform-scheme URI + bundleId = uri.segment(1) + iconPath = "/" + uri.segmentsList.drop(2).join("/", [decode]) + } else if (uri.relative) { + + // Bundle-relative path. Infer the bundle ID from the containing project + bundleId = stereotype.containingProject.name + iconPath = "/" + uri.toString.decode + } else { + + // Absolute URI: use as is; don't decode it + iconPath = uri.toString + } + ] + } + } + } + + private def containingProject(EObject object) { + ResourcesPlugin.workspace.root.getProject(object.eResource.URI.segment(2)) + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypesGenerator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypesGenerator.java new file mode 100644 index 00000000000..e300a7d62f5 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ElementTypesGenerator.java @@ -0,0 +1,41 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.uml2.uml.Profile; + +import com.google.inject.Inject; + +/** + * The generator facade for the UML Profile to Element Types Set Configuration transformation. + */ +public class ElementTypesGenerator extends AbstractGenerator { + + @Inject + private ConfigurationSetRule mainRule; + + public ElementTypesGenerator(Identifiers identifiers) { + this(new GeneratorModule(identifiers)); + } + + public ElementTypesGenerator(GeneratorModule module) { + super(module); + } + + @Override + protected ElementTypeSetConfiguration generate(Profile profile) { + return mainRule.toConfigurationSet(profile); + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/GeneratorModule.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/GeneratorModule.java new file mode 100644 index 00000000000..1a69f63f9c7 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/GeneratorModule.java @@ -0,0 +1,77 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.uml2.uml.UMLPackage; + +import com.google.inject.AbstractModule; + +/** + * The base Guice injector module for the UML Profile to Element Types Set Configuration transformation. + */ +public class GeneratorModule extends AbstractModule { + private final Identifiers identifiers; + + public GeneratorModule(Identifiers identifiers) { + super(); + + this.identifiers = identifiers; + } + + @Override + protected void configure() { + // bind transformation parameters + bindInputType(); + bindOutputType(); + + // bind extensions + bindIdentifiers(); + bindUMLElementTypes(); + + // bind transformation rules + bindConfigurationSetRule(); + bindElementTypeRule(); + bindApplyStereotypeAdviceRule(); + } + + protected void bindInputType() { + bind(EClass.class).annotatedWith(InputModel.class).toInstance(UMLPackage.Literals.PROFILE); + } + + protected void bindOutputType() { + bind(EClass.class).annotatedWith(OutputModel.class).toInstance(ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); + } + + protected void bindIdentifiers() { + bind(Identifiers.class).toInstance(identifiers); + } + + protected void bindUMLElementTypes() { + // Pass + } + + protected void bindConfigurationSetRule() { + // Pass + } + + protected void bindElementTypeRule() { + // Pass + } + + protected void bindApplyStereotypeAdviceRule() { + // Pass + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/Identifiers.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/Identifiers.xtend new file mode 100644 index 00000000000..17693cbbdbe --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/Identifiers.xtend @@ -0,0 +1,112 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.profile.types.generator + +import static extension org.eclipse.uml2.common.util.UML2Util.getValidJavaIdentifier + +import org.eclipse.xtend.lib.annotations.Accessors +import javax.inject.Singleton +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration +import javax.inject.Inject +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration +import org.eclipse.emf.common.notify.AdapterFactory +import org.eclipse.emf.ecore.EObject +import org.eclipse.emf.edit.provider.IItemLabelProvider +import org.eclipse.emf.ecore.EClassifier +import org.eclipse.emf.common.util.ResourceLocator + +/** + * Utility extensions for working with and generating unique identifiers in the element types model. + */ +@Singleton +class Identifiers { + @Inject extension UMLElementTypes + + @Accessors + String prefix + + @Accessors + final String umlElementTypesSet = "org.eclipse.papyrus.uml.service.types.UMLElementTypeSet" + + @Accessors + final String contextId = "org.eclipse.papyrus.infra.services.edit.TypeContext"; + + @Accessors + String baseElementTypesSet = umlElementTypesSet + + @Accessors + ElementTypeSetConfiguration baseElementTypesSetConfiguration + + @Accessors + boolean suppressSemanticSuperElementTypes + + @Accessors + AdapterFactory adapterFactory + + String identifierBase + + def setIdentifierBase(org.eclipse.uml2.uml.Package umlPackage) { + identifierBase = prefix + } + + def getQualified(String id) { + identifierBase + "." + id + } + + def toElementTypeID(ImpliedExtension umlExtension, ElementTypeConfiguration supertype) { + val stereo = umlExtension.stereotype + var name = if (stereo.allExtendedMetaclasses.size <= 1) stereo.name else stereo.name + "_" + umlExtension.metaclass.name + name.validJavaIdentifier.qualified + supertype.hintSuffix + } + + def toElementTypeName(ImpliedExtension umlExtension, ElementTypeConfiguration supertype) { + val stereo = umlExtension.stereotype + val discriminators = newArrayList() => [ + if (stereo.extensions.size > 1) add(umlExtension.metaclass.name) + if (!supertype.hint.nullOrEmpty && (umlExtension.metaclass.diagramSpecificElementTypes.size > 1)) add(supertype.hint) + ] + + if (discriminators.nullOrEmpty) + if (stereo.allExtendedMetaclasses.size <= 1) stereo.name + else stereo.name + " " + umlExtension.metaclass.name + else stereo.name + discriminators.join(" (", ", ", ")")[toString] + } + + def dispatch hintSuffix(ElementTypeConfiguration elementType) { + "" + } + + def dispatch hintSuffix(SpecializationTypeConfiguration elementType) { + if (elementType.hint.nullOrEmpty) "" else "_" + elementType.hint + } + + def dispatch getLabel(EObject object) { + val labels = adapterFactory?.adapt(object, IItemLabelProvider) as IItemLabelProvider + labels?.getText(object) + } + + def dispatch getLabel(EClassifier eClassifier) { + try { + eClassifier.resourceLocator?.getString("_UI_" + eClassifier.name + "_type") + } catch (Exception e) { + eClassifier.name + } + } + + private def ResourceLocator getResourceLocator(EObject object) { + switch adapter : adapterFactory?.adapt(object, IItemLabelProvider) { + ResourceLocator : adapter + } + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ImpliedExtension.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ImpliedExtension.xtend new file mode 100644 index 00000000000..97cc26e94e2 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/ImpliedExtension.xtend @@ -0,0 +1,28 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator + +import org.eclipse.xtend.lib.annotations.Data +import org.eclipse.uml2.uml.Class +import org.eclipse.uml2.uml.Stereotype + +/** + * An analogue of the UML {@code Extension} metaclass that represents an implied metaclass extension. + * This may be modeled in the profile either directly, via an extension, or indirectly, via an + * inherited extension. + */ +@Data class ImpliedExtension { + Stereotype stereotype + Class metaclass +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/InputModel.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/InputModel.java new file mode 100644 index 00000000000..08eb000227a --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/InputModel.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import com.google.inject.BindingAnnotation; + +/** + * Injector annotation for the model-to-model transformation's input model type. + */ +@BindingAnnotation +@Retention(RetentionPolicy.RUNTIME) +@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) +public @interface InputModel { + // Empty +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/OutputModel.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/OutputModel.java new file mode 100644 index 00000000000..50b34bb4a98 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/OutputModel.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import com.google.inject.BindingAnnotation; + +/** + * Injector annotation for the model-to-model transformation's output model type. + */ +@BindingAnnotation +@Retention(RetentionPolicy.RUNTIME) +@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) +public @interface OutputModel { + // Empty +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UML.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UML.xtend new file mode 100644 index 00000000000..3befa66d888 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UML.xtend @@ -0,0 +1,117 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.profile.types.generator + +import static org.eclipse.uml2.uml.UMLPackage.Literals.* + +import javax.inject.Singleton +import org.eclipse.uml2.uml.NamedElement +import org.eclipse.uml2.uml.Stereotype +import org.eclipse.uml2.uml.Profile +import org.eclipse.emf.ecore.EClass +import org.eclipse.emf.ecore.EReference +import java.util.Set + +/** + * Utility extensions for working with UML models and elements. + */ +@Singleton +class UML { + + // Each of these corresponds to a case in the getSourceReferences(...) and getTargetReferences(...) extensions + final Set relationshipLikeUMLMetaclasses = #{ RELATIONSHIP, GENERALIZATION_SET, CONNECTOR, ACTIVITY_EDGE, TRANSITION, MESSAGE } + + def dispatch getProfile(Profile element) { + element + } + + def dispatch getProfile(NamedElement element) { + element.allOwningPackages.filter(Profile).head + } + + def dispatch getProfile(ImpliedExtension umlExtension) { + umlExtension.stereotype.profile + } + + def dispatch Profile getRootProfile(Profile element) { + element.namespace?.rootProfile ?: element + } + def dispatch getRootProfile(NamedElement element) { + element.allOwningPackages.filter(Profile).last + } + + def Iterable getAllExtensions(org.eclipse.uml2.uml.Package package_) { + package_.ownedTypes.filter(Stereotype).map[impliedExtensions].flatten + + package_.nestedPackages.map[allExtensions].flatten + } + + def Iterable impliedExtensions(Stereotype stereotype) { + stereotype.allExtendedMetaclasses.map[new ImpliedExtension(stereotype, it)] + } + + def isRelationship(EClass eClass) { + relationshipLikeUMLMetaclasses.exists[isSuperTypeOf(eClass)] + } + + def getSourceReferences(EClass relationshipClass) { + switch relationshipClass { + case DIRECTED_RELATIONSHIP.isSuperTypeOf(relationshipClass): + relationshipClass.EAllReferences.filter[!derived && changeable && subsets(DIRECTED_RELATIONSHIP__SOURCE)] + case ASSOCIATION.isSuperTypeOf(relationshipClass): + // ends are both source and target + #[ASSOCIATION__END_TYPE] + case CONNECTOR.isSuperTypeOf(relationshipClass): + // ends are both source and target + #[CONNECTOR__END] + case ACTIVITY_EDGE.isSuperTypeOf(relationshipClass): + #[ACTIVITY_EDGE__SOURCE] + case TRANSITION.isSuperTypeOf(relationshipClass): + #[TRANSITION__SOURCE] + case MESSAGE.isSuperTypeOf(relationshipClass): + #[MESSAGE__SEND_EVENT] + case GENERALIZATION_SET.isSuperTypeOf(relationshipClass): + // generalization sets just connect a bunch of generalizations + #[GENERALIZATION_SET__GENERALIZATION] + default: + #[] + } + } + + def getTargetReferences(EClass relationshipClass) { + switch relationshipClass { + case DIRECTED_RELATIONSHIP.isSuperTypeOf(relationshipClass): + relationshipClass.EAllReferences.filter[!derived && changeable && subsets(DIRECTED_RELATIONSHIP__TARGET)] + case ASSOCIATION.isSuperTypeOf(relationshipClass): + // ends are both source and target + #[ASSOCIATION__END_TYPE] + case CONNECTOR.isSuperTypeOf(relationshipClass): + // ends are both source and target + #[CONNECTOR__END] + case ACTIVITY_EDGE.isSuperTypeOf(relationshipClass): + #[ACTIVITY_EDGE__TARGET] + case TRANSITION.isSuperTypeOf(relationshipClass): + #[TRANSITION__TARGET] + case MESSAGE.isSuperTypeOf(relationshipClass): + #[MESSAGE__RECEIVE_EVENT] + case GENERALIZATION_SET.isSuperTypeOf(relationshipClass): + // generalization sets just connect a bunch of generalizations + #[GENERALIZATION_SET__GENERALIZATION] + default: + #[] + } + } + + def subsets(EReference subset, EReference superset) { + subset.getEAnnotation("subsets")?.references?.contains(superset) + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UMLElementTypes.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UMLElementTypes.xtend new file mode 100644 index 00000000000..38c844db6f9 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/UMLElementTypes.xtend @@ -0,0 +1,226 @@ +/***************************************************************************** + * Copyright (c) 2014, 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.profile.types.generator + +import javax.inject.Inject +import javax.inject.Singleton +import org.eclipse.emf.ecore.EClass +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry +import org.eclipse.gmf.runtime.emf.type.core.IElementType +import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType +import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.IconEntry +import org.eclipse.papyrus.infra.types.MetamodelTypeConfiguration +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry +import org.eclipse.uml2.uml.Class +import org.eclipse.uml2.uml.UMLPackage +import java.util.regex.Pattern +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsFactory + +/** + * Utility extensions for working with and generating objects for the base UML element types specialized by the profile. + */ +@Singleton +class UMLElementTypes { + private static final Pattern VISUAL_ID_PATTERN = Pattern.compile("\\d{4}"); + + static extension ElementTypesConfigurationsFactory elementtypesconfigurationsFactory = ElementTypesConfigurationsFactory. + eINSTANCE + + @Inject extension Identifiers + @Inject extension UML + + def getElementTypeID(Class metaclass) { + "org.eclipse.papyrus.uml." + metaclass.name + } + + def getElementTypeConfiguration(Class metaclass) { + baseUMLElementTypeSet.elementTypeConfigurations.findFirst[identifier == metaclass.elementTypeID] + } + + def getBaseUMLElementTypeSet() { + ElementTypeSetConfigurationRegistry.getInstance.getElementTypeSetConfigurations().get(contextId).get(umlElementTypesSet) + } + + def getBaseUMLElementTypes() { + baseUMLElementTypeSet.elementTypeConfigurations.map [ + ElementTypeRegistry.getInstance.getType(identifier) + ].filterNull + } + + def getEClass(Class metaclass) { + UMLPackage.eINSTANCE.getEClassifier(metaclass.name) as EClass + } + + def getIconEntry(Class metaclass) { + metaclass.elementTypeConfiguration?.iconEntry.copy() + } + + private def copy(IconEntry prototype) { + createIconEntry() => [ + bundleId = prototype.bundleId + iconPath = prototype.iconPath + ] + } + + def getBaseElementTypeSet() { + baseElementTypesSetConfiguration ?: ElementTypeSetConfigurationRegistry.getInstance.getElementTypeSetConfigurations().get(contextId).get(baseElementTypesSet) + } + + def getBaseElementTypes() { + baseElementTypeSet.elementTypeConfigurations.filter[validType] + } + + def validType(ElementTypeConfiguration elementType) { + elementType.metaclass != null; + } + + private def isDiagramSpecific() { + baseElementTypeSet != baseUMLElementTypeSet + } + + def isDiagramSpecific(ElementTypeConfiguration type) { + type.hint.isVisualID + } + + def hasSemanticSupertype(ElementTypeConfiguration type) { + type.isDiagramSpecific && !suppressSemanticSuperElementTypes + } + + private def isVisualID(String string) { + !string.nullOrEmpty && VISUAL_ID_PATTERN.matcher(string).matches + } + + def getDiagramSpecificElementTypes(Class metaclass) { + // If we're based on the UML element types, themselves, then we're not looking for specializations + if (!diagramSpecific) + baseUMLElementTypeSet.elementTypeConfigurations.filter [ + validType && (identifier == metaclass.elementTypeID) + ] + else + baseElementTypeSet.elementTypeConfigurations.filter(SpecializationTypeConfiguration).filter [ + validType && specializedTypesID.contains(metaclass.elementTypeID) + ] + } + + private def canContain(IElementType containerType, EClass containedEClass) { + containerType.EClass.EAllContainments.exists[EReferenceType.isSuperTypeOf(containedEClass)] + } + + private def canContain(ElementTypeConfiguration containerType, EClass containedEClass) { + ElementTypeRegistry.getInstance.getType(containerType.identifier)?.canContain(containedEClass) + } + + def dispatch canContainType(ElementTypeConfiguration containerType, ElementTypeConfiguration containedTypeConfiguration) { + false + } + + def dispatch canContainType(ElementTypeConfiguration containerType, MetamodelTypeConfiguration containedTypeConfiguration) { + containerType.canContain(containedTypeConfiguration.EClass) + } + + def dispatch canContainType(ElementTypeConfiguration containerType, SpecializationTypeConfiguration containedTypeConfiguration) { + containedTypeConfiguration.specializedTypesID.exists [ supertype | + containerType.canContain(ElementTypeRegistry.getInstance.getType(supertype).EClass) + ] + } + + def isRelationship(IElementType elementType) { + // If the EClass is null, then assume it's something like the Constraint::annotatedElement reference type + // which is like a relationship + (elementType.EClass == null) || elementType.EClass.relationship + } + + def isRelationship(ElementTypeConfiguration elementType) { + // If the EClass is null, then assume it's something like the Constraint::annotatedElement reference type + // which is like a relationship + (elementType.metaclass == null) || elementType.metaclass.relationship + } + + private def dispatch EClass getMetaclass(ElementTypeConfiguration elementType) { + null + } + + private def dispatch EClass getMetaclass(SpecializationTypeConfiguration elementType) { + var IElementType registered = ElementTypeRegistry.instance.getType(elementType.identifier) + if (registered != null) { + registered.metaclass + } else { + elementType.specializedTypesID.map[ElementTypeRegistry.instance.getType(it)].filterNull.head?.EClass + } + } + + private def dispatch EClass getMetaclass(MetamodelTypeConfiguration elementType) { + elementType.EClass + } + + private def dispatch EClass getMetaclass(IElementType elementType) { + null + } + + private def dispatch EClass getMetaclass(IMetamodelType elementType) { + elementType.EClass + } + + private def dispatch EClass getMetaclass(ISpecializationType elementType) { + elementType.metamodelType?.EClass + } + + private def canSourceTo(IElementType sourceType, EClass relationshipEClass) { + relationshipEClass.sourceReferences.exists[EReferenceType.isSuperTypeOf(sourceType.EClass)] + } + + private def canSourceTo(ElementTypeConfiguration sourceType, EClass relationshipEClass) { + ElementTypeRegistry.getInstance.getType(sourceType?.identifier)?.canSourceTo(relationshipEClass) + } + + def dispatch canSourceToType(ElementTypeConfiguration sourceType, ElementTypeConfiguration relationshipTypeConfiguration) { + false + } + + def dispatch canSourceToType(ElementTypeConfiguration sourceType, MetamodelTypeConfiguration relationshipTypeConfiguration) { + sourceType.canSourceTo(relationshipTypeConfiguration.EClass) + } + + def dispatch canSourceToType(ElementTypeConfiguration sourceType, SpecializationTypeConfiguration relationshipTypeConfiguration) { + relationshipTypeConfiguration.specializedTypesID.exists [ supertypeID | + val supertype = ElementTypeRegistry.getInstance.getType(supertypeID) + (supertype != null) && supertype.EClass.isRelationship && sourceType.canSourceTo(supertype.EClass) + ] + } + + private def canTargetFrom(IElementType targetType, EClass relationshipEClass) { + relationshipEClass.targetReferences.exists[EReferenceType.isSuperTypeOf(targetType.EClass)] + } + + private def canTargetFrom(ElementTypeConfiguration targetType, EClass relationshipEClass) { + ElementTypeRegistry.getInstance.getType(targetType?.identifier)?.canTargetFrom(relationshipEClass) + } + + def dispatch canTargetFromType(ElementTypeConfiguration targetType, ElementTypeConfiguration relationshipTypeConfiguration) { + false + } + + def dispatch canTargetFromType(ElementTypeConfiguration targetType, MetamodelTypeConfiguration relationshipTypeConfiguration) { + targetType.canTargetFrom(relationshipTypeConfiguration.EClass) + } + + def dispatch canTargetFromType(ElementTypeConfiguration targetType, SpecializationTypeConfiguration relationshipTypeConfiguration) { + relationshipTypeConfiguration.specializedTypesID.exists [ supertypeID | + val supertype = ElementTypeRegistry.getInstance.getType(supertypeID) + (supertype != null) && supertype.EClass.isRelationship && targetType.canTargetFrom(supertype.EClass) + ] + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/internal/Activator.java b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/internal/Activator.java new file mode 100644 index 00000000000..d7461b9aa10 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/src/org/eclipse/papyrus/uml/profile/types/generator/internal/Activator.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2014 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + */ +package org.eclipse.papyrus.uml.profile.types.generator.internal; + +import org.eclipse.core.runtime.Plugin; +import org.eclipse.papyrus.infra.core.log.LogHelper; +import org.osgi.framework.BundleContext; + +/** + * This is the central singleton for the UML Profile Element Types Configuration ElementTypesGenerator plugin. + */ +public final class Activator extends Plugin { + public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.profile.types.generator"; //$NON-NLS-1$ + + /** + * Keep track of the singleton. + */ + private static Activator INSTANCE; + + /** Logging helper */ + public static LogHelper log = new LogHelper(); + + public Activator() { + super(); + } + + public static Activator getInstance() { + return INSTANCE; + } + + @Override + public void start(BundleContext context) throws Exception { + INSTANCE = this; + log.setPlugin(this); + + super.start(context); + } +} diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/xtend-gen/.gitignore b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/xtend-gen/.gitignore new file mode 100644 index 00000000000..ee1d87867e7 --- /dev/null +++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator/xtend-gen/.gitignore @@ -0,0 +1 @@ +org/ diff --git a/plugins/uml/assistants/pom.xml b/plugins/uml/assistants/pom.xml index 016970135ff..83c34c3e619 100644 --- a/plugins/uml/assistants/pom.xml +++ b/plugins/uml/assistants/pom.xml @@ -14,7 +14,7 @@ org.eclipse.papyrus.uml.profile.assistants.generator org.eclipse.papyrus.uml.profile.assistants.generator.ui - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui + org.eclipse.papyrus.uml.profile.types.generator + org.eclipse.papyrus.uml.profile.types.generator.ui diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.elementtypesconfigurations index 951decedc43..0e799e67ec8 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.elementtypesconfigurations @@ -1,761 +1,761 @@ - - - - org.eclipse.papyrus.uml.AcceptEventAction - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::CallOperationAction::target - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::object - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::request - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendSignalAction::target - - - - org.eclipse.papyrus.uml.ActivityFinalNode - - - - org.eclipse.papyrus.uml.ActivityParameterNode - - - - org.eclipse.papyrus.uml.ActivityPartition - - - - org.eclipse.papyrus.uml.Activity - - - - org.eclipse.papyrus.uml.Activity - - - - org.eclipse.papyrus.uml.AddStructuralFeatureValueAction - - - - org.eclipse.papyrus.uml.AddVariableValueAction - - - - org.eclipse.papyrus.uml.BroadcastSignalAction - - - - org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType - - - - org.eclipse.papyrus.uml.CallOperationAction - - - - org.eclipse.papyrus.uml.CentralBufferNode - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.ConditionalNode - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPrecondition - - - - org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPostcondition - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.ControlFlow - - - - org.eclipse.papyrus.uml.CreateLinkObjectAction - - - - org.eclipse.papyrus.uml.CreateObjectAction - - - - org.eclipse.papyrus.uml.DataStoreNode - - - - org.eclipse.papyrus.uml.DecisionNode - - - - org.eclipse.papyrus.uml.DestroyObjectAction - - - - org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPrecondition - - - - org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPostcondition - - - - org.eclipse.papyrus.uml.ExceptionHandler - - - - org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsInput - - - - org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsOutput - - - - org.eclipse.papyrus.uml.ExpansionRegion - - - - org.eclipse.papyrus.uml.FlowFinalNode - - - - org.eclipse.papyrus.uml.ForkNode - - - - org.eclipse.papyrus.uml.InitialNode - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::CallOperationAction::target - - - - org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::object - - - - org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::request - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::SendSignalAction::target - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::value - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::AddVariableValueAction::insertAt - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InterruptibleActivityRegion - - - - org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPrecondition - - - - org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPostcondition - - - - org.eclipse.papyrus.uml.JoinNode - - - - org.eclipse.papyrus.uml.LoopNode - - - - org.eclipse.papyrus.uml.MergeNode - - - - org.eclipse.papyrus.uml.NamedElement - - - - org.eclipse.papyrus.uml.ObjectFlow - - - - org.eclipse.papyrus.uml.OpaqueAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin_As_UML::LoopNode::loopNodeVariable - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.Parameter - - - - org.eclipse.papyrus.uml.ReadSelfAction - - - - org.eclipse.papyrus.uml.ReadStructuralFeatureAction - - - - org.eclipse.papyrus.uml.ReadVariableAction - - - - org.eclipse.papyrus.uml.SendObjectAction - - - - org.eclipse.papyrus.uml.SendSignalAction - - - - org.eclipse.papyrus.uml.SequenceNode - - - - org.eclipse.papyrus.uml.StructuredActivityNode - - - - org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPrecondition - - - - org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPostcondition - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::CallOperationAction::target - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::object - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::request - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::SendSignalAction::target - - - - org.eclipse.papyrus.uml.ValueSpecificationAction - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::insertAt - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::value - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::insertAt - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::value - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::insertAt - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::AddVariableValueAction::insertAt - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddVariableValueAction::insertAt - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.StartObjectBehaviorAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::StartObjectBehaviorAction::object - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::StartObjectBehaviorAction::object - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::StartObjectBehaviorAction::object - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.TestIdentityAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin_As_UML::TestIdentityAction::second - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin_As_UML::TestIdentityAction::second - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin_As_UML::TestIdentityAction::second - - - - org.eclipse.papyrus.uml.ClearStructuralFeatureAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.CreateLinkAction - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ReadLinkAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.DestroyLinkAction - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ClearAssociationAction - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ReadExtentAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.ReclassifyObjectAction - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ReadIsClassifiedObjectAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ReduceAction - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.OutputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.StartClassifierBehaviorAction - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.InputPin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ValuePin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - org.eclipse.papyrus.uml.ActionInputPin - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - org.eclipse.papyrus.uml.ActionInputPin - - - org.eclipse.gmf.runtime.emf.type.core.null - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - - org.eclipse.papyrus.uml.CallBehaviorAction - - - - + + + + org.eclipse.papyrus.uml.AcceptEventAction + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::CallOperationAction::target + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::object + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::request + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendSignalAction::target + + + + org.eclipse.papyrus.uml.ActivityFinalNode + + + + org.eclipse.papyrus.uml.ActivityParameterNode + + + + org.eclipse.papyrus.uml.ActivityPartition + + + + org.eclipse.papyrus.uml.Activity + + + + org.eclipse.papyrus.uml.Activity + + + + org.eclipse.papyrus.uml.AddStructuralFeatureValueAction + + + + org.eclipse.papyrus.uml.AddVariableValueAction + + + + org.eclipse.papyrus.uml.BroadcastSignalAction + + + + org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType + + + + org.eclipse.papyrus.uml.CallOperationAction + + + + org.eclipse.papyrus.uml.CentralBufferNode + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.ConditionalNode + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPrecondition + + + + org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPostcondition + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.ControlFlow + + + + org.eclipse.papyrus.uml.CreateLinkObjectAction + + + + org.eclipse.papyrus.uml.CreateObjectAction + + + + org.eclipse.papyrus.uml.DataStoreNode + + + + org.eclipse.papyrus.uml.DecisionNode + + + + org.eclipse.papyrus.uml.DestroyObjectAction + + + + org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPrecondition + + + + org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPostcondition + + + + org.eclipse.papyrus.uml.ExceptionHandler + + + + org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsInput + + + + org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsOutput + + + + org.eclipse.papyrus.uml.ExpansionRegion + + + + org.eclipse.papyrus.uml.FlowFinalNode + + + + org.eclipse.papyrus.uml.ForkNode + + + + org.eclipse.papyrus.uml.InitialNode + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::CallOperationAction::target + + + + org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::object + + + + org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::request + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::SendSignalAction::target + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::value + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::AddVariableValueAction::insertAt + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InterruptibleActivityRegion + + + + org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPrecondition + + + + org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPostcondition + + + + org.eclipse.papyrus.uml.JoinNode + + + + org.eclipse.papyrus.uml.LoopNode + + + + org.eclipse.papyrus.uml.MergeNode + + + + org.eclipse.papyrus.uml.NamedElement + + + + org.eclipse.papyrus.uml.ObjectFlow + + + + org.eclipse.papyrus.uml.OpaqueAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin_As_UML::LoopNode::loopNodeVariable + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.Parameter + + + + org.eclipse.papyrus.uml.ReadSelfAction + + + + org.eclipse.papyrus.uml.ReadStructuralFeatureAction + + + + org.eclipse.papyrus.uml.ReadVariableAction + + + + org.eclipse.papyrus.uml.SendObjectAction + + + + org.eclipse.papyrus.uml.SendSignalAction + + + + org.eclipse.papyrus.uml.SequenceNode + + + + org.eclipse.papyrus.uml.StructuredActivityNode + + + + org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPrecondition + + + + org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPostcondition + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::CallOperationAction::target + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::object + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::request + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::SendSignalAction::target + + + + org.eclipse.papyrus.uml.ValueSpecificationAction + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::insertAt + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::value + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::insertAt + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::value + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::insertAt + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::AddVariableValueAction::insertAt + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddVariableValueAction::insertAt + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.StartObjectBehaviorAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::StartObjectBehaviorAction::object + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::StartObjectBehaviorAction::object + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::StartObjectBehaviorAction::object + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.TestIdentityAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin_As_UML::TestIdentityAction::second + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin_As_UML::TestIdentityAction::second + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin_As_UML::TestIdentityAction::second + + + + org.eclipse.papyrus.uml.ClearStructuralFeatureAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.CreateLinkAction + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ReadLinkAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.DestroyLinkAction + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ClearAssociationAction + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ReadExtentAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.ReclassifyObjectAction + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ReadIsClassifiedObjectAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ReduceAction + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.OutputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.StartClassifierBehaviorAction + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.InputPin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ValuePin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + org.eclipse.papyrus.uml.ActionInputPin + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + org.eclipse.papyrus.uml.ActionInputPin + + + org.eclipse.gmf.runtime.emf.type.core.null + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + + org.eclipse.papyrus.uml.CallBehaviorAction + + + + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/plugin.xml index d69cd747257..bf5257bec64 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/plugin.xml @@ -3318,7 +3318,7 @@ self.structuralFeature.oclAsType(Property).opposite.type = self.object.type]]> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/META-INF/MANIFEST.MF b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/META-INF/MANIFEST.MF index 02d2f85ca72..4fdba116065 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/META-INF/MANIFEST.MF +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/META-INF/MANIFEST.MF @@ -85,7 +85,7 @@ Require-Bundle: org.eclipse.core.expressions, org.apache.batik.css;bundle-version="[1.6.0,1.7.0)", org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.2.0", org.eclipse.papyrus.infra.viewpoints.configuration;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types;bundle-version="1.2.0", org.eclipse.core.databinding.observable, org.eclipse.papyrus.infra.hyperlink;bundle-version="1.2.0", org.eclipse.papyrus.infra.services.viewersearch;bundle-version="1.2.0", diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram-notation.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram-notation.elementtypesconfigurations index 5bec9a0610f..c6ae7a3a088 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram-notation.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram-notation.elementtypesconfigurations @@ -1,5 +1,5 @@ - - - org.eclipse.gmf.runtime.emf.type.core.null - + + + org.eclipse.gmf.runtime.emf.type.core.null + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.elementtypesconfigurations index a7fbc7ad339..ad715b79ff4 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.elementtypesconfigurations @@ -1,406 +1,406 @@ - - - - org.eclipse.papyrus.uml.Abstraction - - - - org.eclipse.papyrus.uml.AssociationClass - - - - org.eclipse.papyrus.uml.AssociationClass - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.ClassifierTemplateParameter - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.ConnectableElementTemplateParameter - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - org.eclipse.papyrus.uml.Constraint.Context - - - - org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement - - - - org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement - - - org.eclipse.papyrus.uml.Element.OwnedElement - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.gmfdiag.common.Diagram - - - org.eclipse.papyrus.uml.DurationObservation - - - - org.eclipse.papyrus.uml.DurationObservation - - - - org.eclipse.papyrus.uml.ElementImport - - - - org.eclipse.papyrus.uml.EnumerationLiteral - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.GeneralizationSet - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.InformationFlow - - - - org.eclipse.papyrus.uml.InformationItem - - - - org.eclipse.papyrus.uml.InformationItem - - - - org.eclipse.papyrus.uml.InstanceSpecification.Link - - - - org.eclipse.papyrus.uml.InstanceSpecification - - - - org.eclipse.papyrus.uml.InstanceSpecification - - - - org.eclipse.papyrus.uml.InterfaceRealization - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.NamedElement - - - - org.eclipse.papyrus.uml.OperationTemplateParameter - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.PackageImport - - - - org.eclipse.papyrus.uml.PackageMerge - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.ProfileApplication - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Realization - - - - org.eclipse.papyrus.uml.Reception - - - - org.eclipse.papyrus.uml.Reception - - - - org.eclipse.papyrus.uml.RedefinableTemplateSignature - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.Slot - - - - org.eclipse.papyrus.uml.Substitution - - - - org.eclipse.papyrus.uml.TemplateBinding - - - - org.eclipse.papyrus.uml.TemplateParameter - - - - org.eclipse.papyrus.uml.TemplateSignature - - - org.eclipse.papyrus.uml.TimeObservation - - - - org.eclipse.papyrus.uml.TimeObservation - - - - org.eclipse.papyrus.uml.Usage - - - - org.eclipse.papyrus.uml.Package - - - - - - - + + + + org.eclipse.papyrus.uml.Abstraction + + + + org.eclipse.papyrus.uml.AssociationClass + + + + org.eclipse.papyrus.uml.AssociationClass + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.ClassifierTemplateParameter + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.ConnectableElementTemplateParameter + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + org.eclipse.papyrus.uml.Constraint.Context + + + + org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement + + + + org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement + + + org.eclipse.papyrus.uml.Element.OwnedElement + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.gmfdiag.common.Diagram + + + org.eclipse.papyrus.uml.DurationObservation + + + + org.eclipse.papyrus.uml.DurationObservation + + + + org.eclipse.papyrus.uml.ElementImport + + + + org.eclipse.papyrus.uml.EnumerationLiteral + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.GeneralizationSet + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.InformationFlow + + + + org.eclipse.papyrus.uml.InformationItem + + + + org.eclipse.papyrus.uml.InformationItem + + + + org.eclipse.papyrus.uml.InstanceSpecification.Link + + + + org.eclipse.papyrus.uml.InstanceSpecification + + + + org.eclipse.papyrus.uml.InstanceSpecification + + + + org.eclipse.papyrus.uml.InterfaceRealization + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.NamedElement + + + + org.eclipse.papyrus.uml.OperationTemplateParameter + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.PackageImport + + + + org.eclipse.papyrus.uml.PackageMerge + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.ProfileApplication + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Realization + + + + org.eclipse.papyrus.uml.Reception + + + + org.eclipse.papyrus.uml.Reception + + + + org.eclipse.papyrus.uml.RedefinableTemplateSignature + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.Slot + + + + org.eclipse.papyrus.uml.Substitution + + + + org.eclipse.papyrus.uml.TemplateBinding + + + + org.eclipse.papyrus.uml.TemplateParameter + + + + org.eclipse.papyrus.uml.TemplateSignature + + + org.eclipse.papyrus.uml.TimeObservation + + + + org.eclipse.papyrus.uml.TimeObservation + + + + org.eclipse.papyrus.uml.Usage + + + + org.eclipse.papyrus.uml.Package + + + + + + + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/plugin.xml index 12a90d38268..caa5e7271be 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/plugin.xml @@ -1713,14 +1713,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram-notation.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram-notation.elementtypesconfigurations index 9054f582cbd..5ac71abc29e 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram-notation.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram-notation.elementtypesconfigurations @@ -1,8 +1,8 @@ - - - org.eclipse.gmf.runtime.emf.type.core.null - - - org.eclipse.gmf.runtime.emf.type.core.null - + + + org.eclipse.gmf.runtime.emf.type.core.null + + + org.eclipse.gmf.runtime.emf.type.core.null + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.elementtypesconfigurations index c39755ecc80..d5f77057699 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.elementtypesconfigurations @@ -1,140 +1,140 @@ - - - - org.eclipse.papyrus.uml.Abstraction - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Comment - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - - org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement - - - - org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement - - - - org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement - - - - org.eclipse.papyrus.uml.ComponentRealization - - - - org.eclipse.papyrus.uml.Connector - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Constraint - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - - org.eclipse.papyrus.uml.NamedElement - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.InterfaceRealization - - - - org.eclipse.papyrus.uml.Manifestation - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Port - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Reception - - - - org.eclipse.papyrus.uml.Substitution - - - - org.eclipse.papyrus.uml.Usage - + + + + org.eclipse.papyrus.uml.Abstraction + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Comment + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + + org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement + + + + org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement + + + + org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement + + + + org.eclipse.papyrus.uml.ComponentRealization + + + + org.eclipse.papyrus.uml.Connector + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Constraint + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + + org.eclipse.papyrus.uml.NamedElement + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.InterfaceRealization + + + + org.eclipse.papyrus.uml.Manifestation + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Port + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Reception + + + + org.eclipse.papyrus.uml.Substitution + + + + org.eclipse.papyrus.uml.Usage + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/plugin.xml index 595c46e3611..7459fc7184c 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/plugin.xml @@ -1013,14 +1013,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/META-INF/MANIFEST.MF b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/META-INF/MANIFEST.MF index a3c3e2e6f9f..01c7d4c597b 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/META-INF/MANIFEST.MF +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/META-INF/MANIFEST.MF @@ -83,7 +83,7 @@ Require-Bundle: org.eclipse.emf.ecore, org.eclipse.papyrus.infra.properties.ui;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.canonical;bundle-version="1.2.0", org.eclipse.core.databinding.observable, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types;bundle-version="1.2.0", org.eclipse.papyrus.infra.hyperlink;bundle-version="1.2.0", org.eclipse.papyrus.infra.services.viewersearch;bundle-version="1.2.0", org.eclipse.papyrus.infra.ui;bundle-version="1.2.0", diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram-notation.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram-notation.elementtypesconfigurations index a064979c28e..ec5e082f9c7 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram-notation.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram-notation.elementtypesconfigurations @@ -1,11 +1,11 @@ - - - org.eclipse.gmf.runtime.emf.type.core.null - - - org.eclipse.gmf.runtime.emf.type.core.null - - - org.eclipse.gmf.runtime.emf.type.core.null - + + + org.eclipse.gmf.runtime.emf.type.core.null + + + org.eclipse.gmf.runtime.emf.type.core.null + + + org.eclipse.gmf.runtime.emf.type.core.null + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.elementtypesconfigurations index ad7757addd8..68d65010033 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.elementtypesconfigurations @@ -1,422 +1,422 @@ - - - - org.eclipse.papyrus.uml.Abstraction - - - - org.eclipse.papyrus.uml.Activity - - - - org.eclipse.papyrus.uml.Activity - - - - org.eclipse.papyrus.uml.Actor - - - - org.eclipse.papyrus.uml.Actor - - - - org.eclipse.papyrus.uml.AnyReceiveEvent - - - - org.eclipse.papyrus.uml.Artifact - - - - org.eclipse.papyrus.uml.Artifact - - - - org.eclipse.papyrus.uml.CallEvent - - - - org.eclipse.papyrus.uml.ChangeEvent - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Collaboration - - - - org.eclipse.papyrus.uml.Collaboration - - - - org.eclipse.papyrus.uml.Collaboration.CollaborationRole - - - - org.eclipse.papyrus.uml.CollaborationUse - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Comment - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.ComponentRealization - - - - org.eclipse.papyrus.uml.Connector - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Constraint - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Deployment - - - - org.eclipse.papyrus.uml.DeploymentSpecification - - - - org.eclipse.papyrus.uml.DeploymentSpecification - - - - org.eclipse.papyrus.uml.Device - - - - org.eclipse.papyrus.uml.Device - - - - org.eclipse.papyrus.uml.Duration - - - - org.eclipse.papyrus.uml.DurationConstraint - - - - org.eclipse.papyrus.uml.DurationConstraint - - - - org.eclipse.papyrus.uml.DurationInterval - - - - org.eclipse.papyrus.uml.DurationObservation - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.EnumerationLiteral - - - - org.eclipse.papyrus.uml.ExecutionEnvironment - - - - org.eclipse.papyrus.uml.ExecutionEnvironment - - - - org.eclipse.papyrus.uml.Expression - - - - org.eclipse.papyrus.uml.FunctionBehavior - - - - org.eclipse.papyrus.uml.FunctionBehavior - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.InformationFlow - - - - org.eclipse.papyrus.uml.InformationItem - - - - org.eclipse.papyrus.uml.InformationItem - - - - org.eclipse.papyrus.uml.InstanceValue - - - - org.eclipse.papyrus.uml.Interaction - - - - org.eclipse.papyrus.uml.Interaction - - - - org.eclipse.papyrus.uml.InteractionConstraint - - - - org.eclipse.papyrus.uml.InteractionConstraint - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.InterfaceRealization - - - - org.eclipse.papyrus.uml.Interval - - - - org.eclipse.papyrus.uml.IntervalConstraint - - - - org.eclipse.papyrus.uml.IntervalConstraint - - - - org.eclipse.papyrus.uml.LiteralBoolean - - - - org.eclipse.papyrus.uml.LiteralInteger - - - - org.eclipse.papyrus.uml.LiteralNull - - - - org.eclipse.papyrus.uml.LiteralString - - - - org.eclipse.papyrus.uml.LiteralUnlimitedNatural - - - - org.eclipse.papyrus.uml.Manifestation - - - - org.eclipse.papyrus.uml.Node - - - - org.eclipse.papyrus.uml.Node - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - - - org.eclipse.papyrus.uml.OpaqueBehavior - - - - org.eclipse.papyrus.uml.OpaqueExpression - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Parameter - - - - org.eclipse.papyrus.uml.Port - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.ProtocolStateMachine - - - - org.eclipse.papyrus.uml.ProtocolStateMachine - - - - org.eclipse.papyrus.uml.Realization - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - org.eclipse.papyrus.uml.CollaborationUse.RoleBinding - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.Signal - - - - org.eclipse.papyrus.uml.SignalEvent - - - - org.eclipse.papyrus.uml.StateMachine - - - - org.eclipse.papyrus.uml.StateMachine - - - - org.eclipse.papyrus.uml.StringExpression_As_UML::Package::packagedElement - - - - org.eclipse.papyrus.uml.Substitution - - - - org.eclipse.papyrus.uml.TimeConstraint - - - - org.eclipse.papyrus.uml.TimeConstraint - - - - org.eclipse.papyrus.uml.TimeEvent - - - - org.eclipse.papyrus.uml.TimeExpression - - - - org.eclipse.papyrus.uml.TimeInterval - - - - org.eclipse.papyrus.uml.TimeObservation - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - org.eclipse.papyrus.uml.Usage - - - - org.eclipse.papyrus.uml.UseCase - - - - org.eclipse.papyrus.uml.UseCase - - - - - - - - - - + + + + org.eclipse.papyrus.uml.Abstraction + + + + org.eclipse.papyrus.uml.Activity + + + + org.eclipse.papyrus.uml.Activity + + + + org.eclipse.papyrus.uml.Actor + + + + org.eclipse.papyrus.uml.Actor + + + + org.eclipse.papyrus.uml.AnyReceiveEvent + + + + org.eclipse.papyrus.uml.Artifact + + + + org.eclipse.papyrus.uml.Artifact + + + + org.eclipse.papyrus.uml.CallEvent + + + + org.eclipse.papyrus.uml.ChangeEvent + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Collaboration + + + + org.eclipse.papyrus.uml.Collaboration + + + + org.eclipse.papyrus.uml.Collaboration.CollaborationRole + + + + org.eclipse.papyrus.uml.CollaborationUse + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Comment + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.ComponentRealization + + + + org.eclipse.papyrus.uml.Connector + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Constraint + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Deployment + + + + org.eclipse.papyrus.uml.DeploymentSpecification + + + + org.eclipse.papyrus.uml.DeploymentSpecification + + + + org.eclipse.papyrus.uml.Device + + + + org.eclipse.papyrus.uml.Device + + + + org.eclipse.papyrus.uml.Duration + + + + org.eclipse.papyrus.uml.DurationConstraint + + + + org.eclipse.papyrus.uml.DurationConstraint + + + + org.eclipse.papyrus.uml.DurationInterval + + + + org.eclipse.papyrus.uml.DurationObservation + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.EnumerationLiteral + + + + org.eclipse.papyrus.uml.ExecutionEnvironment + + + + org.eclipse.papyrus.uml.ExecutionEnvironment + + + + org.eclipse.papyrus.uml.Expression + + + + org.eclipse.papyrus.uml.FunctionBehavior + + + + org.eclipse.papyrus.uml.FunctionBehavior + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.InformationFlow + + + + org.eclipse.papyrus.uml.InformationItem + + + + org.eclipse.papyrus.uml.InformationItem + + + + org.eclipse.papyrus.uml.InstanceValue + + + + org.eclipse.papyrus.uml.Interaction + + + + org.eclipse.papyrus.uml.Interaction + + + + org.eclipse.papyrus.uml.InteractionConstraint + + + + org.eclipse.papyrus.uml.InteractionConstraint + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.InterfaceRealization + + + + org.eclipse.papyrus.uml.Interval + + + + org.eclipse.papyrus.uml.IntervalConstraint + + + + org.eclipse.papyrus.uml.IntervalConstraint + + + + org.eclipse.papyrus.uml.LiteralBoolean + + + + org.eclipse.papyrus.uml.LiteralInteger + + + + org.eclipse.papyrus.uml.LiteralNull + + + + org.eclipse.papyrus.uml.LiteralString + + + + org.eclipse.papyrus.uml.LiteralUnlimitedNatural + + + + org.eclipse.papyrus.uml.Manifestation + + + + org.eclipse.papyrus.uml.Node + + + + org.eclipse.papyrus.uml.Node + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + + + org.eclipse.papyrus.uml.OpaqueBehavior + + + + org.eclipse.papyrus.uml.OpaqueExpression + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Parameter + + + + org.eclipse.papyrus.uml.Port + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.ProtocolStateMachine + + + + org.eclipse.papyrus.uml.ProtocolStateMachine + + + + org.eclipse.papyrus.uml.Realization + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + org.eclipse.papyrus.uml.CollaborationUse.RoleBinding + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.Signal + + + + org.eclipse.papyrus.uml.SignalEvent + + + + org.eclipse.papyrus.uml.StateMachine + + + + org.eclipse.papyrus.uml.StateMachine + + + + org.eclipse.papyrus.uml.StringExpression_As_UML::Package::packagedElement + + + + org.eclipse.papyrus.uml.Substitution + + + + org.eclipse.papyrus.uml.TimeConstraint + + + + org.eclipse.papyrus.uml.TimeConstraint + + + + org.eclipse.papyrus.uml.TimeEvent + + + + org.eclipse.papyrus.uml.TimeExpression + + + + org.eclipse.papyrus.uml.TimeInterval + + + + org.eclipse.papyrus.uml.TimeObservation + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + org.eclipse.papyrus.uml.Usage + + + + org.eclipse.papyrus.uml.UseCase + + + + org.eclipse.papyrus.uml.UseCase + + + + + + + + + + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/plugin.xml index 47439945aa0..d7c3411e8f3 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/plugin.xml @@ -946,14 +946,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations index 05d7299b2b1..f58db1738ab 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations @@ -1,5 +1,5 @@ - - - org.eclipse.gmf.runtime.emf.type.core.null - + + + org.eclipse.gmf.runtime.emf.type.core.null + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations index 1c9dadf6a2b..95ed3116b1e 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations @@ -1,144 +1,144 @@ - - - - org.eclipse.papyrus.uml.Artifact - - - - org.eclipse.papyrus.uml.Artifact - - - - org.eclipse.papyrus.uml.Artifact - - - - org.eclipse.papyrus.uml.Artifact - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Comment - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - - org.eclipse.papyrus.uml.CommunicationPath - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Constraint - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - - org.eclipse.papyrus.uml.NamedElement - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Deployment - - - - org.eclipse.papyrus.uml.DeploymentSpecification - - - - org.eclipse.papyrus.uml.DeploymentSpecification - - - - org.eclipse.papyrus.uml.DeploymentSpecification - - - - org.eclipse.papyrus.uml.DeploymentSpecification - - - - org.eclipse.papyrus.um.Device_As_UML::Node::nestedNode - - - - org.eclipse.papyrus.uml.Device - - - - org.eclipse.papyrus.uml.Device - - - - org.eclipse.papyrus.um.ExecutionEnvironment_As_UML::Node::nestedNode - - - - org.eclipse.papyrus.uml.ExecutionEnvironment - - - - org.eclipse.papyrus.uml.ExecutionEnvironment - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.Manifestation - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.um.Node_As_UML::Node::nestedNode - - - - org.eclipse.papyrus.uml.Node - - - - org.eclipse.papyrus.uml.Node - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Package - + + + + org.eclipse.papyrus.uml.Artifact + + + + org.eclipse.papyrus.uml.Artifact + + + + org.eclipse.papyrus.uml.Artifact + + + + org.eclipse.papyrus.uml.Artifact + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Comment + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + + org.eclipse.papyrus.uml.CommunicationPath + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Constraint + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + + org.eclipse.papyrus.uml.NamedElement + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Deployment + + + + org.eclipse.papyrus.uml.DeploymentSpecification + + + + org.eclipse.papyrus.uml.DeploymentSpecification + + + + org.eclipse.papyrus.uml.DeploymentSpecification + + + + org.eclipse.papyrus.uml.DeploymentSpecification + + + + org.eclipse.papyrus.um.Device_As_UML::Node::nestedNode + + + + org.eclipse.papyrus.uml.Device + + + + org.eclipse.papyrus.uml.Device + + + + org.eclipse.papyrus.um.ExecutionEnvironment_As_UML::Node::nestedNode + + + + org.eclipse.papyrus.uml.ExecutionEnvironment + + + + org.eclipse.papyrus.uml.ExecutionEnvironment + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.Manifestation + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.um.Node_As_UML::Node::nestedNode + + + + org.eclipse.papyrus.uml.Node + + + + org.eclipse.papyrus.uml.Node + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Package + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml index 9525a8b604f..8295be7d945 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml @@ -747,14 +747,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/META-INF/MANIFEST.MF b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/META-INF/MANIFEST.MF index de4ccbf902a..2368b688837 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/META-INF/MANIFEST.MF +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/META-INF/MANIFEST.MF @@ -55,7 +55,6 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.emf.facet.custom.core;bundle-version="1.2.0", org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.2.0", org.eclipse.papyrus.infra.viewpoints.configuration;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.css;bundle-version="1.2.0", org.eclipse.papyrus.infra.ui;bundle-version="1.2.0", org.eclipse.papyrus.infra.core.sashwindows.di;bundle-version="1.2.0", diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/model/interactionOverviewDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/model/interactionOverviewDiagram.elementtypesconfigurations index b02b6ffda0d..d065929aa1e 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/model/interactionOverviewDiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/model/interactionOverviewDiagram.elementtypesconfigurations @@ -1,12 +1,12 @@ - - - - org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_3008 - - - - - org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType - - + + + + org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_3008 + + + + + org.eclipse.papyrus.uml.diagram.activity.CallBehaviorAction_BaseType + + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/plugin.xml index a90f16750f7..d553e3db256 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/plugin.xml @@ -721,7 +721,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.elementtypesconfigurations index 295ddf04001..3d0f2c40621 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.elementtypesconfigurations @@ -1,171 +1,171 @@ - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Comment - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement - - - - org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - org.eclipse.papyrus.uml.Constraint.Context - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.DataType - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.ElementImport - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.Enumeration - - - - org.eclipse.papyrus.uml.EnumerationLiteral - - - - org.eclipse.papyrus.uml.Extension - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Class - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.Model - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Operation - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.PackageImport - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.PrimitiveType - - - - org.eclipse.papyrus.uml.Profile - - - - org.eclipse.papyrus.uml.Profile - - - - org.eclipse.papyrus.uml.Profile - - - - org.eclipse.papyrus.uml.ProfileApplication - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.uml.Property - - - - org.eclipse.papyrus.gmfdiag.common.Diagram - - - - org.eclipse.papyrus.uml.Stereotype - - - - org.eclipse.papyrus.uml.Stereotype - + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Comment + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement + + + + org.eclipse.papyrus.uml.Constraint_As_UML::Package::packagedElement + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + org.eclipse.papyrus.uml.Constraint.Context + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.DataType + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.ElementImport + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.Enumeration + + + + org.eclipse.papyrus.uml.EnumerationLiteral + + + + org.eclipse.papyrus.uml.Extension + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.Model + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Operation + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.PackageImport + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.PrimitiveType + + + + org.eclipse.papyrus.uml.Profile + + + + org.eclipse.papyrus.uml.Profile + + + + org.eclipse.papyrus.uml.Profile + + + + org.eclipse.papyrus.uml.ProfileApplication + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.uml.Property + + + + org.eclipse.papyrus.gmfdiag.common.Diagram + + + + org.eclipse.papyrus.uml.Stereotype + + + + org.eclipse.papyrus.uml.Stereotype + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/plugin.xml index 09e3eee65d5..66d2797748b 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/plugin.xml @@ -971,7 +971,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.elementtypesconfigurations index 92aa3ace960..e91000e4833 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.elementtypesconfigurations @@ -1,113 +1,113 @@ - - - - org.eclipse.papyrus.uml.Comment - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - - org.eclipse.papyrus.uml.ConnectionPointReference - - - - org.eclipse.papyrus.uml.Constraint - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - org.eclipse.papyrus.uml.Constraint.Context - - - - org.eclipse.papyrus.uml.Behavior_As_UML::State::doActivity - - - - org.eclipse.papyrus.uml.Behavior_As_UML::State::entry - - - - org.eclipse.papyrus.uml.Behavior_As_UML::State::exit - - - - org.eclipse.papyrus.uml.FinalState - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.Transition - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.BasePseudostateType - - - - org.eclipse.papyrus.uml.Region - - - - org.eclipse.papyrus.uml.State - - - - org.eclipse.papyrus.uml.StateMachine - - - - org.eclipse.papyrus.uml.Transition - - - org.eclipse.papyrus.uml.Pseudostate - - - - + + + + org.eclipse.papyrus.uml.Comment + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + + org.eclipse.papyrus.uml.ConnectionPointReference + + + + org.eclipse.papyrus.uml.Constraint + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + org.eclipse.papyrus.uml.Constraint.Context + + + + org.eclipse.papyrus.uml.Behavior_As_UML::State::doActivity + + + + org.eclipse.papyrus.uml.Behavior_As_UML::State::entry + + + + org.eclipse.papyrus.uml.Behavior_As_UML::State::exit + + + + org.eclipse.papyrus.uml.FinalState + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.Transition + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.BasePseudostateType + + + + org.eclipse.papyrus.uml.Region + + + + org.eclipse.papyrus.uml.State + + + + org.eclipse.papyrus.uml.StateMachine + + + + org.eclipse.papyrus.uml.Transition + + + org.eclipse.papyrus.uml.Pseudostate + + + + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/plugin.xml index 7ec75f752f1..9e35c542492 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/plugin.xml @@ -855,7 +855,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/META-INF/MANIFEST.MF b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/META-INF/MANIFEST.MF index ce0e7828442..8ea0e30f2ed 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/META-INF/MANIFEST.MF +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/META-INF/MANIFEST.MF @@ -76,7 +76,7 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.papyrus.infra.viewpoints.configuration;bundle-version="1.2.0", org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types;bundle-version="1.2.0", org.eclipse.core.databinding.observable, org.eclipse.papyrus.infra.gmfdiag.dnd;bundle-version="1.2.0", org.eclipse.papyrus.infra.ui;bundle-version="1.2.0" diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram-notation.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram-notation.elementtypesconfigurations index e8f1e7ed5ca..2532ac6ff9d 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram-notation.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram-notation.elementtypesconfigurations @@ -1,5 +1,5 @@ - - - org.eclipse.papyrus.gmfdiag.common.Diagram - + + + org.eclipse.papyrus.gmfdiag.common.Diagram + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.elementtypesconfigurations index e0b0b5898dd..c551e5cb989 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.elementtypesconfigurations +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.elementtypesconfigurations @@ -1,139 +1,139 @@ - - - - org.eclipse.papyrus.uml.ExtensionPoint - - - - org.eclipse.papyrus.uml.ExtensionPoint - - - - org.eclipse.papyrus.uml.UseCase_As_UML::Classifier::ownedUseCase - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Actor - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Actor - - - - org.eclipse.papyrus.uml.UseCase - - - - org.eclipse.papyrus.uml.Component - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Actor - - - - org.eclipse.papyrus.uml.Actor - - - - org.eclipse.papyrus.uml.UseCase - - - - org.eclipse.papyrus.uml.UseCase - - - - org.eclipse.papyrus.uml.Classifier - - - - org.eclipse.papyrus.uml.Package - - - - org.eclipse.papyrus.uml.Constraint - - - - org.eclipse.papyrus.uml.Comment - - - - org.eclipse.papyrus.uml.NamedElement - - - org.eclipse.papyrus.gmfdiag.common.Diagram - - - - org.eclipse.papyrus.uml.Include - - - - org.eclipse.papyrus.uml.Extend - - - - org.eclipse.papyrus.uml.Generalization - - - - org.eclipse.papyrus.uml.Association - - - - org.eclipse.papyrus.uml.Dependency - - - - org.eclipse.papyrus.uml.Abstraction - - - - org.eclipse.papyrus.uml.Usage - - - - org.eclipse.papyrus.uml.Realization - - - - org.eclipse.papyrus.uml.PackageMerge - - - - org.eclipse.papyrus.uml.PackageImport - - - org.eclipse.papyrus.uml.Comment.AnnotatedElements - - - org.eclipse.papyrus.uml.Constraint.ConstrainedElements - - - - org.eclipse.papyrus.uml.Package - + + + + org.eclipse.papyrus.uml.ExtensionPoint + + + + org.eclipse.papyrus.uml.ExtensionPoint + + + + org.eclipse.papyrus.uml.UseCase_As_UML::Classifier::ownedUseCase + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Actor + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Actor + + + + org.eclipse.papyrus.uml.UseCase + + + + org.eclipse.papyrus.uml.Component + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Actor + + + + org.eclipse.papyrus.uml.Actor + + + + org.eclipse.papyrus.uml.UseCase + + + + org.eclipse.papyrus.uml.UseCase + + + + org.eclipse.papyrus.uml.Classifier + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Constraint + + + + org.eclipse.papyrus.uml.Comment + + + + org.eclipse.papyrus.uml.NamedElement + + + org.eclipse.papyrus.gmfdiag.common.Diagram + + + + org.eclipse.papyrus.uml.Include + + + + org.eclipse.papyrus.uml.Extend + + + + org.eclipse.papyrus.uml.Generalization + + + + org.eclipse.papyrus.uml.Association + + + + org.eclipse.papyrus.uml.Dependency + + + + org.eclipse.papyrus.uml.Abstraction + + + + org.eclipse.papyrus.uml.Usage + + + + org.eclipse.papyrus.uml.Realization + + + + org.eclipse.papyrus.uml.PackageMerge + + + + org.eclipse.papyrus.uml.PackageImport + + + org.eclipse.papyrus.uml.Comment.AnnotatedElements + + + org.eclipse.papyrus.uml.Constraint.ConstrainedElements + + + + org.eclipse.papyrus.uml.Package + \ No newline at end of file diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/plugin.xml index cf887fb91c7..29fcdc0d363 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/plugin.xml @@ -974,14 +974,14 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/META-INF/MANIFEST.MF b/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/META-INF/MANIFEST.MF index d63e57f7730..a1f6cece76e 100644 --- a/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/META-INF/MANIFEST.MF +++ b/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.gmf.runtime.emf.core;bundle-version="1.7.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", com.google.guava;bundle-version="11.0.0", org.eclipse.xtext.xbase.lib, org.eclipse.xtend.lib, diff --git a/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/src/org/eclipse/papyrus/uml/profile/newchildmenu/generator/NewChildMenuGenerator.xtend b/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/src/org/eclipse/papyrus/uml/profile/newchildmenu/generator/NewChildMenuGenerator.xtend index 172184687df..93f51b6df6c 100644 --- a/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/src/org/eclipse/papyrus/uml/profile/newchildmenu/generator/NewChildMenuGenerator.xtend +++ b/plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator/src/org/eclipse/papyrus/uml/profile/newchildmenu/generator/NewChildMenuGenerator.xtend @@ -16,8 +16,8 @@ package org.eclipse.papyrus.uml.profile.newchildmenu.generator import org.eclipse.emf.common.util.EList import org.eclipse.emf.common.util.URI import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ElementTypeSetConfigurationImpl +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration +import org.eclipse.papyrus.infra.types.impl.ElementTypeSetConfigurationImpl import org.eclipse.papyrus.infra.newchild.elementcreationmenumodel.CreationMenu import org.eclipse.papyrus.infra.newchild.elementcreationmenumodel.ElementCreationMenuModelFactory import org.eclipse.papyrus.infra.newchild.elementcreationmenumodel.Folder diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.classpath b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.classpath deleted file mode 100644 index 756f4289006..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.project b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.project deleted file mode 100644 index ef104cfc383..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.uml.elementtypesconfigurations - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index c585cc455ae..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +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 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/META-INF/MANIFEST.MF b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/META-INF/MANIFEST.MF deleted file mode 100644 index b055de94abe..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/META-INF/MANIFEST.MF +++ /dev/null @@ -1,52 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.emf.ecore.xmi;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.uml2.types;visibility:=reexport, - org.eclipse.uml2.uml;visibility:=reexport, - org.eclipse.emf.edit;visibility:=reexport, - org.eclipse.emf.ecore.edit;visibility:=reexport, - org.eclipse.papyrus.infra.elementtypesconfigurations.edit;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.uml2.uml.edit;visibility:=reexport, - org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0", - org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", - org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", - org.eclipse.swt, - org.eclipse.papyrus.infra.widgets;bundle-version="1.2.0", - org.eclipse.papyrus.uml.properties;bundle-version="1.2.0", - org.eclipse.papyrus.views.properties;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes;bundle-version="1.2.0";visibility:=reexport, - org.eclipse.ui.workbench, - org.eclipse.papyrus.infra.elementtypesconfigurations.emf;bundle-version="1.2.0", - org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.2.0", - org.eclipse.papyrus.infra.core;bundle-version="1.2.0" -Export-Package: org.eclipse.papyrus.uml.elementtypesconfigurations, - org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration, - org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl, - org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider, - org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util, - org.eclipse.papyrus.uml.elementtypesconfigurations.edithelper, - org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration, - org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl, - org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.provider, - org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util, - org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration, - org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl, - org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.provider, - org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.util, - org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration, - org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl, - org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.provider, - org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.provider.StereotypeApplicationMatcherConfigurationEditPlugin$Implementation -Bundle-SymbolicName: org.eclipse.papyrus.uml.elementtypesconfigurations;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/about.html b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/build.properties b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/build.properties deleted file mode 100644 index 9c8bb55b912..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/build.properties +++ /dev/null @@ -1,8 +0,0 @@ -# -#Mon Sep 12 09:29:52 CEST 2011 -output..=bin/ -bin.includes=.,model/,META-INF/,plugin.xml,plugin.properties,about.html,icons/ -jars.compile.order=. -src.includes = about.html -source..=src-gen/,src/ -bin..=bin/ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/Stereotype.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/Stereotype.gif deleted file mode 100644 index b7ae8706f73..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/Stereotype.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif deleted file mode 100644 index fcfec345ba6..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif deleted file mode 100644 index 91bb42f1a6b..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif deleted file mode 100644 index 95a741cb08d..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif deleted file mode 100644 index fe10b8e7be4..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif deleted file mode 100644 index 72cfbd01f7f..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif deleted file mode 100644 index d8b262a3bb1..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif deleted file mode 100644 index 95a524524a9..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif deleted file mode 100644 index dac4138ca01..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif deleted file mode 100644 index 755e4ca7a46..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif deleted file mode 100644 index 8ce82e3f6c7..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif deleted file mode 100644 index fe708946d58..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif deleted file mode 100644 index 4aaad5a4cd7..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif deleted file mode 100644 index 44afafd55da..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif deleted file mode 100644 index f93c92d061a..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif deleted file mode 100644 index 5ef9a94e8da..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif deleted file mode 100644 index bbf242da6a9..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif deleted file mode 100644 index f08356ef9bb..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif deleted file mode 100644 index 37dad615792..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif deleted file mode 100644 index 8ce82e3f6c7..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif deleted file mode 100644 index 4aaad5a4cd7..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif deleted file mode 100644 index 33e07420851..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif deleted file mode 100644 index e180c4cf7ca..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif deleted file mode 100644 index f58e5a1f04f..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif deleted file mode 100644 index ff53277ff1c..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif deleted file mode 100644 index 62e68eb5614..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif deleted file mode 100644 index 7b489fdd24d..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif deleted file mode 100644 index 15cbbadd0dc..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif deleted file mode 100644 index 1b149e889ab..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif deleted file mode 100644 index 03366e35d0f..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif deleted file mode 100644 index 8997497557c..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif deleted file mode 100644 index c048169804a..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif deleted file mode 100644 index a573a9e5f29..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif deleted file mode 100644 index 09b8804bd23..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif deleted file mode 100644 index e8daccd8af2..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif deleted file mode 100644 index 0a4d20c16db..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif deleted file mode 100644 index fcfec345ba6..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif deleted file mode 100644 index d8d5fa98a50..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif deleted file mode 100644 index c561177716e..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeActionConfiguration.gif deleted file mode 100644 index 35ef84e20e2..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeActionConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif deleted file mode 100644 index 14af8aaee9f..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ConstantValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ConstantValue.gif deleted file mode 100644 index e4bc22dd17e..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ConstantValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/FeatureToSet.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/FeatureToSet.gif deleted file mode 100644 index 5a9bc7514fa..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/FeatureToSet.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeConfiguration.gif deleted file mode 100644 index c4a8af41844..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif deleted file mode 100644 index 33854e98c25..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ListValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ListValue.gif deleted file mode 100644 index c3370c7ddd5..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/ListValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/QueryExecutionValue.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/QueryExecutionValue.gif deleted file mode 100644 index ed874747401..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/QueryExecutionValue.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeActionConfiguration.gif deleted file mode 100644 index be22463d291..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeActionConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeAdviceConfiguration.gif deleted file mode 100644 index ea58a657dc0..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/SetTypeAdviceConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif deleted file mode 100644 index 904159880b3..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeToApply.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeToApply.gif deleted file mode 100644 index caf2804510d..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypeToApply.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypedElementMatcherConfiguration.gif deleted file mode 100644 index d3dc5a9ad81..00000000000 Binary files a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/icons/full/obj16/StereotypedElementMatcherConfiguration.gif and /dev/null differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.ecore b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.ecore deleted file mode 100644 index 6fed279d02e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.ecore +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.genmodel b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.genmodel deleted file mode 100644 index 456cea68a2b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/ApplyStereotypeAdviceConfiguration.genmodel +++ /dev/null @@ -1,38 +0,0 @@ - - - ApplyStereotypeAdviceConfiguration.ecore - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.ecore b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.ecore deleted file mode 100644 index 81fbcf42776..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.ecore +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.genmodel b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.genmodel deleted file mode 100644 index 64bec55104e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/InvariantStereotypeRuleConfiguration.genmodel +++ /dev/null @@ -1,22 +0,0 @@ - - - InvariantStereotypeRuleConfiguration.ecore - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.ecore b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.ecore deleted file mode 100644 index cc60b54f72d..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.ecore +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.genmodel b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.genmodel deleted file mode 100644 index 6912b05824c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/SetTypeAdviceConfiguration.genmodel +++ /dev/null @@ -1,21 +0,0 @@ - - - SetTypeAdviceConfiguration.ecore - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.ecore b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.ecore deleted file mode 100644 index 7ed203c463a..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.ecore +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.genmodel b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.genmodel deleted file mode 100644 index 816a74b53a8..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/model/StereotypeApplicationMatcherConfiguration.genmodel +++ /dev/null @@ -1,21 +0,0 @@ - - - StereotypeApplicationMatcherConfiguration.ecore - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.properties b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.properties deleted file mode 100644 index 924e199165e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.properties +++ /dev/null @@ -1,50 +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: -# Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - initial API and implementation -################################################################################## -pluginName = UML configurations for ElementTypesConfigurations framework -providerName = Eclipse Modeling Project -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - _UI_PropertyDescriptor_description = The {0} of the {1} - _UI_ApplyStereotypeAdviceConfiguration_type = Apply Stereotype Advice Configuration -_UI_StereotypeToApply_type = Stereotype To Apply -_UI_FeatureToSet_type = Feature To Set -_UI_FeatureValue_type = Feature Value -_UI_ListValue_type = List Value -_UI_ConstantValue_type = Constant Value -_UI_DynamicValue_type = Dynamic Value -_UI_QueryExecutionValue_type = Query Execution Value -_UI_Unknown_type = Object - _UI_Unknown_datatype= Value - _UI_ApplyStereotypeAdviceConfiguration_stereotypesToApply_feature = Stereotypes To Apply -_UI_StereotypeToApply_stereotypeQualifiedName_feature = Stereotype Qualified Name -_UI_StereotypeToApply_updateName_feature = Update Name -_UI_StereotypeToApply_requiredProfiles_feature = Required Profiles -_UI_StereotypeToApply_featuresToSet_feature = Features To Set -_UI_FeatureToSet_featureName_feature = Feature Name -_UI_FeatureToSet_value_feature = Value -_UI_ListValue_values_feature = Values -_UI_ConstantValue_valueInstance_feature = Value Instance -_UI_Unknown_feature = Unspecified - -_UI_InvariantStereotypeRuleConfiguration_type = Invariant Stereotype Rule Configuration -_UI_InvariantStereotypeRuleConfiguration_stereotypeQualifiedName_feature = Stereotype Qualified Name -_UI_InvariantStereotypeRuleConfiguration_requiredProfile_feature = Required Profile -_UI_SetTypeAdviceConfiguration_type = Set Type Advice Configuration -_UI_SetTypeAdviceConfiguration_validTypes_feature = Valid Types -_UI_SetTypeAdviceConfiguration_creationTypes_feature = Creation Types -_UI_StereotypeApplicationMatcherConfiguration_type = Stereotype Application Matcher Configuration -_UI_StereotypeApplicationMatcherConfiguration_stereotypesQualifiedNames_feature = Stereotypes Qualified Names -_UI_InvariantStereotypeRuleConfiguration_strict_feature = Strict -_UI_StereotypeApplicationMatcherConfiguration_profileUri_feature = Profile Uri diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.xml b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.xml deleted file mode 100644 index 88c1dd47218..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/plugin.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/pom.xml b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/pom.xml deleted file mode 100644 index a73773e8a9f..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus - org.eclipse.papyrus.uml - 0.0.1-SNAPSHOT - - org.eclipse.papyrus.uml.elementtypesconfigurations - 1.2.0-SNAPSHOT - eclipse-plugin - diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfiguration.java deleted file mode 100644 index 1e0778f89dd..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfiguration.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; - -/** - * - * A representation of the model object 'Apply Stereotype Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration#getStereotypesToApply Stereotypes To Apply}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getApplyStereotypeAdviceConfiguration() - * @model - * @generated - */ -public interface ApplyStereotypeAdviceConfiguration extends AbstractAdviceBindingConfiguration { - /** - * Returns the value of the 'Stereotypes To Apply' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply}. - * - *

- * If the meaning of the 'Stereotypes To Apply' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Stereotypes To Apply' containment reference list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getApplyStereotypeAdviceConfiguration_StereotypesToApply() - * @model containment="true" - * @generated - */ - EList getStereotypesToApply(); - -} // ApplyStereotypeAdviceConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationFactory.java deleted file mode 100644 index 97998b1fb39..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationFactory.java +++ /dev/null @@ -1,97 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage - * @generated - */ -public interface ApplyStereotypeAdviceConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - ApplyStereotypeAdviceConfigurationFactory eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Apply Stereotype Advice Configuration'. - * - * - * @return a new object of class 'Apply Stereotype Advice Configuration'. - * @generated - */ - ApplyStereotypeAdviceConfiguration createApplyStereotypeAdviceConfiguration(); - - /** - * Returns a new object of class 'Stereotype To Apply'. - * - * - * @return a new object of class 'Stereotype To Apply'. - * @generated - */ - StereotypeToApply createStereotypeToApply(); - - /** - * Returns a new object of class 'Feature To Set'. - * - * - * @return a new object of class 'Feature To Set'. - * @generated - */ - FeatureToSet createFeatureToSet(); - - /** - * Returns a new object of class 'List Value'. - * - * - * @return a new object of class 'List Value'. - * @generated - */ - ListValue createListValue(); - - /** - * Returns a new object of class 'Constant Value'. - * - * - * @return a new object of class 'Constant Value'. - * @generated - */ - ConstantValue createConstantValue(); - - /** - * Returns a new object of class 'Query Execution Value'. - * - * - * @return a new object of class 'Query Execution Value'. - * @generated - */ - QueryExecutionValue createQueryExecutionValue(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - ApplyStereotypeAdviceConfigurationPackage getApplyStereotypeAdviceConfigurationPackage(); - -} //ApplyStereotypeAdviceConfigurationFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationPackage.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationPackage.java deleted file mode 100644 index 1fad8c1293f..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceConfigurationPackage.java +++ /dev/null @@ -1,731 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -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.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory - * @model kind="package" - * @generated - */ -public interface ApplyStereotypeAdviceConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "applystereotypeadviceconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/uml/applystereotypeadvice/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "applystereotypeadviceconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - ApplyStereotypeAdviceConfigurationPackage eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationImpl Apply Stereotype Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getApplyStereotypeAdviceConfiguration() - * @generated - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION = 0; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__DESCRIPTION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__BEFORE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__AFTER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__IDENTIFIER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Target' reference. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__TARGET = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; - - /** - * The feature id for the 'Inheritance' attribute. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__INHERITANCE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; - - /** - * The feature id for the 'Stereotypes To Apply' containment reference list. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Apply Stereotype Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int APPLY_STEREOTYPE_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl Stereotype To Apply}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getStereotypeToApply() - * @generated - */ - int STEREOTYPE_TO_APPLY = 1; - - /** - * The feature id for the 'Stereotype Qualified Name' attribute. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME = 0; - - /** - * The feature id for the 'Update Name' attribute. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_TO_APPLY__UPDATE_NAME = 1; - - /** - * The feature id for the 'Required Profiles' attribute list. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_TO_APPLY__REQUIRED_PROFILES = 2; - - /** - * The feature id for the 'Features To Set' containment reference list. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_TO_APPLY__FEATURES_TO_SET = 3; - - /** - * The number of structural features of the 'Stereotype To Apply' class. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_TO_APPLY_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureToSetImpl Feature To Set}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureToSetImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getFeatureToSet() - * @generated - */ - int FEATURE_TO_SET = 2; - - /** - * The feature id for the 'Feature Name' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_TO_SET__FEATURE_NAME = 0; - - /** - * The feature id for the 'Value' containment reference. - * - * - * @generated - * @ordered - */ - int FEATURE_TO_SET__VALUE = 1; - - /** - * The number of structural features of the 'Feature To Set' class. - * - * - * @generated - * @ordered - */ - int FEATURE_TO_SET_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureValueImpl Feature Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getFeatureValue() - * @generated - */ - int FEATURE_VALUE = 3; - - /** - * The number of structural features of the 'Feature Value' class. - * - * - * @generated - * @ordered - */ - int FEATURE_VALUE_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ListValueImpl List Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ListValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getListValue() - * @generated - */ - int LIST_VALUE = 4; - - /** - * The feature id for the 'Values' containment reference list. - * - * - * @generated - * @ordered - */ - int LIST_VALUE__VALUES = FEATURE_VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'List Value' class. - * - * - * @generated - * @ordered - */ - int LIST_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ConstantValueImpl Constant Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ConstantValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getConstantValue() - * @generated - */ - int CONSTANT_VALUE = 5; - - /** - * The feature id for the 'Value Instance' containment reference. - * - * - * @generated - * @ordered - */ - int CONSTANT_VALUE__VALUE_INSTANCE = FEATURE_VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Constant Value' class. - * - * - * @generated - * @ordered - */ - int CONSTANT_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.DynamicValueImpl Dynamic Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.DynamicValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getDynamicValue() - * @generated - */ - int DYNAMIC_VALUE = 6; - - /** - * The number of structural features of the 'Dynamic Value' class. - * - * - * @generated - * @ordered - */ - int DYNAMIC_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.QueryExecutionValueImpl Query Execution Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.QueryExecutionValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getQueryExecutionValue() - * @generated - */ - int QUERY_EXECUTION_VALUE = 7; - - /** - * The number of structural features of the 'Query Execution Value' class. - * - * - * @generated - * @ordered - */ - int QUERY_EXECUTION_VALUE_FEATURE_COUNT = DYNAMIC_VALUE_FEATURE_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration Apply Stereotype Advice Configuration}'. - * - * - * @return the meta object for class 'Apply Stereotype Advice Configuration'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration - * @generated - */ - EClass getApplyStereotypeAdviceConfiguration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration#getStereotypesToApply Stereotypes To Apply}'. - * - * - * @return the meta object for the containment reference list 'Stereotypes To Apply'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration#getStereotypesToApply() - * @see #getApplyStereotypeAdviceConfiguration() - * @generated - */ - EReference getApplyStereotypeAdviceConfiguration_StereotypesToApply(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply Stereotype To Apply}'. - * - * - * @return the meta object for class 'Stereotype To Apply'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply - * @generated - */ - EClass getStereotypeToApply(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getStereotypeQualifiedName Stereotype Qualified Name}'. - * - * - * @return the meta object for the attribute 'Stereotype Qualified Name'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getStereotypeQualifiedName() - * @see #getStereotypeToApply() - * @generated - */ - EAttribute getStereotypeToApply_StereotypeQualifiedName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#isUpdateName Update Name}'. - * - * - * @return the meta object for the attribute 'Update Name'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#isUpdateName() - * @see #getStereotypeToApply() - * @generated - */ - EAttribute getStereotypeToApply_UpdateName(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getRequiredProfiles Required Profiles}'. - * - * - * @return the meta object for the attribute list 'Required Profiles'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getRequiredProfiles() - * @see #getStereotypeToApply() - * @generated - */ - EAttribute getStereotypeToApply_RequiredProfiles(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getFeaturesToSet Features To Set}'. - * - * - * @return the meta object for the containment reference list 'Features To Set'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getFeaturesToSet() - * @see #getStereotypeToApply() - * @generated - */ - EReference getStereotypeToApply_FeaturesToSet(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet Feature To Set}'. - * - * - * @return the meta object for class 'Feature To Set'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet - * @generated - */ - EClass getFeatureToSet(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getFeatureName Feature Name}'. - * - * - * @return the meta object for the attribute 'Feature Name'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getFeatureName() - * @see #getFeatureToSet() - * @generated - */ - EAttribute getFeatureToSet_FeatureName(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getValue Value}'. - * - * - * @return the meta object for the containment reference 'Value'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getValue() - * @see #getFeatureToSet() - * @generated - */ - EReference getFeatureToSet_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue Feature Value}'. - * - * - * @return the meta object for class 'Feature Value'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue - * @generated - */ - EClass getFeatureValue(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue List Value}'. - * - * - * @return the meta object for class 'List Value'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue - * @generated - */ - EClass getListValue(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue#getValues Values}'. - * - * - * @return the meta object for the containment reference list 'Values'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue#getValues() - * @see #getListValue() - * @generated - */ - EReference getListValue_Values(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue Constant Value}'. - * - * - * @return the meta object for class 'Constant Value'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue - * @generated - */ - EClass getConstantValue(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue#getValueInstance Value Instance}'. - * - * - * @return the meta object for the containment reference 'Value Instance'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue#getValueInstance() - * @see #getConstantValue() - * @generated - */ - EReference getConstantValue_ValueInstance(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue Dynamic Value}'. - * - * - * @return the meta object for class 'Dynamic Value'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue - * @generated - */ - EClass getDynamicValue(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue Query Execution Value}'. - * - * - * @return the meta object for class 'Query Execution Value'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue - * @generated - */ - EClass getQueryExecutionValue(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ApplyStereotypeAdviceConfigurationFactory getApplyStereotypeAdviceConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationImpl Apply Stereotype Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getApplyStereotypeAdviceConfiguration() - * @generated - */ - EClass APPLY_STEREOTYPE_ADVICE_CONFIGURATION = eINSTANCE.getApplyStereotypeAdviceConfiguration(); - - /** - * The meta object literal for the 'Stereotypes To Apply' containment reference list feature. - * - * - * @generated - */ - EReference APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY = eINSTANCE.getApplyStereotypeAdviceConfiguration_StereotypesToApply(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl Stereotype To Apply}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getStereotypeToApply() - * @generated - */ - EClass STEREOTYPE_TO_APPLY = eINSTANCE.getStereotypeToApply(); - - /** - * The meta object literal for the 'Stereotype Qualified Name' attribute feature. - * - * - * @generated - */ - EAttribute STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME = eINSTANCE.getStereotypeToApply_StereotypeQualifiedName(); - - /** - * The meta object literal for the 'Update Name' attribute feature. - * - * - * @generated - */ - EAttribute STEREOTYPE_TO_APPLY__UPDATE_NAME = eINSTANCE.getStereotypeToApply_UpdateName(); - - /** - * The meta object literal for the 'Required Profiles' attribute list feature. - * - * - * @generated - */ - EAttribute STEREOTYPE_TO_APPLY__REQUIRED_PROFILES = eINSTANCE.getStereotypeToApply_RequiredProfiles(); - - /** - * The meta object literal for the 'Features To Set' containment reference list feature. - * - * - * @generated - */ - EReference STEREOTYPE_TO_APPLY__FEATURES_TO_SET = eINSTANCE.getStereotypeToApply_FeaturesToSet(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureToSetImpl Feature To Set}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureToSetImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getFeatureToSet() - * @generated - */ - EClass FEATURE_TO_SET = eINSTANCE.getFeatureToSet(); - - /** - * The meta object literal for the 'Feature Name' attribute feature. - * - * - * @generated - */ - EAttribute FEATURE_TO_SET__FEATURE_NAME = eINSTANCE.getFeatureToSet_FeatureName(); - - /** - * The meta object literal for the 'Value' containment reference feature. - * - * - * @generated - */ - EReference FEATURE_TO_SET__VALUE = eINSTANCE.getFeatureToSet_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureValueImpl Feature Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getFeatureValue() - * @generated - */ - EClass FEATURE_VALUE = eINSTANCE.getFeatureValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ListValueImpl List Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ListValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getListValue() - * @generated - */ - EClass LIST_VALUE = eINSTANCE.getListValue(); - - /** - * The meta object literal for the 'Values' containment reference list feature. - * - * - * @generated - */ - EReference LIST_VALUE__VALUES = eINSTANCE.getListValue_Values(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ConstantValueImpl Constant Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ConstantValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getConstantValue() - * @generated - */ - EClass CONSTANT_VALUE = eINSTANCE.getConstantValue(); - - /** - * The meta object literal for the 'Value Instance' containment reference feature. - * - * - * @generated - */ - EReference CONSTANT_VALUE__VALUE_INSTANCE = eINSTANCE.getConstantValue_ValueInstance(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.DynamicValueImpl Dynamic Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.DynamicValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getDynamicValue() - * @generated - */ - EClass DYNAMIC_VALUE = eINSTANCE.getDynamicValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.QueryExecutionValueImpl Query Execution Value}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.QueryExecutionValueImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationPackageImpl#getQueryExecutionValue() - * @generated - */ - EClass QUERY_EXECUTION_VALUE = eINSTANCE.getQueryExecutionValue(); - - } - -} //ApplyStereotypeAdviceConfigurationPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ConstantValue.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ConstantValue.java deleted file mode 100644 index a748f6c6294..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ConstantValue.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * - * A representation of the model object 'Constant Value'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue#getValueInstance Value Instance}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getConstantValue() - * @model - * @generated - */ -public interface ConstantValue extends FeatureValue { - /** - * Returns the value of the 'Value Instance' containment reference. - * - *

- * If the meaning of the 'Value Instance' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value Instance' containment reference. - * @see #setValueInstance(ValueSpecification) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getConstantValue_ValueInstance() - * @model containment="true" - * @generated - */ - ValueSpecification getValueInstance(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue#getValueInstance Value Instance}' containment reference. - * - * - * @param value the new value of the 'Value Instance' containment reference. - * @see #getValueInstance() - * @generated - */ - void setValueInstance(ValueSpecification value); - -} // ConstantValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/DynamicValue.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/DynamicValue.java deleted file mode 100644 index 1c4562f0a5e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/DynamicValue.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - - -/** - * - * A representation of the model object 'Dynamic Value'. - * - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getDynamicValue() - * @model abstract="true" - * @generated - */ -public interface DynamicValue extends FeatureValue { -} // DynamicValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureToSet.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureToSet.java deleted file mode 100644 index 297392d5cb0..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureToSet.java +++ /dev/null @@ -1,87 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature To Set'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getFeatureName Feature Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getFeatureToSet() - * @model - * @generated - */ -public interface FeatureToSet extends EObject { - /** - * Returns the value of the 'Feature Name' attribute. - * - *

- * If the meaning of the 'Feature Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Feature Name' attribute. - * @see #setFeatureName(String) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getFeatureToSet_FeatureName() - * @model required="true" - * @generated - */ - String getFeatureName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getFeatureName Feature Name}' attribute. - * - * - * @param value the new value of the 'Feature Name' attribute. - * @see #getFeatureName() - * @generated - */ - void setFeatureName(String value); - - /** - * Returns the value of the 'Value' containment reference. - * - *

- * If the meaning of the 'Value' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Value' containment reference. - * @see #setValue(FeatureValue) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getFeatureToSet_Value() - * @model containment="true" required="true" - * @generated - */ - FeatureValue getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet#getValue Value}' containment reference. - * - * - * @param value the new value of the 'Value' containment reference. - * @see #getValue() - * @generated - */ - void setValue(FeatureValue value); - -} // FeatureToSet diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureValue.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureValue.java deleted file mode 100644 index 9a26a62b750..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/FeatureValue.java +++ /dev/null @@ -1,28 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature Value'. - * - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getFeatureValue() - * @model abstract="true" - * @generated - */ -public interface FeatureValue extends EObject { -} // FeatureValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ListValue.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ListValue.java deleted file mode 100644 index bfc5d114d32..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ListValue.java +++ /dev/null @@ -1,50 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'List Value'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue#getValues Values}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getListValue() - * @model - * @generated - */ -public interface ListValue extends FeatureValue { - /** - * Returns the value of the 'Values' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue}. - * - *

- * If the meaning of the 'Values' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Values' containment reference list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getListValue_Values() - * @model containment="true" - * @generated - */ - EList getValues(); - -} // ListValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/QueryExecutionValue.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/QueryExecutionValue.java deleted file mode 100644 index 2408f9d7f90..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/QueryExecutionValue.java +++ /dev/null @@ -1,27 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - - -/** - * - * A representation of the model object 'Query Execution Value'. - * - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getQueryExecutionValue() - * @model - * @generated - */ -public interface QueryExecutionValue extends DynamicValue { -} // QueryExecutionValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeToApply.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeToApply.java deleted file mode 100644 index e1d2575626e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeToApply.java +++ /dev/null @@ -1,123 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Stereotype To Apply'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getStereotypeQualifiedName Stereotype Qualified Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#isUpdateName Update Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getRequiredProfiles Required Profiles}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getFeaturesToSet Features To Set}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getStereotypeToApply() - * @model - * @generated - */ -public interface StereotypeToApply extends EObject { - /** - * Returns the value of the 'Stereotype Qualified Name' attribute. - * - *

- * If the meaning of the 'Stereotype Qualified Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Stereotype Qualified Name' attribute. - * @see #setStereotypeQualifiedName(String) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getStereotypeToApply_StereotypeQualifiedName() - * @model - * @generated - */ - String getStereotypeQualifiedName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#getStereotypeQualifiedName Stereotype Qualified Name}' attribute. - * - * - * @param value the new value of the 'Stereotype Qualified Name' attribute. - * @see #getStereotypeQualifiedName() - * @generated - */ - void setStereotypeQualifiedName(String value); - - /** - * Returns the value of the 'Update Name' attribute. - * - *

- * If the meaning of the 'Update Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Update Name' attribute. - * @see #setUpdateName(boolean) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getStereotypeToApply_UpdateName() - * @model - * @generated - */ - boolean isUpdateName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply#isUpdateName Update Name}' attribute. - * - * - * @param value the new value of the 'Update Name' attribute. - * @see #isUpdateName() - * @generated - */ - void setUpdateName(boolean value); - - /** - * Returns the value of the 'Required Profiles' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'Required Profiles' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Required Profiles' attribute list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getStereotypeToApply_RequiredProfiles() - * @model required="true" - * @generated - */ - EList getRequiredProfiles(); - - /** - * Returns the value of the 'Features To Set' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet}. - * - *

- * If the meaning of the 'Features To Set' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Features To Set' containment reference list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#getStereotypeToApply_FeaturesToSet() - * @model containment="true" - * @generated - */ - EList getFeaturesToSet(); - -} // StereotypeToApply diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationFactoryImpl.java deleted file mode 100644 index 174755c41e6..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationFactoryImpl.java +++ /dev/null @@ -1,160 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class ApplyStereotypeAdviceConfigurationFactoryImpl extends EFactoryImpl implements ApplyStereotypeAdviceConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ApplyStereotypeAdviceConfigurationFactory init() { - try { - ApplyStereotypeAdviceConfigurationFactory theApplyStereotypeAdviceConfigurationFactory = (ApplyStereotypeAdviceConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(ApplyStereotypeAdviceConfigurationPackage.eNS_URI); - if (theApplyStereotypeAdviceConfigurationFactory != null) { - return theApplyStereotypeAdviceConfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ApplyStereotypeAdviceConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION: return createApplyStereotypeAdviceConfiguration(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY: return createStereotypeToApply(); - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET: return createFeatureToSet(); - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE: return createListValue(); - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE: return createConstantValue(); - case ApplyStereotypeAdviceConfigurationPackage.QUERY_EXECUTION_VALUE: return createQueryExecutionValue(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public ApplyStereotypeAdviceConfiguration createApplyStereotypeAdviceConfiguration() { - ApplyStereotypeAdviceConfigurationImpl applyStereotypeAdviceConfiguration = new ApplyStereotypeAdviceConfigurationImpl(); - return applyStereotypeAdviceConfiguration; - } - - /** - * - * - * @generated - */ - public StereotypeToApply createStereotypeToApply() { - StereotypeToApplyImpl stereotypeToApply = new StereotypeToApplyImpl(); - return stereotypeToApply; - } - - /** - * - * - * @generated - */ - public FeatureToSet createFeatureToSet() { - FeatureToSetImpl featureToSet = new FeatureToSetImpl(); - return featureToSet; - } - - /** - * - * - * @generated - */ - public ListValue createListValue() { - ListValueImpl listValue = new ListValueImpl(); - return listValue; - } - - /** - * - * - * @generated - */ - public ConstantValue createConstantValue() { - ConstantValueImpl constantValue = new ConstantValueImpl(); - return constantValue; - } - - /** - * - * - * @generated - */ - public QueryExecutionValue createQueryExecutionValue() { - QueryExecutionValueImpl queryExecutionValue = new QueryExecutionValueImpl(); - return queryExecutionValue; - } - - /** - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationPackage getApplyStereotypeAdviceConfigurationPackage() { - return (ApplyStereotypeAdviceConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ApplyStereotypeAdviceConfigurationPackage getPackage() { - return ApplyStereotypeAdviceConfigurationPackage.eINSTANCE; - } - -} //ApplyStereotypeAdviceConfigurationFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationImpl.java deleted file mode 100644 index 405e057a714..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationImpl.java +++ /dev/null @@ -1,162 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply; - -/** - * - * An implementation of the model object 'Apply Stereotype Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ApplyStereotypeAdviceConfigurationImpl#getStereotypesToApply Stereotypes To Apply}
  • - *
- * - * @generated - */ -public class ApplyStereotypeAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements ApplyStereotypeAdviceConfiguration { - /** - * The cached value of the '{@link #getStereotypesToApply() Stereotypes To Apply}' containment reference list. - * - * - * @see #getStereotypesToApply() - * @generated - * @ordered - */ - protected EList stereotypesToApply; - - /** - * - * - * @generated - */ - protected ApplyStereotypeAdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.APPLY_STEREOTYPE_ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getStereotypesToApply() { - if (stereotypesToApply == null) { - stereotypesToApply = new EObjectContainmentEList(StereotypeToApply.class, this, ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY); - } - return stereotypesToApply; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: - return ((InternalEList)getStereotypesToApply()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: - return getStereotypesToApply(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: - getStereotypesToApply().clear(); - getStereotypesToApply().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: - getStereotypesToApply().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: - return stereotypesToApply != null && !stereotypesToApply.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ApplyStereotypeAdviceConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationPackageImpl.java deleted file mode 100644 index 32a8c3101ad..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ApplyStereotypeAdviceConfigurationPackageImpl.java +++ /dev/null @@ -1,442 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply; - -import org.eclipse.uml2.uml.UMLPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class ApplyStereotypeAdviceConfigurationPackageImpl extends EPackageImpl implements ApplyStereotypeAdviceConfigurationPackage { - /** - * - * - * @generated - */ - private EClass applyStereotypeAdviceConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass stereotypeToApplyEClass = null; - - /** - * - * - * @generated - */ - private EClass featureToSetEClass = null; - - /** - * - * - * @generated - */ - private EClass featureValueEClass = null; - - /** - * - * - * @generated - */ - private EClass listValueEClass = null; - - /** - * - * - * @generated - */ - private EClass constantValueEClass = null; - - /** - * - * - * @generated - */ - private EClass dynamicValueEClass = null; - - /** - * - * - * @generated - */ - private EClass queryExecutionValueEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private ApplyStereotypeAdviceConfigurationPackageImpl() { - super(eNS_URI, ApplyStereotypeAdviceConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link ApplyStereotypeAdviceConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ApplyStereotypeAdviceConfigurationPackage init() { - if (isInited) return (ApplyStereotypeAdviceConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplyStereotypeAdviceConfigurationPackage.eNS_URI); - - // Obtain or create and register package - ApplyStereotypeAdviceConfigurationPackageImpl theApplyStereotypeAdviceConfigurationPackage = (ApplyStereotypeAdviceConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ApplyStereotypeAdviceConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplyStereotypeAdviceConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - ElementtypesconfigurationsPackage.eINSTANCE.eClass(); - UMLPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theApplyStereotypeAdviceConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theApplyStereotypeAdviceConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theApplyStereotypeAdviceConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ApplyStereotypeAdviceConfigurationPackage.eNS_URI, theApplyStereotypeAdviceConfigurationPackage); - return theApplyStereotypeAdviceConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getApplyStereotypeAdviceConfiguration() { - return applyStereotypeAdviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EReference getApplyStereotypeAdviceConfiguration_StereotypesToApply() { - return (EReference)applyStereotypeAdviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getStereotypeToApply() { - return stereotypeToApplyEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getStereotypeToApply_StereotypeQualifiedName() { - return (EAttribute)stereotypeToApplyEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getStereotypeToApply_UpdateName() { - return (EAttribute)stereotypeToApplyEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getStereotypeToApply_RequiredProfiles() { - return (EAttribute)stereotypeToApplyEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getStereotypeToApply_FeaturesToSet() { - return (EReference)stereotypeToApplyEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EClass getFeatureToSet() { - return featureToSetEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getFeatureToSet_FeatureName() { - return (EAttribute)featureToSetEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getFeatureToSet_Value() { - return (EReference)featureToSetEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getFeatureValue() { - return featureValueEClass; - } - - /** - * - * - * @generated - */ - public EClass getListValue() { - return listValueEClass; - } - - /** - * - * - * @generated - */ - public EReference getListValue_Values() { - return (EReference)listValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getConstantValue() { - return constantValueEClass; - } - - /** - * - * - * @generated - */ - public EReference getConstantValue_ValueInstance() { - return (EReference)constantValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getDynamicValue() { - return dynamicValueEClass; - } - - /** - * - * - * @generated - */ - public EClass getQueryExecutionValue() { - return queryExecutionValueEClass; - } - - /** - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationFactory getApplyStereotypeAdviceConfigurationFactory() { - return (ApplyStereotypeAdviceConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - applyStereotypeAdviceConfigurationEClass = createEClass(APPLY_STEREOTYPE_ADVICE_CONFIGURATION); - createEReference(applyStereotypeAdviceConfigurationEClass, APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY); - - stereotypeToApplyEClass = createEClass(STEREOTYPE_TO_APPLY); - createEAttribute(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME); - createEAttribute(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__UPDATE_NAME); - createEAttribute(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__REQUIRED_PROFILES); - createEReference(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__FEATURES_TO_SET); - - featureToSetEClass = createEClass(FEATURE_TO_SET); - createEAttribute(featureToSetEClass, FEATURE_TO_SET__FEATURE_NAME); - createEReference(featureToSetEClass, FEATURE_TO_SET__VALUE); - - featureValueEClass = createEClass(FEATURE_VALUE); - - listValueEClass = createEClass(LIST_VALUE); - createEReference(listValueEClass, LIST_VALUE__VALUES); - - constantValueEClass = createEClass(CONSTANT_VALUE); - createEReference(constantValueEClass, CONSTANT_VALUE__VALUE_INSTANCE); - - dynamicValueEClass = createEClass(DYNAMIC_VALUE); - - queryExecutionValueEClass = createEClass(QUERY_EXECUTION_VALUE); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ElementtypesconfigurationsPackage theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - applyStereotypeAdviceConfigurationEClass.getESuperTypes().add(theElementtypesconfigurationsPackage.getAbstractAdviceBindingConfiguration()); - listValueEClass.getESuperTypes().add(this.getFeatureValue()); - constantValueEClass.getESuperTypes().add(this.getFeatureValue()); - dynamicValueEClass.getESuperTypes().add(this.getFeatureValue()); - queryExecutionValueEClass.getESuperTypes().add(this.getDynamicValue()); - - // Initialize classes and features; add operations and parameters - initEClass(applyStereotypeAdviceConfigurationEClass, ApplyStereotypeAdviceConfiguration.class, "ApplyStereotypeAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getApplyStereotypeAdviceConfiguration_StereotypesToApply(), this.getStereotypeToApply(), null, "stereotypesToApply", null, 0, -1, ApplyStereotypeAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stereotypeToApplyEClass, StereotypeToApply.class, "StereotypeToApply", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStereotypeToApply_StereotypeQualifiedName(), ecorePackage.getEString(), "stereotypeQualifiedName", null, 0, 1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStereotypeToApply_UpdateName(), ecorePackage.getEBoolean(), "updateName", null, 0, 1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStereotypeToApply_RequiredProfiles(), theEcorePackage.getEString(), "requiredProfiles", null, 1, -1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getStereotypeToApply_FeaturesToSet(), this.getFeatureToSet(), null, "featuresToSet", null, 0, -1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureToSetEClass, FeatureToSet.class, "FeatureToSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFeatureToSet_FeatureName(), ecorePackage.getEString(), "featureName", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFeatureToSet_Value(), this.getFeatureValue(), null, "value", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureValueEClass, FeatureValue.class, "FeatureValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(listValueEClass, ListValue.class, "ListValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getListValue_Values(), this.getFeatureValue(), null, "values", null, 0, -1, ListValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(constantValueEClass, ConstantValue.class, "ConstantValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getConstantValue_ValueInstance(), theUMLPackage.getValueSpecification(), null, "valueInstance", null, 0, 1, ConstantValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(dynamicValueEClass, DynamicValue.class, "DynamicValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(queryExecutionValueEClass, QueryExecutionValue.class, "QueryExecutionValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //ApplyStereotypeAdviceConfigurationPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ConstantValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ConstantValueImpl.java deleted file mode 100644 index 318f6e6be64..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ConstantValueImpl.java +++ /dev/null @@ -1,186 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue; - -import org.eclipse.uml2.uml.ValueSpecification; - -/** - * - * An implementation of the model object 'Constant Value'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ConstantValueImpl#getValueInstance Value Instance}
  • - *
- * - * @generated - */ -public class ConstantValueImpl extends FeatureValueImpl implements ConstantValue { - /** - * The cached value of the '{@link #getValueInstance() Value Instance}' containment reference. - * - * - * @see #getValueInstance() - * @generated - * @ordered - */ - protected ValueSpecification valueInstance; - - /** - * - * - * @generated - */ - protected ConstantValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE; - } - - /** - * - * - * @generated - */ - public ValueSpecification getValueInstance() { - return valueInstance; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValueInstance(ValueSpecification newValueInstance, NotificationChain msgs) { - ValueSpecification oldValueInstance = valueInstance; - valueInstance = newValueInstance; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, oldValueInstance, newValueInstance); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setValueInstance(ValueSpecification newValueInstance) { - if (newValueInstance != valueInstance) { - NotificationChain msgs = null; - if (valueInstance != null) - msgs = ((InternalEObject)valueInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); - if (newValueInstance != null) - msgs = ((InternalEObject)newValueInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); - msgs = basicSetValueInstance(newValueInstance, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE, newValueInstance, newValueInstance)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - return basicSetValueInstance(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - return getValueInstance(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - setValueInstance((ValueSpecification)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - setValueInstance((ValueSpecification)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - return valueInstance != null; - } - return super.eIsSet(featureID); - } - -} //ConstantValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/DynamicValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/DynamicValueImpl.java deleted file mode 100644 index 4f1696fb378..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/DynamicValueImpl.java +++ /dev/null @@ -1,47 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue; - -/** - * - * An implementation of the model object 'Dynamic Value'. - * - * - * @generated - */ -public abstract class DynamicValueImpl extends FeatureValueImpl implements DynamicValue { - /** - * - * - * @generated - */ - protected DynamicValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.DYNAMIC_VALUE; - } - -} //DynamicValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureToSetImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureToSetImpl.java deleted file mode 100644 index 002a9326aca..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureToSetImpl.java +++ /dev/null @@ -1,254 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue; - -/** - * - * An implementation of the model object 'Feature To Set'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureToSetImpl#getFeatureName Feature Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.FeatureToSetImpl#getValue Value}
  • - *
- * - * @generated - */ -public class FeatureToSetImpl extends EObjectImpl implements FeatureToSet { - /** - * The default value of the '{@link #getFeatureName() Feature Name}' attribute. - * - * - * @see #getFeatureName() - * @generated - * @ordered - */ - protected static final String FEATURE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFeatureName() Feature Name}' attribute. - * - * - * @see #getFeatureName() - * @generated - * @ordered - */ - protected String featureName = FEATURE_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getValue() Value}' containment reference. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected FeatureValue value; - - /** - * - * - * @generated - */ - protected FeatureToSetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_TO_SET; - } - - /** - * - * - * @generated - */ - public String getFeatureName() { - return featureName; - } - - /** - * - * - * @generated - */ - public void setFeatureName(String newFeatureName) { - String oldFeatureName = featureName; - featureName = newFeatureName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME, oldFeatureName, featureName)); - } - - /** - * - * - * @generated - */ - public FeatureValue getValue() { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValue(FeatureValue newValue, NotificationChain msgs) { - FeatureValue oldValue = value; - value = newValue; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, oldValue, newValue); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setValue(FeatureValue newValue) { - if (newValue != value) { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, null, msgs); - msgs = basicSetValue(newValue, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE, newValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - return basicSetValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - return getFeatureName(); - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - setFeatureName((String)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - setValue((FeatureValue)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - setFeatureName(FEATURE_NAME_EDEFAULT); - return; - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - setValue((FeatureValue)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - return FEATURE_NAME_EDEFAULT == null ? featureName != null : !FEATURE_NAME_EDEFAULT.equals(featureName); - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (featureName: "); - result.append(featureName); - result.append(')'); - return result.toString(); - } - -} //FeatureToSetImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureValueImpl.java deleted file mode 100644 index 2f72d8b7c46..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/FeatureValueImpl.java +++ /dev/null @@ -1,49 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue; - -/** - * - * An implementation of the model object 'Feature Value'. - * - * - * @generated - */ -public abstract class FeatureValueImpl extends EObjectImpl implements FeatureValue { - /** - * - * - * @generated - */ - protected FeatureValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_VALUE; - } - -} //FeatureValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ListValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ListValueImpl.java deleted file mode 100644 index 12b75988ea4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/ListValueImpl.java +++ /dev/null @@ -1,160 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue; - -/** - * - * An implementation of the model object 'List Value'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.ListValueImpl#getValues Values}
  • - *
- * - * @generated - */ -public class ListValueImpl extends FeatureValueImpl implements ListValue { - /** - * The cached value of the '{@link #getValues() Values}' containment reference list. - * - * - * @see #getValues() - * @generated - * @ordered - */ - protected EList values; - - /** - * - * - * @generated - */ - protected ListValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.LIST_VALUE; - } - - /** - * - * - * @generated - */ - public EList getValues() { - if (values == null) { - values = new EObjectContainmentEList(FeatureValue.class, this, ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE__VALUES); - } - return values; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE__VALUES: - return ((InternalEList)getValues()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE__VALUES: - return getValues(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE__VALUES: - getValues().clear(); - getValues().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE__VALUES: - getValues().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE__VALUES: - return values != null && !values.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ListValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/QueryExecutionValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/QueryExecutionValueImpl.java deleted file mode 100644 index 78a0acaa510..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/QueryExecutionValueImpl.java +++ /dev/null @@ -1,47 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue; - -/** - * - * An implementation of the model object 'Query Execution Value'. - * - * - * @generated - */ -public class QueryExecutionValueImpl extends DynamicValueImpl implements QueryExecutionValue { - /** - * - * - * @generated - */ - protected QueryExecutionValueImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.QUERY_EXECUTION_VALUE; - } - -} //QueryExecutionValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java deleted file mode 100644 index 36c3d0c47b9..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java +++ /dev/null @@ -1,323 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply; - -/** - * - * An implementation of the model object 'Stereotype To Apply'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#getStereotypeQualifiedName Stereotype Qualified Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#isUpdateName Update Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#getRequiredProfiles Required Profiles}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#getFeaturesToSet Features To Set}
  • - *
- * - * @generated - */ -public class StereotypeToApplyImpl extends EObjectImpl implements StereotypeToApply { - /** - * The default value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. - * - * - * @see #getStereotypeQualifiedName() - * @generated - * @ordered - */ - protected static final String STEREOTYPE_QUALIFIED_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. - * - * - * @see #getStereotypeQualifiedName() - * @generated - * @ordered - */ - protected String stereotypeQualifiedName = STEREOTYPE_QUALIFIED_NAME_EDEFAULT; - - /** - * The default value of the '{@link #isUpdateName() Update Name}' attribute. - * - * - * @see #isUpdateName() - * @generated - * @ordered - */ - protected static final boolean UPDATE_NAME_EDEFAULT = false; - - /** - * The cached value of the '{@link #isUpdateName() Update Name}' attribute. - * - * - * @see #isUpdateName() - * @generated - * @ordered - */ - protected boolean updateName = UPDATE_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getRequiredProfiles() Required Profiles}' attribute list. - * - * - * @see #getRequiredProfiles() - * @generated - * @ordered - */ - protected EList requiredProfiles; - - /** - * The cached value of the '{@link #getFeaturesToSet() Features To Set}' containment reference list. - * - * - * @see #getFeaturesToSet() - * @generated - * @ordered - */ - protected EList featuresToSet; - - /** - * - * - * @generated - */ - protected StereotypeToApplyImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY; - } - - /** - * - * - * @generated - */ - public String getStereotypeQualifiedName() { - return stereotypeQualifiedName; - } - - /** - * - * - * @generated - */ - public void setStereotypeQualifiedName(String newStereotypeQualifiedName) { - String oldStereotypeQualifiedName = stereotypeQualifiedName; - stereotypeQualifiedName = newStereotypeQualifiedName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME, oldStereotypeQualifiedName, stereotypeQualifiedName)); - } - - /** - * - * - * @generated - */ - public boolean isUpdateName() { - return updateName; - } - - /** - * - * - * @generated - */ - public void setUpdateName(boolean newUpdateName) { - boolean oldUpdateName = updateName; - updateName = newUpdateName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME, oldUpdateName, updateName)); - } - - /** - * - * - * @generated - */ - public EList getRequiredProfiles() { - if (requiredProfiles == null) { - requiredProfiles = new EDataTypeUniqueEList(String.class, this, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES); - } - return requiredProfiles; - } - - /** - * - * - * @generated - */ - public EList getFeaturesToSet() { - if (featuresToSet == null) { - featuresToSet = new EObjectContainmentEList(FeatureToSet.class, this, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET); - } - return featuresToSet; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - return ((InternalEList)getFeaturesToSet()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - return getStereotypeQualifiedName(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - return isUpdateName(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - return getRequiredProfiles(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - return getFeaturesToSet(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - setStereotypeQualifiedName((String)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - setUpdateName((Boolean)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - getRequiredProfiles().clear(); - getRequiredProfiles().addAll((Collection)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - getFeaturesToSet().clear(); - getFeaturesToSet().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - setStereotypeQualifiedName(STEREOTYPE_QUALIFIED_NAME_EDEFAULT); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - setUpdateName(UPDATE_NAME_EDEFAULT); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - getRequiredProfiles().clear(); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - getFeaturesToSet().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - return STEREOTYPE_QUALIFIED_NAME_EDEFAULT == null ? stereotypeQualifiedName != null : !STEREOTYPE_QUALIFIED_NAME_EDEFAULT.equals(stereotypeQualifiedName); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - return updateName != UPDATE_NAME_EDEFAULT; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - return requiredProfiles != null && !requiredProfiles.isEmpty(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - return featuresToSet != null && !featuresToSet.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (stereotypeQualifiedName: "); - result.append(stereotypeQualifiedName); - result.append(", updateName: "); - result.append(updateName); - result.append(", requiredProfiles: "); - result.append(requiredProfiles); - result.append(')'); - return result.toString(); - } - -} //StereotypeToApplyImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationEditPlugin.java deleted file mode 100644 index 4d73df956f8..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationEditPlugin.java +++ /dev/null @@ -1,108 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -import org.eclipse.uml2.uml.edit.UMLEditPlugin; - -/** - * This is the central singleton for the ApplyStereotypeAdviceConfiguration edit plugin. - * - * - * @generated - */ -public final class ApplyStereotypeAdviceConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final ApplyStereotypeAdviceConfigurationEditPlugin INSTANCE = new ApplyStereotypeAdviceConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationEditPlugin() { - super - (new ResourceLocator [] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - UMLEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProvider.java deleted file mode 100644 index e90c123c3e4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProvider.java +++ /dev/null @@ -1,170 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.AbstractAdviceBindingConfigurationItemProvider; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration} object. - * - * - * @generated - */ -public class ApplyStereotypeAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ApplyStereotypeAdviceConfigurationPackage.Literals.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ApplyStereotypeAdviceConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ApplyStereotypeAdviceConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ApplyStereotypeAdviceConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_ApplyStereotypeAdviceConfiguration_type") : - getString("_UI_ApplyStereotypeAdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ApplyStereotypeAdviceConfiguration.class)) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY, - ApplyStereotypeAdviceConfigurationFactory.eINSTANCE.createStereotypeToApply())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ApplyStereotypeAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index bd2dc9e41a9..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ApplyStereotypeAdviceConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,433 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsSwitch; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util.ApplyStereotypeAdviceConfigurationAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class ApplyStereotypeAdviceConfigurationItemProviderAdapterFactory extends ApplyStereotypeAdviceConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration} instances. - * - * - * @generated - */ - protected ApplyStereotypeAdviceConfigurationItemProvider applyStereotypeAdviceConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createApplyStereotypeAdviceConfigurationAdapter() { - if (applyStereotypeAdviceConfigurationItemProvider == null) { - applyStereotypeAdviceConfigurationItemProvider = new ApplyStereotypeAdviceConfigurationItemProvider(this); - } - - return applyStereotypeAdviceConfigurationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply} instances. - * - * - * @generated - */ - protected StereotypeToApplyItemProvider stereotypeToApplyItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply}. - * - * - * @generated - */ - @Override - public Adapter createStereotypeToApplyAdapter() { - if (stereotypeToApplyItemProvider == null) { - stereotypeToApplyItemProvider = new StereotypeToApplyItemProvider(this); - } - - return stereotypeToApplyItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet} instances. - * - * - * @generated - */ - protected FeatureToSetItemProvider featureToSetItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet}. - * - * - * @generated - */ - @Override - public Adapter createFeatureToSetAdapter() { - if (featureToSetItemProvider == null) { - featureToSetItemProvider = new FeatureToSetItemProvider(this); - } - - return featureToSetItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue} instances. - * - * - * @generated - */ - protected ListValueItemProvider listValueItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue}. - * - * - * @generated - */ - @Override - public Adapter createListValueAdapter() { - if (listValueItemProvider == null) { - listValueItemProvider = new ListValueItemProvider(this); - } - - return listValueItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue} instances. - * - * - * @generated - */ - protected ConstantValueItemProvider constantValueItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue}. - * - * - * @generated - */ - @Override - public Adapter createConstantValueAdapter() { - if (constantValueItemProvider == null) { - constantValueItemProvider = new ConstantValueItemProvider(this); - } - - return constantValueItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue} instances. - * - * - * @generated - */ - protected QueryExecutionValueItemProvider queryExecutionValueItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue}. - * - * - * @generated - */ - @Override - public Adapter createQueryExecutionValueAdapter() { - if (queryExecutionValueItemProvider == null) { - queryExecutionValueItemProvider = new QueryExecutionValueItemProvider(this); - } - - return queryExecutionValueItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (applyStereotypeAdviceConfigurationItemProvider != null) applyStereotypeAdviceConfigurationItemProvider.dispose(); - if (stereotypeToApplyItemProvider != null) stereotypeToApplyItemProvider.dispose(); - if (featureToSetItemProvider != null) featureToSetItemProvider.dispose(); - if (listValueItemProvider != null) listValueItemProvider.dispose(); - if (constantValueItemProvider != null) constantValueItemProvider.dispose(); - if (queryExecutionValueItemProvider != null) queryExecutionValueItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link ElementtypesconfigurationsPackage}. - * - * - * @generated - */ - public static class ElementtypesconfigurationsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends ElementtypesconfigurationsSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, - ApplyStereotypeAdviceConfigurationFactory.eINSTANCE.createApplyStereotypeAdviceConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return ApplyStereotypeAdviceConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ConstantValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ConstantValueItemProvider.java deleted file mode 100644 index 3ff0b320a52..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ConstantValueItemProvider.java +++ /dev/null @@ -1,223 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue; - -import org.eclipse.uml2.uml.UMLFactory; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue} object. - * - * - * @generated - */ -public class ConstantValueItemProvider extends FeatureValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ConstantValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ConstantValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ConstantValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ConstantValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ConstantValue.class)) { - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE__VALUE_INSTANCE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createOpaqueExpression())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createExpression())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createStringExpression())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createInstanceValue())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createTimeExpression())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createDuration())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createInterval())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createDurationInterval())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralBoolean())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralInteger())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralNull())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralReal())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralString())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createLiteralUnlimitedNatural())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, - UMLFactory.eINSTANCE.createTimeInterval())); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/DynamicValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/DynamicValueItemProvider.java deleted file mode 100644 index ef091c995b4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/DynamicValueItemProvider.java +++ /dev/null @@ -1,93 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue} object. - * - * - * @generated - */ -public class DynamicValueItemProvider extends FeatureValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public DynamicValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_DynamicValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureToSetItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureToSetItemProvider.java deleted file mode 100644 index 8c524f91e55..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureToSetItemProvider.java +++ /dev/null @@ -1,219 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet} object. - * - * - * @generated - */ -public class FeatureToSetItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public FeatureToSetItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addFeatureNamePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Feature Name feature. - * - * - * @generated - */ - protected void addFeatureNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FeatureToSet_featureName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FeatureToSet_featureName_feature", "_UI_FeatureToSet_type"), - ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_TO_SET__FEATURE_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns FeatureToSet.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureToSet")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((FeatureToSet)object).getFeatureName(); - return label == null || label.length() == 0 ? - getString("_UI_FeatureToSet_type") : - getString("_UI_FeatureToSet_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(FeatureToSet.class)) { - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET__VALUE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, - ApplyStereotypeAdviceConfigurationFactory.eINSTANCE.createListValue())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, - ApplyStereotypeAdviceConfigurationFactory.eINSTANCE.createConstantValue())); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, - ApplyStereotypeAdviceConfigurationFactory.eINSTANCE.createQueryExecutionValue())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ApplyStereotypeAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureValueItemProvider.java deleted file mode 100644 index 9dc77ee51ee..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/FeatureValueItemProvider.java +++ /dev/null @@ -1,119 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue} object. - * - * - * @generated - */ -public class FeatureValueItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public FeatureValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_FeatureValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ApplyStereotypeAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ListValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ListValueItemProvider.java deleted file mode 100644 index 9216e8e80c3..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/ListValueItemProvider.java +++ /dev/null @@ -1,130 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue} object. - * - * - * @generated - */ -public class ListValueItemProvider extends FeatureValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ListValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addValuesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Values feature. - * - * - * @generated - */ - protected void addValuesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ListValue_values_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ListValue_values_feature", "_UI_ListValue_type"), - ApplyStereotypeAdviceConfigurationPackage.Literals.LIST_VALUE__VALUES, - true, - false, - true, - null, - null, - null)); - } - - /** - * This returns ListValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ListValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ListValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/QueryExecutionValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/QueryExecutionValueItemProvider.java deleted file mode 100644 index 82fe5821b2b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/QueryExecutionValueItemProvider.java +++ /dev/null @@ -1,104 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue} object. - * - * - * @generated - */ -public class QueryExecutionValueItemProvider extends DynamicValueItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public QueryExecutionValueItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns QueryExecutionValue.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/QueryExecutionValue")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_QueryExecutionValue_type"); - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/StereotypeToApplyItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/StereotypeToApplyItemProvider.java deleted file mode 100644 index 375cb4a7f8c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/provider/StereotypeToApplyItemProvider.java +++ /dev/null @@ -1,257 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply} object. - * - * - * @generated - */ -public class StereotypeToApplyItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public StereotypeToApplyItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addStereotypeQualifiedNamePropertyDescriptor(object); - addUpdateNamePropertyDescriptor(object); - addRequiredProfilesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Stereotype Qualified Name feature. - * - * - * @generated - */ - protected void addStereotypeQualifiedNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StereotypeToApply_stereotypeQualifiedName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_StereotypeToApply_stereotypeQualifiedName_feature", "_UI_StereotypeToApply_type"), - ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Update Name feature. - * - * - * @generated - */ - protected void addUpdateNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StereotypeToApply_updateName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_StereotypeToApply_updateName_feature", "_UI_StereotypeToApply_type"), - ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY__UPDATE_NAME, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Required Profiles feature. - * - * - * @generated - */ - protected void addRequiredProfilesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StereotypeToApply_requiredProfiles_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_StereotypeToApply_requiredProfiles_feature", "_UI_StereotypeToApply_type"), - ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY__FEATURES_TO_SET); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns StereotypeToApply.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/StereotypeToApply")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((StereotypeToApply)object).getStereotypeQualifiedName(); - return label == null || label.length() == 0 ? - getString("_UI_StereotypeToApply_type") : - getString("_UI_StereotypeToApply_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(StereotypeToApply.class)) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY__FEATURES_TO_SET, - ApplyStereotypeAdviceConfigurationFactory.eINSTANCE.createFeatureToSet())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ApplyStereotypeAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationAdapterFactory.java deleted file mode 100644 index 01046bac0e6..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationAdapterFactory.java +++ /dev/null @@ -1,333 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage - * @generated - */ -public class ApplyStereotypeAdviceConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static ApplyStereotypeAdviceConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = ApplyStereotypeAdviceConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected ApplyStereotypeAdviceConfigurationSwitch modelSwitch = - new ApplyStereotypeAdviceConfigurationSwitch() { - @Override - public Adapter caseApplyStereotypeAdviceConfiguration(ApplyStereotypeAdviceConfiguration object) { - return createApplyStereotypeAdviceConfigurationAdapter(); - } - @Override - public Adapter caseStereotypeToApply(StereotypeToApply object) { - return createStereotypeToApplyAdapter(); - } - @Override - public Adapter caseFeatureToSet(FeatureToSet object) { - return createFeatureToSetAdapter(); - } - @Override - public Adapter caseFeatureValue(FeatureValue object) { - return createFeatureValueAdapter(); - } - @Override - public Adapter caseListValue(ListValue object) { - return createListValueAdapter(); - } - @Override - public Adapter caseConstantValue(ConstantValue object) { - return createConstantValueAdapter(); - } - @Override - public Adapter caseDynamicValue(DynamicValue object) { - return createDynamicValueAdapter(); - } - @Override - public Adapter caseQueryExecutionValue(QueryExecutionValue object) { - return createQueryExecutionValueAdapter(); - } - @Override - public Adapter caseConfigurationElement(ConfigurationElement object) { - return createConfigurationElementAdapter(); - } - @Override - public Adapter caseAdviceConfiguration(AdviceConfiguration object) { - return createAdviceConfigurationAdapter(); - } - @Override - public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return createIdentifiedConfigurationAdapter(); - } - @Override - public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return createAbstractAdviceBindingConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration Apply Stereotype Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration - * @generated - */ - public Adapter createApplyStereotypeAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply Stereotype To Apply}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply - * @generated - */ - public Adapter createStereotypeToApplyAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet Feature To Set}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet - * @generated - */ - public Adapter createFeatureToSetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue Feature Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureValue - * @generated - */ - public Adapter createFeatureValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue List Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ListValue - * @generated - */ - public Adapter createListValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue Constant Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ConstantValue - * @generated - */ - public Adapter createConstantValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue Dynamic Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.DynamicValue - * @generated - */ - public Adapter createDynamicValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue Query Execution Value}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.QueryExecutionValue - * @generated - */ - public Adapter createQueryExecutionValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - public Adapter createConfigurationElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration - * @generated - */ - public Adapter createAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - public Adapter createIdentifiedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration - * @generated - */ - public Adapter createAbstractAdviceBindingConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //ApplyStereotypeAdviceConfigurationAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceFactoryImpl.java deleted file mode 100644 index f56607c7dfb..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util.ApplyStereotypeAdviceConfigurationResourceImpl - * @generated - */ -public class ApplyStereotypeAdviceConfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new ApplyStereotypeAdviceConfigurationResourceImpl(uri); - return result; - } - -} //ApplyStereotypeAdviceConfigurationResourceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceImpl.java deleted file mode 100644 index 333f1b7ddf4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util.ApplyStereotypeAdviceConfigurationResourceFactoryImpl - * @generated - */ -public class ApplyStereotypeAdviceConfigurationResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public ApplyStereotypeAdviceConfigurationResourceImpl(URI uri) { - super(uri); - } - -} //ApplyStereotypeAdviceConfigurationResourceImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationSwitch.java deleted file mode 100644 index 60c2ac6ae82..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationSwitch.java +++ /dev/null @@ -1,341 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage - * @generated - */ -public class ApplyStereotypeAdviceConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static ApplyStereotypeAdviceConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = ApplyStereotypeAdviceConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ApplyStereotypeAdviceConfigurationPackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION: { - ApplyStereotypeAdviceConfiguration applyStereotypeAdviceConfiguration = (ApplyStereotypeAdviceConfiguration)theEObject; - T result = caseApplyStereotypeAdviceConfiguration(applyStereotypeAdviceConfiguration); - if (result == null) result = caseAbstractAdviceBindingConfiguration(applyStereotypeAdviceConfiguration); - if (result == null) result = caseAdviceConfiguration(applyStereotypeAdviceConfiguration); - if (result == null) result = caseIdentifiedConfiguration(applyStereotypeAdviceConfiguration); - if (result == null) result = caseConfigurationElement(applyStereotypeAdviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY: { - StereotypeToApply stereotypeToApply = (StereotypeToApply)theEObject; - T result = caseStereotypeToApply(stereotypeToApply); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_TO_SET: { - FeatureToSet featureToSet = (FeatureToSet)theEObject; - T result = caseFeatureToSet(featureToSet); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.FEATURE_VALUE: { - FeatureValue featureValue = (FeatureValue)theEObject; - T result = caseFeatureValue(featureValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.LIST_VALUE: { - ListValue listValue = (ListValue)theEObject; - T result = caseListValue(listValue); - if (result == null) result = caseFeatureValue(listValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.CONSTANT_VALUE: { - ConstantValue constantValue = (ConstantValue)theEObject; - T result = caseConstantValue(constantValue); - if (result == null) result = caseFeatureValue(constantValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.DYNAMIC_VALUE: { - DynamicValue dynamicValue = (DynamicValue)theEObject; - T result = caseDynamicValue(dynamicValue); - if (result == null) result = caseFeatureValue(dynamicValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplyStereotypeAdviceConfigurationPackage.QUERY_EXECUTION_VALUE: { - QueryExecutionValue queryExecutionValue = (QueryExecutionValue)theEObject; - T result = caseQueryExecutionValue(queryExecutionValue); - if (result == null) result = caseDynamicValue(queryExecutionValue); - if (result == null) result = caseFeatureValue(queryExecutionValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Apply Stereotype Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Apply Stereotype Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseApplyStereotypeAdviceConfiguration(ApplyStereotypeAdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Stereotype To Apply'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Stereotype To Apply'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStereotypeToApply(StereotypeToApply object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature To Set'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature To Set'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeatureToSet(FeatureToSet object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeatureValue(FeatureValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'List Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'List Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseListValue(ListValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Constant Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Constant Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConstantValue(ConstantValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Dynamic Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Dynamic Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDynamicValue(DynamicValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Query Execution Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Query Execution Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseQueryExecutionValue(QueryExecutionValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Configuration Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Configuration Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConfigurationElement(ConfigurationElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdviceConfiguration(AdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identified Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Identified Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //ApplyStereotypeAdviceConfigurationSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationXMLProcessor.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationXMLProcessor.java deleted file mode 100644 index e18d7dba47e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/util/ApplyStereotypeAdviceConfigurationXMLProcessor.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class ApplyStereotypeAdviceConfigurationXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public ApplyStereotypeAdviceConfigurationXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - ApplyStereotypeAdviceConfigurationPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the ApplyStereotypeAdviceConfigurationResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new ApplyStereotypeAdviceConfigurationResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new ApplyStereotypeAdviceConfigurationResourceFactoryImpl()); - } - return registrations; - } - -} //ApplyStereotypeAdviceConfigurationXMLProcessor diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfiguration.java deleted file mode 100644 index ebf60c01104..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfiguration.java +++ /dev/null @@ -1,114 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -/** - * - * A representation of the model object 'Invariant Stereotype Rule Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName Stereotype Qualified Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getRequiredProfile Required Profile}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#isStrict Strict}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration() - * @model - * @generated - */ -public interface InvariantStereotypeRuleConfiguration extends InvariantRuleConfiguration { - /** - * Returns the value of the 'Stereotype Qualified Name' attribute. - * - *

- * If the meaning of the 'Stereotype Qualified Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Stereotype Qualified Name' attribute. - * @see #setStereotypeQualifiedName(String) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName() - * @model required="true" - * @generated - */ - String getStereotypeQualifiedName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName Stereotype Qualified Name}' attribute. - * - * - * @param value the new value of the 'Stereotype Qualified Name' attribute. - * @see #getStereotypeQualifiedName() - * @generated - */ - void setStereotypeQualifiedName(String value); - - /** - * Returns the value of the 'Required Profile' attribute. - * - *

- * If the meaning of the 'Required Profile' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Required Profile' attribute. - * @see #setRequiredProfile(String) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration_RequiredProfile() - * @model - * @generated - */ - String getRequiredProfile(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getRequiredProfile Required Profile}' attribute. - * - * - * @param value the new value of the 'Required Profile' attribute. - * @see #getRequiredProfile() - * @generated - */ - void setRequiredProfile(String value); - - /** - * Returns the value of the 'Strict' attribute. - * - *

- * If the meaning of the 'Strict' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Strict' attribute. - * @see #setStrict(boolean) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration_Strict() - * @model required="true" - * @generated - */ - boolean isStrict(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#isStrict Strict}' attribute. - * - * - * @param value the new value of the 'Strict' attribute. - * @see #isStrict() - * @generated - */ - void setStrict(boolean value); - -} // InvariantStereotypeRuleConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationFactory.java deleted file mode 100644 index 2ecb0e75fc2..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationFactory.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage - * @generated - */ -public interface InvariantStereotypeRuleConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - InvariantStereotypeRuleConfigurationFactory eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Invariant Stereotype Rule Configuration'. - * - * - * @return a new object of class 'Invariant Stereotype Rule Configuration'. - * @generated - */ - InvariantStereotypeRuleConfiguration createInvariantStereotypeRuleConfiguration(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - InvariantStereotypeRuleConfigurationPackage getInvariantStereotypeRuleConfigurationPackage(); - -} //InvariantStereotypeRuleConfigurationFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationPackage.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationPackage.java deleted file mode 100644 index e5460aa265b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRuleConfigurationPackage.java +++ /dev/null @@ -1,228 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationFactory - * @model kind="package" - * @generated - */ -public interface InvariantStereotypeRuleConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "invariantstereotyperuleconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/invariantstereotyperule/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "invariantstereotyperuleconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - InvariantStereotypeRuleConfigurationPackage eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl Invariant Stereotype Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationPackageImpl#getInvariantStereotypeRuleConfiguration() - * @generated - */ - int INVARIANT_STEREOTYPE_RULE_CONFIGURATION = 0; - - /** - * The feature id for the 'Stereotype Qualified Name' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Required Profile' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Strict' attribute. - * - * - * @generated - * @ordered - */ - int INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Invariant Stereotype Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_STEREOTYPE_RULE_CONFIGURATION_FEATURE_COUNT = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'Invariant Stereotype Rule Configuration' class. - * - * - * @generated - * @ordered - */ - int INVARIANT_STEREOTYPE_RULE_CONFIGURATION_OPERATION_COUNT = InvariantTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration Invariant Stereotype Rule Configuration}'. - * - * - * @return the meta object for class 'Invariant Stereotype Rule Configuration'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration - * @generated - */ - EClass getInvariantStereotypeRuleConfiguration(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName Stereotype Qualified Name}'. - * - * - * @return the meta object for the attribute 'Stereotype Qualified Name'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName() - * @see #getInvariantStereotypeRuleConfiguration() - * @generated - */ - EAttribute getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getRequiredProfile Required Profile}'. - * - * - * @return the meta object for the attribute 'Required Profile'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#getRequiredProfile() - * @see #getInvariantStereotypeRuleConfiguration() - * @generated - */ - EAttribute getInvariantStereotypeRuleConfiguration_RequiredProfile(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#isStrict Strict}'. - * - * - * @return the meta object for the attribute 'Strict'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration#isStrict() - * @see #getInvariantStereotypeRuleConfiguration() - * @generated - */ - EAttribute getInvariantStereotypeRuleConfiguration_Strict(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - InvariantStereotypeRuleConfigurationFactory getInvariantStereotypeRuleConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl Invariant Stereotype Rule Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationPackageImpl#getInvariantStereotypeRuleConfiguration() - * @generated - */ - EClass INVARIANT_STEREOTYPE_RULE_CONFIGURATION = eINSTANCE.getInvariantStereotypeRuleConfiguration(); - - /** - * The meta object literal for the 'Stereotype Qualified Name' attribute feature. - * - * - * @generated - */ - EAttribute INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME = eINSTANCE.getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName(); - - /** - * The meta object literal for the 'Required Profile' attribute feature. - * - * - * @generated - */ - EAttribute INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE = eINSTANCE.getInvariantStereotypeRuleConfiguration_RequiredProfile(); - - /** - * The meta object literal for the 'Strict' attribute feature. - * - * - * @generated - */ - EAttribute INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT = eINSTANCE.getInvariantStereotypeRuleConfiguration_Strict(); - - } - -} //InvariantStereotypeRuleConfigurationPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java deleted file mode 100644 index c39f35bec40..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.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.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class InvariantStereotypeRuleConfigurationFactoryImpl extends EFactoryImpl implements InvariantStereotypeRuleConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static InvariantStereotypeRuleConfigurationFactory init() { - try { - InvariantStereotypeRuleConfigurationFactory theInvariantStereotypeRuleConfigurationFactory = (InvariantStereotypeRuleConfigurationFactory) EPackage.Registry.INSTANCE.getEFactory(InvariantStereotypeRuleConfigurationPackage.eNS_URI); - if (theInvariantStereotypeRuleConfigurationFactory != null) { - return theInvariantStereotypeRuleConfigurationFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new InvariantStereotypeRuleConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION: - return createInvariantStereotypeRuleConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public InvariantStereotypeRuleConfiguration createInvariantStereotypeRuleConfiguration() { - InvariantStereotypeRuleConfigurationImpl invariantStereotypeRuleConfiguration = new InvariantStereotypeRuleConfigurationImpl(); - return invariantStereotypeRuleConfiguration; - } - - /** - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationPackage getInvariantStereotypeRuleConfigurationPackage() { - return (InvariantStereotypeRuleConfigurationPackage) getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static InvariantStereotypeRuleConfigurationPackage getPackage() { - return InvariantStereotypeRuleConfigurationPackage.eINSTANCE; - } - -} //InvariantStereotypeRuleConfigurationFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationImpl.java deleted file mode 100644 index 3f6d79c85db..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationImpl.java +++ /dev/null @@ -1,283 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.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.elementtypesconfigurations.invarianttypeconfiguration.impl.InvariantRuleConfigurationImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage; - -/** - * - * An implementation of the model object 'Invariant Stereotype Rule Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl#getStereotypeQualifiedName Stereotype Qualified Name}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl#getRequiredProfile Required Profile}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl.InvariantStereotypeRuleConfigurationImpl#isStrict Strict}
  • - *
- * - * @generated - */ -public class InvariantStereotypeRuleConfigurationImpl extends InvariantRuleConfigurationImpl implements InvariantStereotypeRuleConfiguration { - /** - * The default value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. - * - * - * @see #getStereotypeQualifiedName() - * @generated - * @ordered - */ - protected static final String STEREOTYPE_QUALIFIED_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. - * - * - * @see #getStereotypeQualifiedName() - * @generated - * @ordered - */ - protected String stereotypeQualifiedName = STEREOTYPE_QUALIFIED_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getRequiredProfile() Required Profile}' attribute. - * - * - * @see #getRequiredProfile() - * @generated - * @ordered - */ - protected static final String REQUIRED_PROFILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRequiredProfile() Required Profile}' attribute. - * - * - * @see #getRequiredProfile() - * @generated - * @ordered - */ - protected String requiredProfile = REQUIRED_PROFILE_EDEFAULT; - - /** - * The default value of the '{@link #isStrict() Strict}' attribute. - * - * - * @see #isStrict() - * @generated - * @ordered - */ - protected static final boolean STRICT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isStrict() Strict}' attribute. - * - * - * @see #isStrict() - * @generated - * @ordered - */ - protected boolean strict = STRICT_EDEFAULT; - - /** - * - * - * @generated - */ - protected InvariantStereotypeRuleConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public String getStereotypeQualifiedName() { - return stereotypeQualifiedName; - } - - /** - * - * - * @generated - */ - public void setStereotypeQualifiedName(String newStereotypeQualifiedName) { - String oldStereotypeQualifiedName = stereotypeQualifiedName; - stereotypeQualifiedName = newStereotypeQualifiedName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME, oldStereotypeQualifiedName, stereotypeQualifiedName)); - } - - /** - * - * - * @generated - */ - public String getRequiredProfile() { - return requiredProfile; - } - - /** - * - * - * @generated - */ - public void setRequiredProfile(String newRequiredProfile) { - String oldRequiredProfile = requiredProfile; - requiredProfile = newRequiredProfile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE, oldRequiredProfile, requiredProfile)); - } - - /** - * - * - * @generated - */ - public boolean isStrict() { - return strict; - } - - /** - * - * - * @generated - */ - public void setStrict(boolean newStrict) { - boolean oldStrict = strict; - strict = newStrict; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT, oldStrict, strict)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: - return getStereotypeQualifiedName(); - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: - return getRequiredProfile(); - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: - return isStrict(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: - setStereotypeQualifiedName((String) newValue); - return; - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: - setRequiredProfile((String) newValue); - return; - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: - setStrict((Boolean) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: - setStereotypeQualifiedName(STEREOTYPE_QUALIFIED_NAME_EDEFAULT); - return; - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: - setRequiredProfile(REQUIRED_PROFILE_EDEFAULT); - return; - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: - setStrict(STRICT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: - return STEREOTYPE_QUALIFIED_NAME_EDEFAULT == null ? stereotypeQualifiedName != null : !STEREOTYPE_QUALIFIED_NAME_EDEFAULT.equals(stereotypeQualifiedName); - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: - return REQUIRED_PROFILE_EDEFAULT == null ? requiredProfile != null : !REQUIRED_PROFILE_EDEFAULT.equals(requiredProfile); - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: - return strict != STRICT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (stereotypeQualifiedName: "); - result.append(stereotypeQualifiedName); - result.append(", requiredProfile: "); - result.append(requiredProfile); - result.append(", strict: "); - result.append(strict); - result.append(')'); - return result.toString(); - } - -} //InvariantStereotypeRuleConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationPackageImpl.java deleted file mode 100644 index c5d17abb3d6..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/impl/InvariantStereotypeRuleConfigurationPackageImpl.java +++ /dev/null @@ -1,227 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class InvariantStereotypeRuleConfigurationPackageImpl extends EPackageImpl implements InvariantStereotypeRuleConfigurationPackage { - /** - * - * - * @generated - */ - private EClass invariantStereotypeRuleConfigurationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private InvariantStereotypeRuleConfigurationPackageImpl() { - super(eNS_URI, InvariantStereotypeRuleConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link InvariantStereotypeRuleConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static InvariantStereotypeRuleConfigurationPackage init() { - if (isInited) - return (InvariantStereotypeRuleConfigurationPackage) EPackage.Registry.INSTANCE.getEPackage(InvariantStereotypeRuleConfigurationPackage.eNS_URI); - - // Obtain or create and register package - InvariantStereotypeRuleConfigurationPackageImpl theInvariantStereotypeRuleConfigurationPackage = (InvariantStereotypeRuleConfigurationPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantStereotypeRuleConfigurationPackageImpl - ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantStereotypeRuleConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - InvariantTypeConfigurationPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theInvariantStereotypeRuleConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theInvariantStereotypeRuleConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theInvariantStereotypeRuleConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(InvariantStereotypeRuleConfigurationPackage.eNS_URI, theInvariantStereotypeRuleConfigurationPackage); - return theInvariantStereotypeRuleConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getInvariantStereotypeRuleConfiguration() { - return invariantStereotypeRuleConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName() { - return (EAttribute) invariantStereotypeRuleConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getInvariantStereotypeRuleConfiguration_RequiredProfile() { - return (EAttribute) invariantStereotypeRuleConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getInvariantStereotypeRuleConfiguration_Strict() { - return (EAttribute) invariantStereotypeRuleConfigurationEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationFactory getInvariantStereotypeRuleConfigurationFactory() { - return (InvariantStereotypeRuleConfigurationFactory) getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - invariantStereotypeRuleConfigurationEClass = createEClass(INVARIANT_STEREOTYPE_RULE_CONFIGURATION); - createEAttribute(invariantStereotypeRuleConfigurationEClass, INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME); - createEAttribute(invariantStereotypeRuleConfigurationEClass, INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE); - createEAttribute(invariantStereotypeRuleConfigurationEClass, INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - InvariantTypeConfigurationPackage theInvariantTypeConfigurationPackage = (InvariantTypeConfigurationPackage) EPackage.Registry.INSTANCE.getEPackage(InvariantTypeConfigurationPackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - invariantStereotypeRuleConfigurationEClass.getESuperTypes().add(theInvariantTypeConfigurationPackage.getInvariantRuleConfiguration()); - - // Initialize classes, features, and operations; add parameters - initEClass(invariantStereotypeRuleConfigurationEClass, InvariantStereotypeRuleConfiguration.class, "InvariantStereotypeRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName(), theEcorePackage.getEString(), "stereotypeQualifiedName", null, 1, 1, InvariantStereotypeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getInvariantStereotypeRuleConfiguration_RequiredProfile(), theEcorePackage.getEString(), "requiredProfile", null, 0, 1, InvariantStereotypeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getInvariantStereotypeRuleConfiguration_Strict(), ecorePackage.getEBoolean(), "strict", null, 1, 1, InvariantStereotypeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //InvariantStereotypeRuleConfigurationPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationEditPlugin.java deleted file mode 100644 index e9d575a62fb..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationEditPlugin.java +++ /dev/null @@ -1,107 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider.InvariantTypeConfigurationEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -/** - * This is the central singleton for the InvariantStereotypeRuleConfiguration edit plugin. - * - * - * @generated - */ -public final class InvariantStereotypeRuleConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final InvariantStereotypeRuleConfigurationEditPlugin INSTANCE = new InvariantStereotypeRuleConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationEditPlugin() { - super(new ResourceLocator[] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - InvariantTypeConfigurationEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProvider.java deleted file mode 100644 index d00cab75979..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProvider.java +++ /dev/null @@ -1,197 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.provider.InvariantRuleConfigurationItemProvider; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration} object. - * - * - * @generated - */ -public class InvariantStereotypeRuleConfigurationItemProvider extends InvariantRuleConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addStereotypeQualifiedNamePropertyDescriptor(object); - addRequiredProfilePropertyDescriptor(object); - addStrictPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Stereotype Qualified Name feature. - * - * - * @generated - */ - protected void addStereotypeQualifiedNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InvariantStereotypeRuleConfiguration_stereotypeQualifiedName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InvariantStereotypeRuleConfiguration_stereotypeQualifiedName_feature", "_UI_InvariantStereotypeRuleConfiguration_type"), - InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Required Profile feature. - * - * - * @generated - */ - protected void addRequiredProfilePropertyDescriptor(Object object) { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InvariantStereotypeRuleConfiguration_requiredProfile_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InvariantStereotypeRuleConfiguration_requiredProfile_feature", "_UI_InvariantStereotypeRuleConfiguration_type"), - InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Strict feature. - * - * - * @generated - */ - protected void addStrictPropertyDescriptor(Object object) { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InvariantStereotypeRuleConfiguration_strict_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InvariantStereotypeRuleConfiguration_strict_feature", "_UI_InvariantStereotypeRuleConfiguration_type"), - InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns InvariantStereotypeRuleConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/InvariantStereotypeRuleConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((InvariantStereotypeRuleConfiguration) object).getStereotypeQualifiedName(); - return label == null || label.length() == 0 ? getString("_UI_InvariantStereotypeRuleConfiguration_type") : getString("_UI_InvariantStereotypeRuleConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(InvariantStereotypeRuleConfiguration.class)) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return InvariantStereotypeRuleConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index ecf2d1a1c68..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,341 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.CompositeInvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantTypeConfigurationPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.NotInvariantRuleConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.util.InvariantTypeConfigurationSwitch; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationFactory; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util.InvariantStereotypeRuleConfigurationAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class InvariantStereotypeRuleConfigurationItemProviderAdapterFactory extends InvariantStereotypeRuleConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration} instances. - * - * - * @generated - */ - protected InvariantStereotypeRuleConfigurationItemProvider invariantStereotypeRuleConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createInvariantStereotypeRuleConfigurationAdapter() { - if (invariantStereotypeRuleConfigurationItemProvider == null) { - invariantStereotypeRuleConfigurationItemProvider = new InvariantStereotypeRuleConfigurationItemProvider(this); - } - - return invariantStereotypeRuleConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (invariantStereotypeRuleConfigurationItemProvider != null) - invariantStereotypeRuleConfigurationItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link InvariantTypeConfigurationPackage}. - * - * - * @generated - */ - public static class InvariantTypeConfigurationChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends InvariantTypeConfigurationSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - - /** - * - * - * @generated - */ - @Override - public Object caseInvariantTypeConfiguration(InvariantTypeConfiguration object) { - newChildDescriptors.add(createChildParameter(InvariantTypeConfigurationPackage.Literals.INVARIANT_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, - InvariantStereotypeRuleConfigurationFactory.eINSTANCE.createInvariantStereotypeRuleConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - @Override - public Object caseCompositeInvariantRuleConfiguration(CompositeInvariantRuleConfiguration object) { - newChildDescriptors.add(createChildParameter(InvariantTypeConfigurationPackage.Literals.COMPOSITE_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULES, - InvariantStereotypeRuleConfigurationFactory.eINSTANCE.createInvariantStereotypeRuleConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - @Override - public Object caseNotInvariantRuleConfiguration(NotInvariantRuleConfiguration object) { - newChildDescriptors.add(createChildParameter(InvariantTypeConfigurationPackage.Literals.NOT_INVARIANT_RULE_CONFIGURATION__COMPOSED_RULE, - InvariantStereotypeRuleConfigurationFactory.eINSTANCE.createInvariantStereotypeRuleConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject) object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return InvariantStereotypeRuleConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationAdapterFactory.java deleted file mode 100644 index fa5f632c4b5..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationAdapterFactory.java +++ /dev/null @@ -1,151 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.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.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage - * @generated - */ -public class InvariantStereotypeRuleConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static InvariantStereotypeRuleConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = InvariantStereotypeRuleConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected InvariantStereotypeRuleConfigurationSwitch modelSwitch = new InvariantStereotypeRuleConfigurationSwitch() { - @Override - public Adapter caseInvariantStereotypeRuleConfiguration(InvariantStereotypeRuleConfiguration object) { - return createInvariantStereotypeRuleConfigurationAdapter(); - } - - @Override - public Adapter caseInvariantRuleConfiguration(InvariantRuleConfiguration object) { - return createInvariantRuleConfigurationAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration Invariant Stereotype Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfiguration - * @generated - */ - public Adapter createInvariantStereotypeRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration Invariant Rule Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration - * @generated - */ - public Adapter createInvariantRuleConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //InvariantStereotypeRuleConfigurationAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java deleted file mode 100644 index 6a79877fa49..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util.InvariantStereotypeRuleConfigurationResourceImpl - * @generated - */ -public class InvariantStereotypeRuleConfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new InvariantStereotypeRuleConfigurationResourceImpl(uri); - return result; - } - -} //InvariantStereotypeRuleConfigurationResourceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceImpl.java deleted file mode 100644 index 630d7012f8e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util.InvariantStereotypeRuleConfigurationResourceFactoryImpl - * @generated - */ -public class InvariantStereotypeRuleConfigurationResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public InvariantStereotypeRuleConfigurationResourceImpl(URI uri) { - super(uri); - } - -} //InvariantStereotypeRuleConfigurationResourceImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationSwitch.java deleted file mode 100644 index c5d60527ca7..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationSwitch.java +++ /dev/null @@ -1,141 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.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.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage - * @generated - */ -public class InvariantStereotypeRuleConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static InvariantStereotypeRuleConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = InvariantStereotypeRuleConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION: { - InvariantStereotypeRuleConfiguration invariantStereotypeRuleConfiguration = (InvariantStereotypeRuleConfiguration) theEObject; - T result = caseInvariantStereotypeRuleConfiguration(invariantStereotypeRuleConfiguration); - if (result == null) - result = caseInvariantRuleConfiguration(invariantStereotypeRuleConfiguration); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Invariant Stereotype Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Invariant Stereotype Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInvariantStereotypeRuleConfiguration(InvariantStereotypeRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Invariant Rule Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Invariant Rule Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInvariantRuleConfiguration(InvariantRuleConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //InvariantStereotypeRuleConfigurationSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationXMLProcessor.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationXMLProcessor.java deleted file mode 100644 index 405c98c22ec..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/util/InvariantStereotypeRuleConfigurationXMLProcessor.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration.InvariantStereotypeRuleConfigurationPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class InvariantStereotypeRuleConfigurationXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public InvariantStereotypeRuleConfigurationXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - InvariantStereotypeRuleConfigurationPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the InvariantStereotypeRuleConfigurationResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new InvariantStereotypeRuleConfigurationResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new InvariantStereotypeRuleConfigurationResourceFactoryImpl()); - } - return registrations; - } - -} //InvariantStereotypeRuleConfigurationXMLProcessor diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfiguration.java deleted file mode 100644 index 676976b5fef..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfiguration.java +++ /dev/null @@ -1,69 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; - -/** - * - * A representation of the model object 'Set Type Advice Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration#getValidTypes Valid Types}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration#getCreationTypes Creation Types}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage#getSetTypeAdviceConfiguration() - * @model - * @generated - */ -public interface SetTypeAdviceConfiguration extends AbstractAdviceBindingConfiguration { - /** - * Returns the value of the 'Valid Types' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'Valid Types' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Valid Types' attribute list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage#getSetTypeAdviceConfiguration_ValidTypes() - * @model - * @generated - */ - EList getValidTypes(); - - /** - * Returns the value of the 'Creation Types' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'Creation Types' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Creation Types' attribute list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage#getSetTypeAdviceConfiguration_CreationTypes() - * @model - * @generated - */ - EList getCreationTypes(); - -} // SetTypeAdviceConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationFactory.java deleted file mode 100644 index 4c391391d5d..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationFactory.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage - * @generated - */ -public interface SetTypeAdviceConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - SetTypeAdviceConfigurationFactory eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Set Type Advice Configuration'. - * - * - * @return a new object of class 'Set Type Advice Configuration'. - * @generated - */ - SetTypeAdviceConfiguration createSetTypeAdviceConfiguration(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - SetTypeAdviceConfigurationPackage getSetTypeAdviceConfigurationPackage(); - -} //SetTypeAdviceConfigurationFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationPackage.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationPackage.java deleted file mode 100644 index e565c9eaee7..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceConfigurationPackage.java +++ /dev/null @@ -1,272 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationFactory - * @model kind="package" - * @generated - */ -public interface SetTypeAdviceConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "settypeadviceconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/uml/settypeadvice/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "settypeadviceconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - SetTypeAdviceConfigurationPackage eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationImpl Set Type Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationPackageImpl#getSetTypeAdviceConfiguration() - * @generated - */ - int SET_TYPE_ADVICE_CONFIGURATION = 0; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__DESCRIPTION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; - - /** - * The feature id for the 'Before' attribute list. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__BEFORE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; - - /** - * The feature id for the 'After' attribute list. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__AFTER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__IDENTIFIER = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; - - /** - * The feature id for the 'Target' reference. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__TARGET = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; - - /** - * The feature id for the 'Container Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; - - /** - * The feature id for the 'Matcher Configuration' containment reference. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; - - /** - * The feature id for the 'Inheritance' attribute. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__INHERITANCE = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; - - /** - * The feature id for the 'Valid Types' attribute list. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Creation Types' attribute list. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Set Type Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Set Type Advice Configuration' class. - * - * - * @generated - * @ordered - */ - int SET_TYPE_ADVICE_CONFIGURATION_OPERATION_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration Set Type Advice Configuration}'. - * - * - * @return the meta object for class 'Set Type Advice Configuration'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration - * @generated - */ - EClass getSetTypeAdviceConfiguration(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration#getValidTypes Valid Types}'. - * - * - * @return the meta object for the attribute list 'Valid Types'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration#getValidTypes() - * @see #getSetTypeAdviceConfiguration() - * @generated - */ - EAttribute getSetTypeAdviceConfiguration_ValidTypes(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration#getCreationTypes Creation Types}'. - * - * - * @return the meta object for the attribute list 'Creation Types'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration#getCreationTypes() - * @see #getSetTypeAdviceConfiguration() - * @generated - */ - EAttribute getSetTypeAdviceConfiguration_CreationTypes(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - SetTypeAdviceConfigurationFactory getSetTypeAdviceConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationImpl Set Type Advice Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationPackageImpl#getSetTypeAdviceConfiguration() - * @generated - */ - EClass SET_TYPE_ADVICE_CONFIGURATION = eINSTANCE.getSetTypeAdviceConfiguration(); - - /** - * The meta object literal for the 'Valid Types' attribute list feature. - * - * - * @generated - */ - EAttribute SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES = eINSTANCE.getSetTypeAdviceConfiguration_ValidTypes(); - - /** - * The meta object literal for the 'Creation Types' attribute list feature. - * - * - * @generated - */ - EAttribute SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES = eINSTANCE.getSetTypeAdviceConfiguration_CreationTypes(); - - } - -} //SetTypeAdviceConfigurationPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationFactoryImpl.java deleted file mode 100644 index 4820813fb00..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationFactoryImpl.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.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.uml.elementtypesconfigurations.settypeadviceconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class SetTypeAdviceConfigurationFactoryImpl extends EFactoryImpl implements SetTypeAdviceConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static SetTypeAdviceConfigurationFactory init() { - try { - SetTypeAdviceConfigurationFactory theSetTypeAdviceConfigurationFactory = (SetTypeAdviceConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(SetTypeAdviceConfigurationPackage.eNS_URI); - if (theSetTypeAdviceConfigurationFactory != null) { - return theSetTypeAdviceConfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new SetTypeAdviceConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public SetTypeAdviceConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION: return createSetTypeAdviceConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public SetTypeAdviceConfiguration createSetTypeAdviceConfiguration() { - SetTypeAdviceConfigurationImpl setTypeAdviceConfiguration = new SetTypeAdviceConfigurationImpl(); - return setTypeAdviceConfiguration; - } - - /** - * - * - * @generated - */ - public SetTypeAdviceConfigurationPackage getSetTypeAdviceConfigurationPackage() { - return (SetTypeAdviceConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static SetTypeAdviceConfigurationPackage getPackage() { - return SetTypeAdviceConfigurationPackage.eINSTANCE; - } - -} //SetTypeAdviceConfigurationFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationImpl.java deleted file mode 100644 index 906dc64ec3c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationImpl.java +++ /dev/null @@ -1,195 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractAdviceBindingConfigurationImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage; - -/** - * - * An implementation of the model object 'Set Type Advice Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationImpl#getValidTypes Valid Types}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl.SetTypeAdviceConfigurationImpl#getCreationTypes Creation Types}
  • - *
- * - * @generated - */ -public class SetTypeAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements SetTypeAdviceConfiguration { - /** - * The cached value of the '{@link #getValidTypes() Valid Types}' attribute list. - * - * - * @see #getValidTypes() - * @generated - * @ordered - */ - protected EList validTypes; - - /** - * The cached value of the '{@link #getCreationTypes() Creation Types}' attribute list. - * - * - * @see #getCreationTypes() - * @generated - * @ordered - */ - protected EList creationTypes; - - /** - * - * - * @generated - */ - protected SetTypeAdviceConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SetTypeAdviceConfigurationPackage.Literals.SET_TYPE_ADVICE_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getValidTypes() { - if (validTypes == null) { - validTypes = new EDataTypeUniqueEList(String.class, this, SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES); - } - return validTypes; - } - - /** - * - * - * @generated - */ - public EList getCreationTypes() { - if (creationTypes == null) { - creationTypes = new EDataTypeUniqueEList(String.class, this, SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES); - } - return creationTypes; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: - return getValidTypes(); - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: - return getCreationTypes(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: - getValidTypes().clear(); - getValidTypes().addAll((Collection)newValue); - return; - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: - getCreationTypes().clear(); - getCreationTypes().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: - getValidTypes().clear(); - return; - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: - getCreationTypes().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: - return validTypes != null && !validTypes.isEmpty(); - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: - return creationTypes != null && !creationTypes.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (validTypes: "); - result.append(validTypes); - result.append(", creationTypes: "); - result.append(creationTypes); - result.append(')'); - return result.toString(); - } - -} //SetTypeAdviceConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationPackageImpl.java deleted file mode 100644 index fa472a7ee8e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/impl/SetTypeAdviceConfigurationPackageImpl.java +++ /dev/null @@ -1,210 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class SetTypeAdviceConfigurationPackageImpl extends EPackageImpl implements SetTypeAdviceConfigurationPackage { - /** - * - * - * @generated - */ - private EClass setTypeAdviceConfigurationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private SetTypeAdviceConfigurationPackageImpl() { - super(eNS_URI, SetTypeAdviceConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link SetTypeAdviceConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static SetTypeAdviceConfigurationPackage init() { - if (isInited) return (SetTypeAdviceConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(SetTypeAdviceConfigurationPackage.eNS_URI); - - // Obtain or create and register package - SetTypeAdviceConfigurationPackageImpl theSetTypeAdviceConfigurationPackage = (SetTypeAdviceConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SetTypeAdviceConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SetTypeAdviceConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - ElementtypesconfigurationsPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theSetTypeAdviceConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theSetTypeAdviceConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theSetTypeAdviceConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(SetTypeAdviceConfigurationPackage.eNS_URI, theSetTypeAdviceConfigurationPackage); - return theSetTypeAdviceConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getSetTypeAdviceConfiguration() { - return setTypeAdviceConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getSetTypeAdviceConfiguration_ValidTypes() { - return (EAttribute)setTypeAdviceConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getSetTypeAdviceConfiguration_CreationTypes() { - return (EAttribute)setTypeAdviceConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public SetTypeAdviceConfigurationFactory getSetTypeAdviceConfigurationFactory() { - return (SetTypeAdviceConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - setTypeAdviceConfigurationEClass = createEClass(SET_TYPE_ADVICE_CONFIGURATION); - createEAttribute(setTypeAdviceConfigurationEClass, SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES); - createEAttribute(setTypeAdviceConfigurationEClass, SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ElementtypesconfigurationsPackage theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - setTypeAdviceConfigurationEClass.getESuperTypes().add(theElementtypesconfigurationsPackage.getAbstractAdviceBindingConfiguration()); - - // Initialize classes, features, and operations; add parameters - initEClass(setTypeAdviceConfigurationEClass, SetTypeAdviceConfiguration.class, "SetTypeAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSetTypeAdviceConfiguration_ValidTypes(), theEcorePackage.getEString(), "validTypes", null, 0, -1, SetTypeAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSetTypeAdviceConfiguration_CreationTypes(), theEcorePackage.getEString(), "creationTypes", null, 0, -1, SetTypeAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //SetTypeAdviceConfigurationPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationEditPlugin.java deleted file mode 100644 index c86f9f7d80c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationEditPlugin.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -/** - * This is the central singleton for the SetTypeAdviceConfiguration edit plugin. - * - * - * @generated - */ -public final class SetTypeAdviceConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final SetTypeAdviceConfigurationEditPlugin INSTANCE = new SetTypeAdviceConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public SetTypeAdviceConfigurationEditPlugin() { - super - (new ResourceLocator [] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProvider.java deleted file mode 100644 index 0388156db0d..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProvider.java +++ /dev/null @@ -1,181 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.AbstractAdviceBindingConfigurationItemProvider; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration} object. - * - * - * @generated - */ -public class SetTypeAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public SetTypeAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addValidTypesPropertyDescriptor(object); - addCreationTypesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Valid Types feature. - * - * - * @generated - */ - protected void addValidTypesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SetTypeAdviceConfiguration_validTypes_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SetTypeAdviceConfiguration_validTypes_feature", "_UI_SetTypeAdviceConfiguration_type"), - SetTypeAdviceConfigurationPackage.Literals.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Creation Types feature. - * - * - * @generated - */ - protected void addCreationTypesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SetTypeAdviceConfiguration_creationTypes_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SetTypeAdviceConfiguration_creationTypes_feature", "_UI_SetTypeAdviceConfiguration_type"), - SetTypeAdviceConfigurationPackage.Literals.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns SetTypeAdviceConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/SetTypeAdviceConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((SetTypeAdviceConfiguration)object).getDescription(); - return label == null || label.length() == 0 ? - getString("_UI_SetTypeAdviceConfiguration_type") : - getString("_UI_SetTypeAdviceConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(SetTypeAdviceConfiguration.class)) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SetTypeAdviceConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index ef569f1801a..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,313 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsSwitch; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationFactory; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.util.SetTypeAdviceConfigurationAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class SetTypeAdviceConfigurationItemProviderAdapterFactory extends SetTypeAdviceConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public SetTypeAdviceConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration} instances. - * - * - * @generated - */ - protected SetTypeAdviceConfigurationItemProvider setTypeAdviceConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createSetTypeAdviceConfigurationAdapter() { - if (setTypeAdviceConfigurationItemProvider == null) { - setTypeAdviceConfigurationItemProvider = new SetTypeAdviceConfigurationItemProvider(this); - } - - return setTypeAdviceConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (setTypeAdviceConfigurationItemProvider != null) setTypeAdviceConfigurationItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link ElementtypesconfigurationsPackage}. - * - * - * @generated - */ - public static class ElementtypesconfigurationsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends ElementtypesconfigurationsSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, - SetTypeAdviceConfigurationFactory.eINSTANCE.createSetTypeAdviceConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return SetTypeAdviceConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationAdapterFactory.java deleted file mode 100644 index 6c0908a577b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationAdapterFactory.java +++ /dev/null @@ -1,207 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage - * @generated - */ -public class SetTypeAdviceConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static SetTypeAdviceConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public SetTypeAdviceConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = SetTypeAdviceConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected SetTypeAdviceConfigurationSwitch modelSwitch = - new SetTypeAdviceConfigurationSwitch() { - @Override - public Adapter caseSetTypeAdviceConfiguration(SetTypeAdviceConfiguration object) { - return createSetTypeAdviceConfigurationAdapter(); - } - @Override - public Adapter caseConfigurationElement(ConfigurationElement object) { - return createConfigurationElementAdapter(); - } - @Override - public Adapter caseAdviceConfiguration(AdviceConfiguration object) { - return createAdviceConfigurationAdapter(); - } - @Override - public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return createIdentifiedConfigurationAdapter(); - } - @Override - public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return createAbstractAdviceBindingConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration Set Type Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfiguration - * @generated - */ - public Adapter createSetTypeAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement Configuration Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement - * @generated - */ - public Adapter createConfigurationElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration Advice Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration - * @generated - */ - public Adapter createAdviceConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration Identified Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration - * @generated - */ - public Adapter createIdentifiedConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration - * @generated - */ - public Adapter createAbstractAdviceBindingConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //SetTypeAdviceConfigurationAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationSwitch.java deleted file mode 100644 index d9b6eeb3985..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/util/SetTypeAdviceConfigurationSwitch.java +++ /dev/null @@ -1,189 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.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.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AdviceConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ConfigurationElement; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IdentifiedConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration.SetTypeAdviceConfigurationPackage - * @generated - */ -public class SetTypeAdviceConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static SetTypeAdviceConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public SetTypeAdviceConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = SetTypeAdviceConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION: { - SetTypeAdviceConfiguration setTypeAdviceConfiguration = (SetTypeAdviceConfiguration)theEObject; - T result = caseSetTypeAdviceConfiguration(setTypeAdviceConfiguration); - if (result == null) result = caseAbstractAdviceBindingConfiguration(setTypeAdviceConfiguration); - if (result == null) result = caseAdviceConfiguration(setTypeAdviceConfiguration); - if (result == null) result = caseIdentifiedConfiguration(setTypeAdviceConfiguration); - if (result == null) result = caseConfigurationElement(setTypeAdviceConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Set Type Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Set Type Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSetTypeAdviceConfiguration(SetTypeAdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Configuration Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Configuration Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConfigurationElement(ConfigurationElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Advice Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Advice Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdviceConfiguration(AdviceConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identified Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Identified Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //SetTypeAdviceConfigurationSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfiguration.java deleted file mode 100644 index 8dfbed9ffe4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfiguration.java +++ /dev/null @@ -1,79 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; - -/** - * - * A representation of the model object 'Stereotype Application Matcher Configuration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getStereotypesQualifiedNames Stereotypes Qualified Names}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getProfileUri Profile Uri}
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage#getStereotypeApplicationMatcherConfiguration() - * @model - * @generated - */ -public interface StereotypeApplicationMatcherConfiguration extends AbstractMatcherConfiguration { - /** - * Returns the value of the 'Stereotypes Qualified Names' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *

- * If the meaning of the 'Stereotypes Qualified Names' attribute list isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Stereotypes Qualified Names' attribute list. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage#getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames() - * @model required="true" - * @generated - */ - EList getStereotypesQualifiedNames(); - - /** - * Returns the value of the 'Profile Uri' attribute. - * - *

- * If the meaning of the 'Profile Uri' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Profile Uri' attribute. - * @see #setProfileUri(String) - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage#getStereotypeApplicationMatcherConfiguration_ProfileUri() - * @model - * @generated - */ - String getProfileUri(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getProfileUri Profile Uri}' attribute. - * - * - * @param value the new value of the 'Profile Uri' attribute. - * @see #getProfileUri() - * @generated - */ - void setProfileUri(String value); - -} // StereotypeApplicationMatcherConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationFactory.java deleted file mode 100644 index 7b9cd71ef7b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationFactory.java +++ /dev/null @@ -1,52 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage - * @generated - */ -public interface StereotypeApplicationMatcherConfigurationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - StereotypeApplicationMatcherConfigurationFactory eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationFactoryImpl.init(); - - /** - * Returns a new object of class 'Stereotype Application Matcher Configuration'. - * - * - * @return a new object of class 'Stereotype Application Matcher Configuration'. - * @generated - */ - StereotypeApplicationMatcherConfiguration createStereotypeApplicationMatcherConfiguration(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - StereotypeApplicationMatcherConfigurationPackage getStereotypeApplicationMatcherConfigurationPackage(); - -} //StereotypeApplicationMatcherConfigurationFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationPackage.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationPackage.java deleted file mode 100644 index fb569dc677e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherConfigurationPackage.java +++ /dev/null @@ -1,200 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationFactory - * @model kind="package" - * @generated - */ -public interface StereotypeApplicationMatcherConfigurationPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "stereotypeapplicationmatcherconfiguration"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/payrus/elementtypesconfigurations/uml/stereotypematcherconfiguration/1.1"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "stereotypeapplicationmatcherconfiguration"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - StereotypeApplicationMatcherConfigurationPackage eINSTANCE = org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationImpl Stereotype Application Matcher Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationPackageImpl#getStereotypeApplicationMatcherConfiguration() - * @generated - */ - int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION = 0; - - /** - * The feature id for the 'Stereotypes Qualified Names' attribute list. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES = ElementtypesconfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Profile Uri' attribute. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI = ElementtypesconfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Stereotype Application Matcher Configuration' class. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION_FEATURE_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Stereotype Application Matcher Configuration' class. - * - * - * @generated - * @ordered - */ - int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION_OPERATION_COUNT = ElementtypesconfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration Stereotype Application Matcher Configuration}'. - * - * - * @return the meta object for class 'Stereotype Application Matcher Configuration'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration - * @generated - */ - EClass getStereotypeApplicationMatcherConfiguration(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getStereotypesQualifiedNames Stereotypes Qualified Names}'. - * - * - * @return the meta object for the attribute list 'Stereotypes Qualified Names'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getStereotypesQualifiedNames() - * @see #getStereotypeApplicationMatcherConfiguration() - * @generated - */ - EAttribute getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getProfileUri Profile Uri}'. - * - * - * @return the meta object for the attribute 'Profile Uri'. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration#getProfileUri() - * @see #getStereotypeApplicationMatcherConfiguration() - * @generated - */ - EAttribute getStereotypeApplicationMatcherConfiguration_ProfileUri(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - StereotypeApplicationMatcherConfigurationFactory getStereotypeApplicationMatcherConfigurationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationImpl Stereotype Application Matcher Configuration}' class. - * - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationImpl - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationPackageImpl#getStereotypeApplicationMatcherConfiguration() - * @generated - */ - EClass STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION = eINSTANCE.getStereotypeApplicationMatcherConfiguration(); - - /** - * The meta object literal for the 'Stereotypes Qualified Names' attribute list feature. - * - * - * @generated - */ - EAttribute STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES = eINSTANCE.getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames(); - - /** - * The meta object literal for the 'Profile Uri' attribute feature. - * - * - * @generated - */ - EAttribute STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI = eINSTANCE.getStereotypeApplicationMatcherConfiguration_ProfileUri(); - - } - -} //StereotypeApplicationMatcherConfigurationPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationFactoryImpl.java deleted file mode 100644 index f379028f92a..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationFactoryImpl.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.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.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class StereotypeApplicationMatcherConfigurationFactoryImpl extends EFactoryImpl implements StereotypeApplicationMatcherConfigurationFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static StereotypeApplicationMatcherConfigurationFactory init() { - try { - StereotypeApplicationMatcherConfigurationFactory theStereotypeApplicationMatcherConfigurationFactory = (StereotypeApplicationMatcherConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(StereotypeApplicationMatcherConfigurationPackage.eNS_URI); - if (theStereotypeApplicationMatcherConfigurationFactory != null) { - return theStereotypeApplicationMatcherConfigurationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new StereotypeApplicationMatcherConfigurationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION: return createStereotypeApplicationMatcherConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public StereotypeApplicationMatcherConfiguration createStereotypeApplicationMatcherConfiguration() { - StereotypeApplicationMatcherConfigurationImpl stereotypeApplicationMatcherConfiguration = new StereotypeApplicationMatcherConfigurationImpl(); - return stereotypeApplicationMatcherConfiguration; - } - - /** - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationPackage getStereotypeApplicationMatcherConfigurationPackage() { - return (StereotypeApplicationMatcherConfigurationPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static StereotypeApplicationMatcherConfigurationPackage getPackage() { - return StereotypeApplicationMatcherConfigurationPackage.eINSTANCE; - } - -} //StereotypeApplicationMatcherConfigurationFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationImpl.java deleted file mode 100644 index e22db10c9fb..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationImpl.java +++ /dev/null @@ -1,217 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.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.util.EDataTypeUniqueEList; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.AbstractMatcherConfigurationImpl; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage; - -/** - * - * An implementation of the model object 'Stereotype Application Matcher Configuration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationImpl#getStereotypesQualifiedNames Stereotypes Qualified Names}
  • - *
  • {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl.StereotypeApplicationMatcherConfigurationImpl#getProfileUri Profile Uri}
  • - *
- * - * @generated - */ -public class StereotypeApplicationMatcherConfigurationImpl extends AbstractMatcherConfigurationImpl implements StereotypeApplicationMatcherConfiguration { - /** - * The cached value of the '{@link #getStereotypesQualifiedNames() Stereotypes Qualified Names}' attribute list. - * - * - * @see #getStereotypesQualifiedNames() - * @generated - * @ordered - */ - protected EList stereotypesQualifiedNames; - - /** - * The default value of the '{@link #getProfileUri() Profile Uri}' attribute. - * - * - * @see #getProfileUri() - * @generated - * @ordered - */ - protected static final String PROFILE_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProfileUri() Profile Uri}' attribute. - * - * - * @see #getProfileUri() - * @generated - * @ordered - */ - protected String profileUri = PROFILE_URI_EDEFAULT; - - /** - * - * - * @generated - */ - protected StereotypeApplicationMatcherConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return StereotypeApplicationMatcherConfigurationPackage.Literals.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION; - } - - /** - * - * - * @generated - */ - public EList getStereotypesQualifiedNames() { - if (stereotypesQualifiedNames == null) { - stereotypesQualifiedNames = new EDataTypeUniqueEList(String.class, this, StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES); - } - return stereotypesQualifiedNames; - } - - /** - * - * - * @generated - */ - public String getProfileUri() { - return profileUri; - } - - /** - * - * - * @generated - */ - public void setProfileUri(String newProfileUri) { - String oldProfileUri = profileUri; - profileUri = newProfileUri; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI, oldProfileUri, profileUri)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: - return getStereotypesQualifiedNames(); - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: - return getProfileUri(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: - getStereotypesQualifiedNames().clear(); - getStereotypesQualifiedNames().addAll((Collection)newValue); - return; - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: - setProfileUri((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: - getStereotypesQualifiedNames().clear(); - return; - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: - setProfileUri(PROFILE_URI_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: - return stereotypesQualifiedNames != null && !stereotypesQualifiedNames.isEmpty(); - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: - return PROFILE_URI_EDEFAULT == null ? profileUri != null : !PROFILE_URI_EDEFAULT.equals(profileUri); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (stereotypesQualifiedNames: "); - result.append(stereotypesQualifiedNames); - result.append(", profileUri: "); - result.append(profileUri); - result.append(')'); - return result.toString(); - } - -} //StereotypeApplicationMatcherConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationPackageImpl.java deleted file mode 100644 index 80e37c845d9..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/impl/StereotypeApplicationMatcherConfigurationPackageImpl.java +++ /dev/null @@ -1,210 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class StereotypeApplicationMatcherConfigurationPackageImpl extends EPackageImpl implements StereotypeApplicationMatcherConfigurationPackage { - /** - * - * - * @generated - */ - private EClass stereotypeApplicationMatcherConfigurationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage#eNS_URI - * @see #init() - * @generated - */ - private StereotypeApplicationMatcherConfigurationPackageImpl() { - super(eNS_URI, StereotypeApplicationMatcherConfigurationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link StereotypeApplicationMatcherConfigurationPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static StereotypeApplicationMatcherConfigurationPackage init() { - if (isInited) return (StereotypeApplicationMatcherConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(StereotypeApplicationMatcherConfigurationPackage.eNS_URI); - - // Obtain or create and register package - StereotypeApplicationMatcherConfigurationPackageImpl theStereotypeApplicationMatcherConfigurationPackage = (StereotypeApplicationMatcherConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof StereotypeApplicationMatcherConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new StereotypeApplicationMatcherConfigurationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - ElementtypesconfigurationsPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theStereotypeApplicationMatcherConfigurationPackage.createPackageContents(); - - // Initialize created meta-data - theStereotypeApplicationMatcherConfigurationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theStereotypeApplicationMatcherConfigurationPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(StereotypeApplicationMatcherConfigurationPackage.eNS_URI, theStereotypeApplicationMatcherConfigurationPackage); - return theStereotypeApplicationMatcherConfigurationPackage; - } - - /** - * - * - * @generated - */ - public EClass getStereotypeApplicationMatcherConfiguration() { - return stereotypeApplicationMatcherConfigurationEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames() { - return (EAttribute)stereotypeApplicationMatcherConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getStereotypeApplicationMatcherConfiguration_ProfileUri() { - return (EAttribute)stereotypeApplicationMatcherConfigurationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationFactory getStereotypeApplicationMatcherConfigurationFactory() { - return (StereotypeApplicationMatcherConfigurationFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - stereotypeApplicationMatcherConfigurationEClass = createEClass(STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION); - createEAttribute(stereotypeApplicationMatcherConfigurationEClass, STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES); - createEAttribute(stereotypeApplicationMatcherConfigurationEClass, STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ElementtypesconfigurationsPackage theElementtypesconfigurationsPackage = (ElementtypesconfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementtypesconfigurationsPackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - stereotypeApplicationMatcherConfigurationEClass.getESuperTypes().add(theElementtypesconfigurationsPackage.getAbstractMatcherConfiguration()); - - // Initialize classes, features, and operations; add parameters - initEClass(stereotypeApplicationMatcherConfigurationEClass, StereotypeApplicationMatcherConfiguration.class, "StereotypeApplicationMatcherConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames(), theEcorePackage.getEString(), "stereotypesQualifiedNames", null, 1, -1, StereotypeApplicationMatcherConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStereotypeApplicationMatcherConfiguration_ProfileUri(), ecorePackage.getEString(), "profileUri", null, 0, 1, StereotypeApplicationMatcherConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //StereotypeApplicationMatcherConfigurationPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java deleted file mode 100644 index 998b14c66e5..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java +++ /dev/null @@ -1,105 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.provider; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.ElementTypesConfigurationsEditPlugin; - -/** - * This is the central singleton for the StereotypeApplicationMatcherConfiguration edit plugin. - * - * - * @generated - */ -public final class StereotypeApplicationMatcherConfigurationEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final StereotypeApplicationMatcherConfigurationEditPlugin INSTANCE = new StereotypeApplicationMatcherConfigurationEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationEditPlugin() { - super - (new ResourceLocator [] { - EcoreEditPlugin.INSTANCE, - ElementTypesConfigurationsEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProvider.java deleted file mode 100644 index 6c74ede345c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProvider.java +++ /dev/null @@ -1,181 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.provider.AbstractMatcherConfigurationItemProvider; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration} object. - * - * - * @generated - */ -public class StereotypeApplicationMatcherConfigurationItemProvider extends AbstractMatcherConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addStereotypesQualifiedNamesPropertyDescriptor(object); - addProfileUriPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Stereotypes Qualified Names feature. - * - * - * @generated - */ - protected void addStereotypesQualifiedNamesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StereotypeApplicationMatcherConfiguration_stereotypesQualifiedNames_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_StereotypeApplicationMatcherConfiguration_stereotypesQualifiedNames_feature", "_UI_StereotypeApplicationMatcherConfiguration_type"), - StereotypeApplicationMatcherConfigurationPackage.Literals.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Profile Uri feature. - * - * - * @generated - */ - protected void addProfileUriPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StereotypeApplicationMatcherConfiguration_profileUri_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_StereotypeApplicationMatcherConfiguration_profileUri_feature", "_UI_StereotypeApplicationMatcherConfiguration_type"), - StereotypeApplicationMatcherConfigurationPackage.Literals.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns StereotypeApplicationMatcherConfiguration.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/StereotypeApplicationMatcherConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((StereotypeApplicationMatcherConfiguration)object).getProfileUri(); - return label == null || label.length() == 0 ? - getString("_UI_StereotypeApplicationMatcherConfiguration_type") : - getString("_UI_StereotypeApplicationMatcherConfiguration_type") + " " + label; - } - - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(StereotypeApplicationMatcherConfiguration.class)) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return StereotypeApplicationMatcherConfigurationEditPlugin.INSTANCE; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProviderAdapterFactory.java deleted file mode 100644 index 1e30d1c9948..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/provider/StereotypeApplicationMatcherConfigurationItemProviderAdapterFactory.java +++ /dev/null @@ -1,345 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -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.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.edit.command.CommandParameter; - -import org.eclipse.emf.edit.domain.EditingDomain; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ContainerConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.util.ElementtypesconfigurationsSwitch; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationFactory; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util.StereotypeApplicationMatcherConfigurationAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class StereotypeApplicationMatcherConfigurationItemProviderAdapterFactory extends StereotypeApplicationMatcherConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration} instances. - * - * - * @generated - */ - protected StereotypeApplicationMatcherConfigurationItemProvider stereotypeApplicationMatcherConfigurationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createStereotypeApplicationMatcherConfigurationAdapter() { - if (stereotypeApplicationMatcherConfigurationItemProvider == null) { - stereotypeApplicationMatcherConfigurationItemProvider = new StereotypeApplicationMatcherConfigurationItemProvider(this); - } - - return stereotypeApplicationMatcherConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - public void dispose() { - if (stereotypeApplicationMatcherConfigurationItemProvider != null) stereotypeApplicationMatcherConfigurationItemProvider.dispose(); - } - - /** - * A child creation extender for the {@link ElementtypesconfigurationsPackage}. - * - * - * @generated - */ - public static class ElementtypesconfigurationsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends ElementtypesconfigurationsSwitch { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - /** - * - * - * @generated - */ - @Override - public Object caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, - StereotypeApplicationMatcherConfigurationFactory.eINSTANCE.createStereotypeApplicationMatcherConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - @Override - public Object caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, - StereotypeApplicationMatcherConfigurationFactory.eINSTANCE.createStereotypeApplicationMatcherConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - @Override - public Object caseContainerConfiguration(ContainerConfiguration object) { - newChildDescriptors.add - (createChildParameter - (ElementtypesconfigurationsPackage.Literals.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, - StereotypeApplicationMatcherConfigurationFactory.eINSTANCE.createStereotypeApplicationMatcherConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - public ResourceLocator getResourceLocator() { - return StereotypeApplicationMatcherConfigurationEditPlugin.INSTANCE; - } - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationAdapterFactory.java deleted file mode 100644 index 0d603c5e7d4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationAdapterFactory.java +++ /dev/null @@ -1,150 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.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.elementtypesconfigurations.AbstractMatcherConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage - * @generated - */ -public class StereotypeApplicationMatcherConfigurationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static StereotypeApplicationMatcherConfigurationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationAdapterFactory() { - if (modelPackage == null) { - modelPackage = StereotypeApplicationMatcherConfigurationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected StereotypeApplicationMatcherConfigurationSwitch modelSwitch = - new StereotypeApplicationMatcherConfigurationSwitch() { - @Override - public Adapter caseStereotypeApplicationMatcherConfiguration(StereotypeApplicationMatcherConfiguration object) { - return createStereotypeApplicationMatcherConfigurationAdapter(); - } - @Override - public Adapter caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { - return createAbstractMatcherConfigurationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @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.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration Stereotype Application Matcher Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration - * @generated - */ - public Adapter createStereotypeApplicationMatcherConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration Abstract Matcher Configuration}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration - * @generated - */ - public Adapter createAbstractMatcherConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //StereotypeApplicationMatcherConfigurationAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceFactoryImpl.java deleted file mode 100644 index 00db4a23764..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceFactoryImpl.java +++ /dev/null @@ -1,51 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * - * The Resource Factory associated with the package. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util.StereotypeApplicationMatcherConfigurationResourceImpl - * @generated - */ -public class StereotypeApplicationMatcherConfigurationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * - * @generated - */ - @Override - public Resource createResource(URI uri) { - Resource result = new StereotypeApplicationMatcherConfigurationResourceImpl(uri); - return result; - } - -} //StereotypeApplicationMatcherConfigurationResourceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceImpl.java deleted file mode 100644 index 4f2f11dc978..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationResourceImpl.java +++ /dev/null @@ -1,38 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util; - -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * - * The Resource associated with the package. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util.StereotypeApplicationMatcherConfigurationResourceFactoryImpl - * @generated - */ -public class StereotypeApplicationMatcherConfigurationResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * - * @param uri the URI of the new resource. - * @generated - */ - public StereotypeApplicationMatcherConfigurationResourceImpl(URI uri) { - super(uri); - } - -} //StereotypeApplicationMatcherConfigurationResourceImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationSwitch.java deleted file mode 100644 index 1511afa9ce0..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationSwitch.java +++ /dev/null @@ -1,138 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.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.elementtypesconfigurations.AbstractMatcherConfiguration; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX 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. - * - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage - * @generated - */ -public class StereotypeApplicationMatcherConfigurationSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static StereotypeApplicationMatcherConfigurationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationSwitch() { - if (modelPackage == null) { - modelPackage = StereotypeApplicationMatcherConfigurationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case StereotypeApplicationMatcherConfigurationPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION: { - StereotypeApplicationMatcherConfiguration stereotypeApplicationMatcherConfiguration = (StereotypeApplicationMatcherConfiguration)theEObject; - T result = caseStereotypeApplicationMatcherConfiguration(stereotypeApplicationMatcherConfiguration); - if (result == null) result = caseAbstractMatcherConfiguration(stereotypeApplicationMatcherConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Stereotype Application Matcher Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Stereotype Application Matcher Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStereotypeApplicationMatcherConfiguration(StereotypeApplicationMatcherConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //StereotypeApplicationMatcherConfigurationSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationXMLProcessor.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationXMLProcessor.java deleted file mode 100644 index 45f3f423e53..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/util/StereotypeApplicationMatcherConfigurationXMLProcessor.java +++ /dev/null @@ -1,60 +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: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.resource.Resource; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfigurationPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * - * @generated - */ -public class StereotypeApplicationMatcherConfigurationXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * - * @generated - */ - public StereotypeApplicationMatcherConfigurationXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - StereotypeApplicationMatcherConfigurationPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the StereotypeApplicationMatcherConfigurationResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new StereotypeApplicationMatcherConfigurationResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new StereotypeApplicationMatcherConfigurationResourceFactoryImpl()); - } - return registrations; - } - -} //StereotypeApplicationMatcherConfigurationXMLProcessor diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/Activator.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/Activator.java deleted file mode 100644 index a6a13edb45d..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/Activator.java +++ /dev/null @@ -1,78 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations; - -import org.eclipse.papyrus.infra.core.log.LogHelper; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * This is the central singleton for the ApplyStereotypeAdviceConfiguration model plugin. - * - * - * - * @generated - */ -public final class Activator extends AbstractUIPlugin { - - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.elementtypesconfigurations"; //$NON-NLS-1$ - - // The shared instance - private static Activator INSTANCE; - - /** Logging helper */ - 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); - INSTANCE = 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 { - log = null; - INSTANCE = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return INSTANCE; - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceEditHelperAdvice.java deleted file mode 100644 index 14da444df50..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceEditHelperAdvice.java +++ /dev/null @@ -1,216 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; -import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; -import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; -import org.eclipse.papyrus.uml.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest; -import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.NamedElement; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.uml2.uml.Type; -import org.eclipse.uml2.uml.TypedElement; -import org.eclipse.uml2.uml.UMLPackage; - -/** - * advice for the {@link ApplyStereotypeAdviceConfiguration} - */ -public class ApplyStereotypeAdviceEditHelperAdvice extends AbstractEditHelperAdvice { - - - protected ApplyStereotypeAdviceConfiguration configuration; - - - public ApplyStereotypeAdviceEditHelperAdvice(ApplyStereotypeAdviceConfiguration configuration) { - this.configuration = configuration; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean approveRequest(IEditCommandRequest request) { - if (request instanceof CreateElementRequest) { - if (configuration == null) { - return false; - } - if (!(((CreateElementRequest) request).getContainer() instanceof Element)) { - return false; - } - Element container = (Element) ((CreateElementRequest) request).getContainer(); - Package nearestPackage = container.getNearestPackage(); - if (nearestPackage == null) { - return false; - } - List appliedProfiles = nearestPackage.getAllAppliedProfiles(); - if (appliedProfiles == null) { - // no profiles applied, no stereotype can be applied - return false; - } - List appliedProfileNames = new ArrayList(); - for (Profile profile : appliedProfiles) { - appliedProfileNames.add(profile.getQualifiedName()); - } - for (StereotypeToApply stereotypeToApply : configuration.getStereotypesToApply()) { - List requiredProfiles = stereotypeToApply.getRequiredProfiles(); - if (requiredProfiles != null) { - for (String requiredProfile : requiredProfiles) { - if (!appliedProfileNames.contains(requiredProfile)) { - return false; - } - } - } - } - return true; - } - - return true; - } - - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getAfterConfigureCommand(ConfigureRequest request) { - if (configuration == null) { - return null; - } - ICommand resultCommand = null; - // retrieve eobject - EObject elementToConfigure = request.getElementToConfigure(); - if (!(elementToConfigure instanceof Element)) { - return null; - } - - TransactionalEditingDomain editingDomain = request.getEditingDomain(); - if (editingDomain == null) { - return null; - } - // retrieve edit service to get features from configure command - IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure); - if (service == null) { - Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null); - return null; - } - - // for each stereotype, apply stereotype and apply values - for (StereotypeToApply stereotypeToApply : configuration.getStereotypesToApply()) { - Stereotype stereotype = ((Element) elementToConfigure).getApplicableStereotype(stereotypeToApply.getStereotypeQualifiedName()); - - if (stereotype != null) { - - ICommand applyStereotypeCommand = service.getEditCommand(new ApplyStereotypeRequest((Element) elementToConfigure, stereotype, editingDomain)); - - if (resultCommand == null) { - resultCommand = applyStereotypeCommand; - } else { - resultCommand = resultCommand.compose(applyStereotypeCommand); - } - - if (stereotypeToApply.isUpdateName() && elementToConfigure instanceof NamedElement) { - if (((NamedElement) elementToConfigure).getNamespace() != null) { - String newName = NamedElementUtil.getDefaultNameWithIncrementFromBase(stereotype.getName(), ((NamedElement) elementToConfigure).getNamespace().getMembers()); - ICommand renameCommand = service.getEditCommand(new SetRequest(editingDomain, elementToConfigure, UMLPackage.eINSTANCE.getNamedElement_Name(), newName)); - - if (resultCommand == null) { - resultCommand = renameCommand; - } else { - resultCommand = resultCommand.compose(renameCommand); - } - } - } - - // Set values - for (FeatureToSet featureToSet : stereotypeToApply.getFeaturesToSet()) { - // retrieve feature value - ICommand command = getSetStereotypeFeatureValueCommand((Element) elementToConfigure, stereotype, featureToSet.getFeatureName(), featureToSet.getValue(), service, request); - if (command != null) { - if (resultCommand == null) { - resultCommand = command; - } else { - resultCommand = resultCommand.compose(command); - } - } - } - } - - } - - if (resultCommand != null) { - return resultCommand.reduce(); - } - return super.getAfterConfigureCommand(request); - } - - /** - * @param elementToConfigure - * the eobject to configure - * @param name - * the name of the feature to set - * @param value - * the new value of the feature - */ - protected ICommand getSetStereotypeFeatureValueCommand(Element elementToConfigure, Stereotype stereotype, String name, FeatureValue featureValue, IElementEditService service, ConfigureRequest configureRequest) { - if (name == null) { - Activator.log.debug("No feature name has been set."); - return null; - } - if (elementToConfigure.eClass() == null) { - Activator.log.error("Impossible to find EClass from EObject: " + elementToConfigure, null); - return null; - } - - if (configureRequest.getEditingDomain() == null) { - return null; - } - - // retrieve structural feature for the element to configure - TypedElement typedElement = (TypedElement) stereotype.getMember(name, true, UMLPackage.eINSTANCE.getTypedElement()); - if (typedElement == null) { - Activator.log.error("Impossible to find feature " + name + " for eobject " + elementToConfigure, null); - return null; - } - Object value = getStereotypeValue(elementToConfigure, stereotype, typedElement.getType(), featureValue); - - return service.getEditCommand(new SetStereotypeValueRequest(configureRequest.getEditingDomain(), stereotype, (Element) elementToConfigure, name, value)); - } - - - /** - * @param elementToConfigure - * @param stereotype - * @param feature - * @param featureValue - * @return - */ - protected Object getStereotypeValue(Element elementToConfigure, Stereotype stereotype, Type type, FeatureValue featureValue) { - return StereotypeFeatureValueUtils.getValue(elementToConfigure, stereotype, type, featureValue); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceFactory.java deleted file mode 100644 index 6e3a7c3747a..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/ApplyStereotypeAdviceFactory.java +++ /dev/null @@ -1,33 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractAdviceBindingFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.NullEditHelperAdvice; - -public class ApplyStereotypeAdviceFactory extends AbstractAdviceBindingFactory { - - - @Override - protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { - if (adviceConfiguration instanceof ApplyStereotypeAdviceConfiguration) { - IEditHelperAdvice editHelperAdvice = new ApplyStereotypeAdviceEditHelperAdvice((ApplyStereotypeAdviceConfiguration) adviceConfiguration); - return editHelperAdvice; - } - return NullEditHelperAdvice.getInstance(); - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeFeatureValueUtils.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeFeatureValueUtils.java deleted file mode 100644 index 76b5135707a..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/StereotypeFeatureValueUtils.java +++ /dev/null @@ -1,130 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.papyrus.infra.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter.ConverterNotfoundException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.emf.converter.ConverterRegistry; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.util.ApplyStereotypeAdviceConfigurationSwitch; -import org.eclipse.papyrus.uml.tools.utils.PrimitivesTypesUtils; -import org.eclipse.uml2.uml.DataType; -import org.eclipse.uml2.uml.Enumeration; -import org.eclipse.uml2.uml.PrimitiveType; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.uml2.uml.Type; -import org.eclipse.uml2.uml.ValueSpecification; - - -/** - * Utility class to get values from a {@link FeatureValue} - */ -public class StereotypeFeatureValueUtils { - - protected StereotypeFeatureValueUtils() { - // no instanciation, helper class - } - - /** - * Returns the value to set for a given feature of a given element - * - * @param elementToConfigure - * eobject for which feature is set. This must not be null - * @param feature - * {@link EStructuralFeature} to set. This must not be null - * @param valueModel - * configuration of the value, stored in the model - * @return the real value that will be set to the object or null if none could be computed - */ - public static Object getValue(final EObject elementToConfigure, final Stereotype stereotype, final Type type, final FeatureValue featureValue) { - - Object result = new ApplyStereotypeAdviceConfigurationSwitch() { - /** - * {@inheritDoc} - */ - @Override - public Object caseConstantValue(ConstantValue object) { - ValueSpecification valueSpecification = object.getValueInstance(); - - if (valueSpecification == null) { - return null; - } - - try { - if (type instanceof PrimitiveType) { - final PrimitiveType pType = (PrimitiveType) type; - final String name = pType.getName(); - if (PrimitivesTypesUtils.UML_BOOLEAN.equals(name)) { - return ConverterRegistry.getSingleton().convert(boolean.class, valueSpecification); - } else if (PrimitivesTypesUtils.UML_INTEGER.equals(name)) { - return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); - } else if (PrimitivesTypesUtils.UML_REAL.equals(name)) { - return ConverterRegistry.getSingleton().convert(double.class, valueSpecification); - } else if (PrimitivesTypesUtils.UML_STRING.equals(name)) { - return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); - } else if (PrimitivesTypesUtils.UML_UNLIMITED_NATURAL.equals(name)) { - return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); - } else { // custom PrimitiveType - return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); - } - } else if (type instanceof Enumeration) { - return ConverterRegistry.getSingleton().convert(Enumeration.class, valueSpecification); - } else if (type instanceof DataType) {// FIXME manage the data type - return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); - } - } catch (ConverterNotfoundException e) { - Activator.log.error("Impossible to convert " + valueSpecification + " to fit feature type :" + type, e); - } - return super.caseConstantValue(object); - } - - /** - * {@inheritDoc} - */ - @Override - public Object caseQueryExecutionValue(QueryExecutionValue object) { - throw new UnsupportedOperationException("Query execution values resolution has not been implemented yet"); - }; - - /** - * {@inheritDoc} - */ - @Override - public Object caseDynamicValue(DynamicValue object) { - throw new UnsupportedOperationException("Dynamic values resolution has not been implemented yet"); - }; - - /** - * {@inheritDoc} - */ - @Override - public Object caseListValue(ListValue object) { - // resolve one by one all features in the values list of this listvalue - List results = new ArrayList(); - for (FeatureValue value : object.getValues()) { - Object singleResult = getValue(elementToConfigure, stereotype, type, value); - results.add(singleResult); - } - return results; - }; - - }.doSwitch(featureValue); - return result; - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/AbstractProfilingCommand.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/AbstractProfilingCommand.java deleted file mode 100644 index b967dd1822b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/AbstractProfilingCommand.java +++ /dev/null @@ -1,79 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.commands; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.resources.IFile; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.emf.workspace.util.WorkspaceSynchronizer; -import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; - -public abstract class AbstractProfilingCommand extends AbstractTransactionalCommand { - - /** - * Constructor. - * - * @param domain - * @param label - * @param affectedFiles - */ - public AbstractProfilingCommand(TransactionalEditingDomain domain, String label, List affectedFiles) { - super(domain, label, affectedFiles); - } - - protected static List getAffectedFiles(IEditCommandRequest request) { - List result = new ArrayList(); - List elements = request.getElementsToEdit(); - int size; - if (elements != null && ((size = elements.size()) > 0)) { - if (size == 1) { - Resource resource = ((EObject) elements.get(0)).eResource(); - if (resource != null) { - IFile file = WorkspaceSynchronizer.getFile(resource); - if (file != null) { - result.add(file); - } - } - } else { - Map resourcesToFileMap = new HashMap(); - for (int i = 0; i < size; ++i) { - Resource resource = ((EObject) elements.get(i)).eResource(); - if (resource != null) { - Object file = resourcesToFileMap.get(resource); - // if it is in the Map, then it is in the List already as well - if (file == null) { - file = WorkspaceSynchronizer.getFile(resource); - if (file != null) { - resourcesToFileMap.put(resource, file); - result.add(file); - } - } - } - } - } - } - return result; - } - - - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyProfileCommand.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyProfileCommand.java deleted file mode 100644 index 096a2cd00d0..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyProfileCommand.java +++ /dev/null @@ -1,63 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.commands; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; - -public class ApplyProfileCommand extends AbstractProfilingCommand { - - private ApplyProfileRequest request; - - /** - * - * Constructor. - * - * @param request - * @param domain - * @param label - */ - public ApplyProfileCommand(ApplyProfileRequest request, TransactionalEditingDomain domain, String label) { - super(domain, label, getAffectedFiles(request)); - this.request = request; - } - - /** - * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) - * - * @param monitor - * @param info - * @return - * @throws ExecutionException - */ - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - Package pkg = this.request.getUmlPackage(); - Profile profile = this.request.getProfile(); - try { - pkg.applyProfile(profile); - } catch (IllegalArgumentException e) { - return CommandResult.newErrorCommandResult(e); - } - - - return CommandResult.newOKCommandResult(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyStereotypeCommand.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyStereotypeCommand.java deleted file mode 100644 index 197f8068172..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/ApplyStereotypeCommand.java +++ /dev/null @@ -1,63 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.commands; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public class ApplyStereotypeCommand extends AbstractProfilingCommand { - - private ApplyStereotypeRequest request; - - /** - * - * Constructor. - * - * @param request - * @param domain - * @param label - */ - public ApplyStereotypeCommand(ApplyStereotypeRequest request, TransactionalEditingDomain domain, String label) { - super(domain, label, getAffectedFiles(request)); - this.request = request; - } - - /** - * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) - * - * @param monitor - * @param info - * @return - * @throws ExecutionException - */ - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - Element element = this.request.getUmlElement(); - Stereotype stereotype = this.request.getStereotype(); - try { - element.applyStereotype(stereotype); - } catch (IllegalArgumentException e) { - return CommandResult.newErrorCommandResult(e); - } - - - return CommandResult.newOKCommandResult(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/SetStereotypeValueCommand.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/SetStereotypeValueCommand.java deleted file mode 100644 index 2c24d34d04c..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/SetStereotypeValueCommand.java +++ /dev/null @@ -1,65 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.commands; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public class SetStereotypeValueCommand extends AbstractProfilingCommand { - - private SetStereotypeValueRequest request; - - /** - * - * Constructor. - * - * @param request - * @param domain - * @param label - */ - public SetStereotypeValueCommand(SetStereotypeValueRequest request, TransactionalEditingDomain domain, String label) { - super(domain, label, getAffectedFiles(request)); - this.request = request; - } - - /** - * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) - * - * @param monitor - * @param info - * @return - * @throws ExecutionException - */ - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - Element element = this.request.getUmlElement(); - Stereotype stereotype = this.request.getStereotype(); - String propertyName = this.request.getPropertyName(); - Object value = this.request.getValue(); - try { - element.setValue(stereotype, propertyName, value); - } catch (IllegalArgumentException e) { - return CommandResult.newErrorCommandResult(e); - } - - - return CommandResult.newOKCommandResult(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyProfileCommand.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyProfileCommand.java deleted file mode 100644 index 4d1b2c79557..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyProfileCommand.java +++ /dev/null @@ -1,63 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.commands; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; - -public class UnapplyProfileCommand extends AbstractProfilingCommand { - - private UnapplyProfileRequest request; - - /** - * - * Constructor. - * - * @param request - * @param domain - * @param label - */ - public UnapplyProfileCommand(UnapplyProfileRequest request, TransactionalEditingDomain domain, String label) { - super(domain, label, getAffectedFiles(request)); - this.request = request; - } - - /** - * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) - * - * @param monitor - * @param info - * @return - * @throws ExecutionException - */ - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - Package pkg = this.request.getUmlPackage(); - Profile profile = this.request.getProfile(); - try { - pkg.unapplyProfile(profile); - } catch (IllegalArgumentException e) { - return CommandResult.newErrorCommandResult(e); - } - - - return CommandResult.newOKCommandResult(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyStereotypeCommand.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyStereotypeCommand.java deleted file mode 100644 index be159c453c4..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/commands/UnapplyStereotypeCommand.java +++ /dev/null @@ -1,63 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.commands; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public class UnapplyStereotypeCommand extends AbstractProfilingCommand { - - private UnapplyStereotypeRequest request; - - /** - * - * Constructor. - * - * @param request - * @param domain - * @param label - */ - public UnapplyStereotypeCommand(UnapplyStereotypeRequest request, TransactionalEditingDomain domain, String label) { - super(domain, label, getAffectedFiles(request)); - this.request = request; - } - - /** - * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) - * - * @param monitor - * @param info - * @return - * @throws ExecutionException - */ - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - Element element = this.request.getUmlElement(); - Stereotype stereotype = this.request.getStereotype(); - try { - element.unapplyStereotype(stereotype); - } catch (IllegalArgumentException e) { - return CommandResult.newErrorCommandResult(e); - } - - - return CommandResult.newOKCommandResult(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java deleted file mode 100644 index 931cbc9f6c0..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java +++ /dev/null @@ -1,96 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.edithelper; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.gmfdiag.common.helper.DefaultEditHelper; -import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.ApplyProfileCommand; -import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.ApplyStereotypeCommand; -import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.SetStereotypeValueCommand; -import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.UnapplyProfileCommand; -import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.UnapplyStereotypeCommand; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest; - -public class DefaultUMLEditHelper extends DefaultEditHelper { - - /** - * @see org.eclipse.papyrus.infra.gmfdiag.common.helper.DefaultEditHelper#getInsteadCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) - * - * @param req - * @return - */ - @Override - protected ICommand getInsteadCommand(IEditCommandRequest req) { - - if (req instanceof ApplyProfileRequest) { - return getApplyProfileCommand((ApplyProfileRequest) req); - } else if (req instanceof UnapplyProfileRequest) { - return getUnapplyProfileCommand((UnapplyProfileRequest) req); - } else if (req instanceof ApplyStereotypeRequest) { - return getApplyStereotypeCommand((ApplyStereotypeRequest) req); - } else if (req instanceof UnapplyStereotypeRequest) { - return getUnapplyStereotypeCommand((UnapplyStereotypeRequest) req); - } else if (req instanceof SetStereotypeValueRequest) { - return getSetStereotypeValueCommand((SetStereotypeValueRequest) req); - } - - return super.getInsteadCommand(req); - } - - /** - * @param req - * @return - */ - protected ICommand getUnapplyProfileCommand(UnapplyProfileRequest req) { - return new UnapplyProfileCommand(req, req.getEditingDomain(), req.getLabel()); - } - - /** - * @param req - * @return - */ - protected ICommand getApplyProfileCommand(ApplyProfileRequest req) { - return new ApplyProfileCommand(req, req.getEditingDomain(), req.getLabel()); - } - - /** - * @param req - * @return - */ - protected ICommand getUnapplyStereotypeCommand(UnapplyStereotypeRequest req) { - return new UnapplyStereotypeCommand(req, req.getEditingDomain(), req.getLabel()); - } - - /** - * @param req - * @return - */ - protected ICommand getApplyStereotypeCommand(ApplyStereotypeRequest req) { - return new ApplyStereotypeCommand(req, req.getEditingDomain(), req.getLabel()); - } - - /** - * @param req - * @return - */ - protected ICommand getSetStereotypeValueCommand(SetStereotypeValueRequest req) { - return new SetStereotypeValueCommand(req, req.getEditingDomain(), req.getLabel()); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelperAdvice.java deleted file mode 100644 index 4d3f1a18c0f..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelperAdvice.java +++ /dev/null @@ -1,152 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.edithelper; - -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest; - -public class DefaultUMLEditHelperAdvice extends AbstractEditHelperAdvice { - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getBeforeEditCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) - * - * @param request - * @return - */ - @Override - public ICommand getBeforeEditCommand(IEditCommandRequest req) { - if (req instanceof ApplyProfileRequest) { - return getBeforeApplyProfileCommand((ApplyProfileRequest) req); - } else if (req instanceof UnapplyStereotypeRequest) { - return getBeforeUnapplyProfileCommand((UnapplyStereotypeRequest) req); - } else if (req instanceof ApplyStereotypeRequest) { - return getBeforeApplyStereotypeCommand((ApplyStereotypeRequest) req); - } else if (req instanceof UnapplyProfileRequest) { - return getBeforeUnapplyStereotypeCommand((UnapplyProfileRequest) req); - } else if (req instanceof SetStereotypeValueRequest) { - return getBeforeSetValueCommand((SetStereotypeValueRequest) req); - } - - return super.getBeforeEditCommand(req); - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterEditCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) - * - * @param request - * @return - */ - @Override - public ICommand getAfterEditCommand(IEditCommandRequest req) { - if (req instanceof ApplyProfileRequest) { - return getAfterApplyProfileCommand((ApplyProfileRequest) req); - } else if (req instanceof UnapplyStereotypeRequest) { - return getAfterUnapplyProfileCommand((UnapplyStereotypeRequest) req); - } else if (req instanceof ApplyStereotypeRequest) { - return getAfterApplyStereotypeCommand((ApplyStereotypeRequest) req); - } else if (req instanceof UnapplyProfileRequest) { - return getAfterUnapplyStereotypeCommand((UnapplyProfileRequest) req); - } else if (req instanceof SetStereotypeValueRequest) { - return getAfterSetValueCommand((SetStereotypeValueRequest) req); - } - - return super.getAfterEditCommand(req); - } - - /** - * @param req - * @return - */ - protected ICommand getBeforeUnapplyProfileCommand(UnapplyStereotypeRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getBeforeApplyProfileCommand(ApplyProfileRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getBeforeUnapplyStereotypeCommand(UnapplyProfileRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getBeforeApplyStereotypeCommand(ApplyStereotypeRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getAfterUnapplyProfileCommand(UnapplyStereotypeRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getAfterApplyProfileCommand(ApplyProfileRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getAfterUnapplyStereotypeCommand(UnapplyProfileRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getAfterApplyStereotypeCommand(ApplyStereotypeRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getBeforeSetValueCommand(SetStereotypeValueRequest req) { - return null; - } - - /** - * @param req - * @return - */ - protected ICommand getAfterSetValueCommand(SetStereotypeValueRequest req) { - return null; - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRule.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRule.java deleted file mode 100644 index 9509e98a5e1..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/invariantstereotyperuleconfiguration/InvariantStereotypeRule.java +++ /dev/null @@ -1,193 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.invariantstereotyperuleconfiguration; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule.AbstractUmlInvariantRule; -import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; -import org.eclipse.uml2.uml.Stereotype; - -public class InvariantStereotypeRule extends AbstractUmlInvariantRule { - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.IInvariantRule#matches(org.eclipse.emf.ecore.EObject) - * - * @param eObject - * @return - */ - public boolean matches(EObject eObject) { - if (!(eObject instanceof Element)) { - return false; - } - - String stereotypeQualifiedName = invariantRuleConfiguration.getStereotypeQualifiedName(); - if (stereotypeQualifiedName == null) { // to avoid null pointers - return false; - } - Stereotype appliedStereotype = ((Element) eObject).getAppliedStereotype(stereotypeQualifiedName); - if (appliedStereotype != null) { // one has been found, no need to get further - return true; - } else if (!invariantRuleConfiguration.isStrict()) { // the stereotype does not match perfectly, but one of the applied stereotypes on the element could match if not strict - for (Stereotype stereotype : ((Element) eObject).getAppliedStereotypes()) { - for (Stereotype superStereotype : StereotypeUtil.getAllSuperStereotypes(stereotype)) { - if (stereotypeQualifiedName.equals(superStereotype.getQualifiedName())) { - return true; // there is a match in the super stereotypes. Finish here, element matches - } - } - } - } - return false; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.AbstractInvariantRule#approveMoveRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType type, MoveRequest request) { - return true; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.AbstractInvariantRule#approveSetRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType type, SetRequest request) { - return true; - } - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.AbstractInvariantRule#approveCreationRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType type, CreateElementRequest request) { - // check that the required profile is present. - String requiredProfileName = invariantRuleConfiguration.getRequiredProfile(); - if (requiredProfileName != null) { - // check target - EObject container = request.getContainer(); - if (!(container instanceof Element)) { - return false; - } - Package nearestPackage = ((Element) container).getNearestPackage(); - if (nearestPackage == null) { - return false; - } - Profile appliedProfile = nearestPackage.getAppliedProfile(requiredProfileName, true); - return appliedProfile != null; - } - - return true; - } - - /** - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule.AbstractUmlInvariantRule#approveApplyStereotypeRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveApplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, ApplyStereotypeRequest request) { - return true; - } - - /** - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule.AbstractUmlInvariantRule#approveUnapplyStereotypeRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveUnapplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, UnapplyStereotypeRequest request) { - - if (request.getStereotype().getQualifiedName().equals(this.invariantRuleConfiguration.getStereotypeQualifiedName())) { - return false; - } - return true; - } - - /** - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule.AbstractUmlInvariantRule#approveApplyProfileRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveApplyProfileRequest(ConfiguredHintedSpecializationElementType type, ApplyProfileRequest request) { - return true; - } - - /** - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule.AbstractUmlInvariantRule#approveUnapplyProfileRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveUnapplyProfileRequest(ConfiguredHintedSpecializationElementType type, UnapplyProfileRequest request) { - String requiredProfileName = invariantRuleConfiguration.getRequiredProfile(); - - if (requiredProfileName.equals(request.getProfile().getQualifiedName())) { - return false; - } - return true; - } - - /** - * @see org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule.AbstractUmlInvariantRule#approveSetStereotypeValueRequest(org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType, - * org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest) - * - * @param type - * @param request - * @return - */ - @Override - protected boolean approveSetStereotypeValueRequest(ConfiguredHintedSpecializationElementType type, SetStereotypeValueRequest request) { - return true; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractProfileRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractProfileRequest.java deleted file mode 100644 index bcca470441d..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractProfileRequest.java +++ /dev/null @@ -1,90 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.emf.type.core.EditHelperContext; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; - -public abstract class AbstractProfileRequest extends AbstractEditCommandRequest { - - private org.eclipse.uml2.uml.Package umlPackage; - private Profile profile; - - - public AbstractProfileRequest(TransactionalEditingDomain editingDomain, org.eclipse.uml2.uml.Package umlPackage, Profile profile) { - super(editingDomain); - this.umlPackage = umlPackage; - this.profile = profile; - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest#getEditHelperContext() - * - * @return - */ - public Object getEditHelperContext() { - IClientContext context = getClientContext(); - - if (context == null) { - return umlPackage; - } else { - return new EditHelperContext(umlPackage, context); - } - } - - /** - * @return the umlPackage - */ - public org.eclipse.uml2.uml.Package getUmlPackage() { - return umlPackage; - } - - /** - * @param umlPackage - * the umlPackage to set - */ - public void setUmlPackage(org.eclipse.uml2.uml.Package umlPackage) { - this.umlPackage = umlPackage; - } - - /** - * @return the profile - */ - public Profile getProfile() { - return profile; - } - - /** - * @param profile - * the profile to set - */ - public void setProfile(Profile profile) { - this.profile = profile; - } - - public List getElementsToEdit() { - if (umlPackage != null) { - return Collections.singletonList(umlPackage); - } - - return Collections.emptyList(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractStereotypeRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractStereotypeRequest.java deleted file mode 100644 index e07a1ac5f83..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/AbstractStereotypeRequest.java +++ /dev/null @@ -1,88 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.emf.type.core.EditHelperContext; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public abstract class AbstractStereotypeRequest extends AbstractEditCommandRequest { - private Element umlElement; - private Stereotype stereotype; - - public AbstractStereotypeRequest(TransactionalEditingDomain editingDomain, Element umlElement, Stereotype stereotype) { - super(editingDomain); - this.umlElement = umlElement; - this.stereotype = stereotype; - } - - /** - * @see org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest#getEditHelperContext() - * - * @return - */ - public Object getEditHelperContext() { - IClientContext context = getClientContext(); - - if (context == null) { - return umlElement; - } else { - return new EditHelperContext(umlElement, context); - } - } - - /** - * @return the umlElement - */ - public Element getUmlElement() { - return umlElement; - } - - /** - * @param umlElement - * the umlElement to set - */ - public void setUmlElement(Element umlElement) { - this.umlElement = umlElement; - } - - /** - * @return the stereotype - */ - public Stereotype getStereotype() { - return stereotype; - } - - /** - * @param stereotype - * the stereotype to set - */ - public void setStereotype(Stereotype stereotype) { - this.stereotype = stereotype; - } - - public List getElementsToEdit() { - if (umlElement != null) { - return Collections.singletonList(umlElement); - } - - return Collections.emptyList(); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyProfileRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyProfileRequest.java deleted file mode 100644 index 8786934fca6..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyProfileRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; - -public class ApplyProfileRequest extends AbstractProfileRequest { - - /** - * Constructor. - * - * @param umlPackage - * @param profile - * @param editingDomain - */ - public ApplyProfileRequest(TransactionalEditingDomain editingDomain, Package umlPackage, Profile profile) { - super(editingDomain, umlPackage, profile); - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyStereotypeRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyStereotypeRequest.java deleted file mode 100644 index 675d4fd5730..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/ApplyStereotypeRequest.java +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public class ApplyStereotypeRequest extends AbstractStereotypeRequest { - - /** - * Constructor. - * - * @param umlElement - * @param stereotype - * @param editingDomain - */ - public ApplyStereotypeRequest(Element umlElement, Stereotype stereotype, TransactionalEditingDomain editingDomain) { - super(editingDomain, umlElement, stereotype); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/SetStereotypeValueRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/SetStereotypeValueRequest.java deleted file mode 100644 index 3f40328ba62..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/SetStereotypeValueRequest.java +++ /dev/null @@ -1,111 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.emf.type.core.EditHelperContext; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public class SetStereotypeValueRequest extends AbstractEditCommandRequest { - - - private String propertyName; - - private Element umlElement; - - private Stereotype stereotype; - - private Object value; - - - public SetStereotypeValueRequest(TransactionalEditingDomain editingDomain, Stereotype stereotype, Element elementToEdit, String propertyName, Object value) { - super(editingDomain); - this.umlElement = elementToEdit; - this.propertyName = propertyName; - this.value = value; - this.stereotype = stereotype; - } - - /** - * @return the stereotype - */ - public Stereotype getStereotype() { - return stereotype; - } - - /** - * @param stereotype - * the stereotype to set - */ - public void setStereotype(Stereotype stereotype) { - this.stereotype = stereotype; - } - - public Object getValue() { - return value; - } - - /** - * @param value - * the value to set - */ - public void setValue(Object value) { - this.value = value; - } - - public String getPropertyName() { - return propertyName; - } - - /** - * @param propertyName - * the propertyName to set - */ - public void setPropertyName(String propertyName) { - this.propertyName = propertyName; - } - - - public List getElementsToEdit() { - if (umlElement != null) { - return Collections.singletonList(umlElement); - } - - return Collections.emptyList(); - } - - - public Object getEditHelperContext() { - IClientContext context = getClientContext(); - - if (context == null) { - return umlElement; - } else { - return new EditHelperContext(umlElement, context); - } - } - - /** - * @return the umlElement - */ - public Element getUmlElement() { - return umlElement; - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyProfileRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyProfileRequest.java deleted file mode 100644 index ddde7b8ca8e..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyProfileRequest.java +++ /dev/null @@ -1,26 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.uml2.uml.Package; -import org.eclipse.uml2.uml.Profile; - -public class UnapplyProfileRequest extends AbstractProfileRequest { - - public UnapplyProfileRequest(Package umlPackage, Profile profile, TransactionalEditingDomain editingDomain) { - super(editingDomain, umlPackage, profile); - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyStereotypeRequest.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyStereotypeRequest.java deleted file mode 100644 index d2893c8cd1b..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/requests/UnapplyStereotypeRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.elementtypesconfigurations.requests; - -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Stereotype; - -public class UnapplyStereotypeRequest extends AbstractStereotypeRequest { - - /** - * Constructor. - * - * @param umlPackage - * @param profile - * @param editingDomain - */ - public UnapplyStereotypeRequest(Element umlElement, Stereotype stereotype, TransactionalEditingDomain editingDomain) { - super(editingDomain, umlElement, stereotype); - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceEditHelperAdvice.java deleted file mode 100644 index 1b0234dc73a..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceEditHelperAdvice.java +++ /dev/null @@ -1,116 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration; - -import java.util.Arrays; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.emf.workspace.util.WorkspaceSynchronizer; -import org.eclipse.gmf.runtime.common.core.command.CommandResult; -import org.eclipse.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; -import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; -import org.eclipse.papyrus.infra.widgets.creation.ReferenceValueFactory; -import org.eclipse.papyrus.uml.elementtypesconfigurations.Activator; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.properties.modelelement.UMLModelElement; -import org.eclipse.swt.widgets.Display; -import org.eclipse.uml2.uml.Element; - -/** - * advice for the {@link ApplyStereotypeAdviceConfiguration} - */ -public class SetTypeAdviceEditHelperAdvice extends AbstractEditHelperAdvice { - - protected SetTypeAdviceConfiguration configuration; - - public SetTypeAdviceEditHelperAdvice(SetTypeAdviceConfiguration configuration) { - this.configuration = configuration; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean approveRequest(IEditCommandRequest request) { - return super.approveRequest(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { - return super.getBeforeConfigureCommand(request); - } - - /** - * {@inheritDoc} - */ - @Override - protected ICommand getAfterConfigureCommand(ConfigureRequest request) { - if (configuration == null) { - return null; - } - ICommand resultCommand = null; - // retrieve eobject - final EObject elementToConfigure = request.getElementToConfigure(); - if (!(elementToConfigure instanceof Element)) { - return null; - } - - final TransactionalEditingDomain editingDomain = request.getEditingDomain(); - if (editingDomain == null) { - return null; - } - // retrieve edit service to get features from configure command - IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure); - if (service == null) { - Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null); - return null; - } - - resultCommand = new AbstractTransactionalCommand(editingDomain, "Editing type", Arrays.asList((WorkspaceSynchronizer.getFile(elementToConfigure.eResource())))) { - - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - UMLModelElement umlModelElement = new UMLModelElement(elementToConfigure, editingDomain); - ReferenceValueFactory factory = umlModelElement.getValueFactory("type"); - Object elemObject = factory.edit(Display.getDefault().getFocusControl(), elementToConfigure); - return CommandResult.newOKCommandResult(elemObject); - } - }; - - return resultCommand; - } - - /** - * @return - */ - protected EObject getDefaultTypeContainer(ConfigureRequest request) { - if (request.getElementToConfigure() instanceof Element) { - return ((Element) request.getElementToConfigure()).getNearestPackage(); - } - return request.getElementToConfigure().eContainer(); - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceFactory.java deleted file mode 100644 index 5dd70631439..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/settypeadviceconfiguration/SetTypeAdviceFactory.java +++ /dev/null @@ -1,33 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.settypeadviceconfiguration; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.impl.AbstractAdviceBindingFactory; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.NullEditHelperAdvice; - -public class SetTypeAdviceFactory extends AbstractAdviceBindingFactory { - - - @Override - protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { - if (adviceConfiguration instanceof SetTypeAdviceConfiguration) { - IEditHelperAdvice editHelperAdvice = new SetTypeAdviceEditHelperAdvice((SetTypeAdviceConfiguration) adviceConfiguration); - return editHelperAdvice; - } - return NullEditHelperAdvice.getInstance(); - } - - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcher.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcher.java deleted file mode 100644 index d7af16b11f8..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcher.java +++ /dev/null @@ -1,83 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.Model; -import org.eclipse.uml2.uml.Profile; - - -/** - * Matcher for UML elements that should be stereotyped - */ -public class StereotypeApplicationMatcher implements IElementMatcher { - - private List stereotypesQualifiedNames; - private String profileUri; - - public StereotypeApplicationMatcher(StereotypeApplicationMatcherConfiguration configuration) { - this.profileUri = configuration.getProfileUri(); - this.stereotypesQualifiedNames = configuration.getStereotypesQualifiedNames(); - } - - - public boolean matches(EObject eObject) { - if (!(eObject instanceof Element)) { - return false; - } - - Element element = (Element) eObject; - if (element.getAppliedStereotypes().isEmpty()) { - return false; - } - - for (String stereotypeQualifiedName : stereotypesQualifiedNames) { - if (element.getAppliedStereotype(stereotypeQualifiedName) == null) { - return false; - } - } - - if (profileUri != null){ - Model model = element.getModel(); - if (model == null){ - return false; - } - - List appliedProfileByUri = new ArrayList(); - for (Profile appliedProfile : model.getAllAppliedProfiles()) { - appliedProfileByUri.add(appliedProfile.getURI()); - } - - if (!appliedProfileByUri.contains(profileUri)){ - return false; - } - - } - return true; - } - - public List getStereotypesQualifiedNames() { - return stereotypesQualifiedNames; - } - - - public void setStereotypesQualifiedNames(List stereotypeQualifiedName) { - this.stereotypesQualifiedNames = stereotypeQualifiedName; - } - -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherFactory.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherFactory.java deleted file mode 100644 index 0bd33486693..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/stereotypeapplicationmatcherconfiguration/StereotypeApplicationMatcherFactory.java +++ /dev/null @@ -1,30 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration; - -import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; -import org.eclipse.papyrus.infra.elementtypesconfigurations.factories.IMatcherFactory; - - -/** - * Factory to create matcher based on stereotypes applied on the element - */ -public class StereotypeApplicationMatcherFactory implements IMatcherFactory { - - /** - * {@inheritDoc} - */ - public IElementMatcher createElementMatcher(StereotypeApplicationMatcherConfiguration configuration) { - return new StereotypeApplicationMatcher(configuration); - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/umlinvariantrule/AbstractUmlInvariantRule.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/umlinvariantrule/AbstractUmlInvariantRule.java deleted file mode 100644 index 888f4e4cc75..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/umlinvariantrule/AbstractUmlInvariantRule.java +++ /dev/null @@ -1,93 +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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.elementtypesconfigurations.umlinvariantrule; - -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.impl.ConfiguredHintedSpecializationElementType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypeconfiguration.InvariantRuleConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.AbstractInvariantRule; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest; -import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest; - -public abstract class AbstractUmlInvariantRule extends AbstractInvariantRule { - protected T invariantRuleConfiguration; - - /** - * @see org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes.invarianttypeconfiguration.AbstractInvariantRule#approveRequest(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) - * - * @param request - * @return - */ - @Override - public boolean approveRequest(IEditCommandRequest request) { - - List elementsToEdit = request.getElementsToEdit(); - for (Object elementToEdit : elementsToEdit) { - if (elementToEdit instanceof EObject) { - IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) elementToEdit, request.getClientContext()); - - for (IElementType type : types) { - if (type instanceof ConfiguredHintedSpecializationElementType) { - ConfiguredHintedSpecializationElementType configuredHintedSpecializationElementType = (ConfiguredHintedSpecializationElementType) type; - if (request instanceof ApplyStereotypeRequest) { - if (!approveApplyStereotypeRequest(configuredHintedSpecializationElementType, (ApplyStereotypeRequest) request)) { - return false; - } - } else if (request instanceof UnapplyStereotypeRequest) { - if (!approveUnapplyStereotypeRequest(configuredHintedSpecializationElementType, (UnapplyStereotypeRequest) request)) { - return false; - } - } else if (request instanceof ApplyProfileRequest) { - if (!approveApplyProfileRequest(configuredHintedSpecializationElementType, (ApplyProfileRequest) request)) { - return false; - } - } else if (request instanceof UnapplyProfileRequest) { - if (!approveUnapplyProfileRequest(configuredHintedSpecializationElementType, (UnapplyProfileRequest) request)) { - return false; - } - } else if (request instanceof SetStereotypeValueRequest) { - if (!approveSetStereotypeValueRequest(configuredHintedSpecializationElementType, (SetStereotypeValueRequest) request)) { - return false; - } - } - } - } - } - } - - return super.approveRequest(request); - } - - abstract protected boolean approveApplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, ApplyStereotypeRequest request); - - abstract protected boolean approveUnapplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, UnapplyStereotypeRequest request); - - abstract protected boolean approveApplyProfileRequest(ConfiguredHintedSpecializationElementType type, ApplyProfileRequest request); - - abstract protected boolean approveUnapplyProfileRequest(ConfiguredHintedSpecializationElementType type, UnapplyProfileRequest request); - - abstract protected boolean approveSetStereotypeValueRequest(ConfiguredHintedSpecializationElementType type, SetStereotypeValueRequest request); - - @Override - public void init(T invariantRuleConfiguration) { - this.invariantRuleConfiguration = invariantRuleConfiguration; - } -} diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/META-INF/MANIFEST.MF b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/META-INF/MANIFEST.MF index 003d2af13e0..45a58498b8a 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/META-INF/MANIFEST.MF +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/META-INF/MANIFEST.MF @@ -18,7 +18,7 @@ Require-Bundle: org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0", org.eclipse.uml2.uml.edit;bundle-version="4.0.100", org.eclipse.papyrus.infra.tools;bundle-version="1.2.0", org.eclipse.uml2.uml.profile.standard, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0";visibility:=reexport, org.eclipse.papyrus.infra.services.labelprovider;bundle-version="1.2.0", org.eclipse.emf.edit.ui, org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.2.0", diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/model/uml-advice.elementtypesconfigurations b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/model/uml-advice.elementtypesconfigurations index d4d2919cd0d..10cb930aa7b 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/model/uml-advice.elementtypesconfigurations +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/model/uml-advice.elementtypesconfigurations @@ -1,103 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/plugin.xml b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/plugin.xml index bda89345dc7..00436a38341 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/plugin.xml +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/plugin.xml @@ -1591,7 +1591,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/META-INF/MANIFEST.MF b/plugins/uml/org.eclipse.papyrus.uml.service.types/META-INF/MANIFEST.MF index b177d38a85f..2faf54879de 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/META-INF/MANIFEST.MF +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/META-INF/MANIFEST.MF @@ -23,12 +23,12 @@ Require-Bundle: org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0", org.eclipse.uml2.uml.edit;bundle-version="4.0.100", org.eclipse.papyrus.infra.tools;bundle-version="1.2.0", org.eclipse.uml2.uml.profile.standard, - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0";visibility:=reexport, org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.2.0", org.eclipse.uml2.uml;bundle-version="5.1.0", org.eclipse.emf.ecore;bundle-version="2.11.0", org.eclipse.papyrus.infra.ui;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0" + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0" Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy Bundle-Version: 1.2.0.qualifier diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/StandardProfile.elementtypesconfigurations b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/StandardProfile.elementtypesconfigurations index 314a3bbbadd..25feda158db 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/StandardProfile.elementtypesconfigurations +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/StandardProfile.elementtypesconfigurations @@ -1,8 +1,8 @@ - - - - - - - + + + + + + + \ No newline at end of file diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations index 7fcf23dd8ac..4b7c021afb6 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations @@ -1,338 +1,338 @@ - - - - org.eclipse.papyrus.uml.UseCase - - - - - - - - org.eclipse.papyrus.uml.Constraint - - - - - - - org.eclipse.papyrus.uml.StringExpression - - - - - - - org.eclipse.papyrus.uml.ExpansionNode - - - - - - - org.eclipse.papyrus.uml.ExpansionNode - - - - - - - org.eclipse.papyrus.uml.Constraint - - - - - - - org.eclipse.papyrus.uml.Constraint - - - - - - - org.eclipse.papyrus.uml.DurationConstraint - - - - - - - org.eclipse.papyrus.uml.DurationConstraint - - - - - - - org.eclipse.papyrus.uml.TimeConstraint - - - - - - - org.eclipse.papyrus.uml.TimeConstraint - - - - - - - org.eclipse.papyrus.uml.IntervalConstraint - - - - - - - org.eclipse.papyrus.uml.IntervalConstraint - - - - - - org.eclipse.papyrus.uml.Component - - - - - - - org.eclipse.papyrus.uml.Behavior - - - - - - - org.eclipse.papyrus.uml.Behavior - - - - - - - org.eclipse.papyrus.uml.Behavior - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.OutputPin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.InputPin - - - - - - - org.eclipse.papyrus.uml.ActionInputPin - - - - - - - org.eclipse.papyrus.uml.ValuePin - - - - - - - org.eclipse.papyrus.uml.ExecutionEnvironment - - - - - - - org.eclipse.papyrus.uml.Device - - - - - - - org.eclipse.papyrus.uml.Node - - - - + + + + org.eclipse.papyrus.uml.UseCase + + + + + + + + org.eclipse.papyrus.uml.Constraint + + + + + + + org.eclipse.papyrus.uml.StringExpression + + + + + + + org.eclipse.papyrus.uml.ExpansionNode + + + + + + + org.eclipse.papyrus.uml.ExpansionNode + + + + + + + org.eclipse.papyrus.uml.Constraint + + + + + + + org.eclipse.papyrus.uml.Constraint + + + + + + + org.eclipse.papyrus.uml.DurationConstraint + + + + + + + org.eclipse.papyrus.uml.DurationConstraint + + + + + + + org.eclipse.papyrus.uml.TimeConstraint + + + + + + + org.eclipse.papyrus.uml.TimeConstraint + + + + + + + org.eclipse.papyrus.uml.IntervalConstraint + + + + + + + org.eclipse.papyrus.uml.IntervalConstraint + + + + + + org.eclipse.papyrus.uml.Component + + + + + + + org.eclipse.papyrus.uml.Behavior + + + + + + + org.eclipse.papyrus.uml.Behavior + + + + + + + org.eclipse.papyrus.uml.Behavior + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.OutputPin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.InputPin + + + + + + + org.eclipse.papyrus.uml.ActionInputPin + + + + + + + org.eclipse.papyrus.uml.ValuePin + + + + + + + org.eclipse.papyrus.uml.ExecutionEnvironment + + + + + + + org.eclipse.papyrus.uml.Device + + + + + + + org.eclipse.papyrus.uml.Node + + + + \ No newline at end of file diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations index bf91902e2e3..6714208dfcb 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations @@ -1,1101 +1,1101 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.AssociationBase - - - - - - - - - - org.eclipse.papyrus.uml.AssociationClassBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.ClassifierTemplateParameterBase - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - - - - - - - - - - - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.ConnectableElementTemplateParameterBase - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.Dependency - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.ElementImportBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.ExtendBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.InformationFlowBase - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.InstanceSpecification - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.OperationTemplateParameterBase - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.PackageImportBase - - - - - - - - - org.eclipse.papyrus.uml.PackageMergeBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.Property - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.TemplateParameterBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - - org.eclipse.papyrus.uml.Abstraction - - - - - org.eclipse.gmf.runtime.emf.type.core.null - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.AssociationBase + + + + + + + + + + org.eclipse.papyrus.uml.AssociationClassBase + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.ClassifierTemplateParameterBase + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + + + + + + + + + + + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.ConnectableElementTemplateParameterBase + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.Dependency + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.ElementImportBase + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.ExtendBase + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.InformationFlowBase + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.InstanceSpecification + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.OperationTemplateParameterBase + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.PackageImportBase + + + + + + + + + org.eclipse.papyrus.uml.PackageMergeBase + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.Property + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.TemplateParameterBase + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + + org.eclipse.papyrus.uml.Abstraction + + + + + org.eclipse.gmf.runtime.emf.type.core.null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/plugin.xml b/plugins/uml/org.eclipse.papyrus.uml.service.types/plugin.xml index 503a5d74ce4..8a5c60684ff 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/plugin.xml +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/plugin.xml @@ -2,21 +2,21 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ElementEditHelper.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ElementEditHelper.java index ef419d79479..3b61ca68e6f 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ElementEditHelper.java +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ElementEditHelper.java @@ -27,8 +27,8 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; import org.eclipse.papyrus.infra.services.edit.commands.IConfigureCommandFactory; import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; -import org.eclipse.papyrus.uml.elementtypesconfigurations.edithelper.DefaultUMLEditHelper; import org.eclipse.papyrus.uml.tools.model.UmlUtils; +import org.eclipse.papyrus.uml.types.core.edithelper.DefaultUMLEditHelper; import org.eclipse.uml2.uml.Element; /** diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractFeatureRelationshipReorientEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractFeatureRelationshipReorientEditHelperAdvice.java index 31d8d0b33de..9b6d04fa4ff 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractFeatureRelationshipReorientEditHelperAdvice.java +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractFeatureRelationshipReorientEditHelperAdvice.java @@ -12,9 +12,9 @@ import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest; import org.eclipse.gmf.runtime.notation.View; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.utils.ElementTypeRegistryUtils; import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy; import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.types.core.utils.ElementTypeRegistryUtils; abstract public class AbstractFeatureRelationshipReorientEditHelperAdvice extends AbstractEditHelperAdvice { diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/.classpath b/plugins/uml/org.eclipse.papyrus.uml.types.core/.classpath new file mode 100644 index 00000000000..afb9bb46ef3 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/.project b/plugins/uml/org.eclipse.papyrus.uml.types.core/.project new file mode 100644 index 00000000000..6656315c90a --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.uml.types.core + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..4759947300a --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +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 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.ui.prefs b/plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/META-INF/MANIFEST.MF b/plugins/uml/org.eclipse.papyrus.uml.types.core/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..c07477230e8 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/META-INF/MANIFEST.MF @@ -0,0 +1,55 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.papyrus.infra.types;visibility:=reexport, + org.eclipse.uml2.types;visibility:=reexport, + org.eclipse.uml2.uml;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport, + org.eclipse.emf.ecore.edit;visibility:=reexport, + org.eclipse.papyrus.infra.types.edit;visibility:=reexport, + org.eclipse.uml2.uml.edit;visibility:=reexport, + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0", + org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", + org.eclipse.swt, + org.eclipse.papyrus.infra.widgets;bundle-version="1.2.0", + org.eclipse.papyrus.uml.properties;bundle-version="1.2.0", + org.eclipse.papyrus.views.properties;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.rulebased;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.ui.workbench, + org.eclipse.papyrus.infra.emf.types;bundle-version="1.2.0", + org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.2.0";visibility:=reexport, + org.eclipse.papyrus.infra.core;bundle-version="1.2.0" +Export-Package: org.eclipse.papyrus.uml.types.core, + org.eclipse.papyrus.uml.types.core.advices.applystereotype, + org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl, + org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider, + org.eclipse.papyrus.uml.types.core.advices.applystereotype.util, + org.eclipse.papyrus.uml.types.core.advices.settype, + org.eclipse.papyrus.uml.types.core.advices.settype.impl, + org.eclipse.papyrus.uml.types.core.advices.settype.provider, + org.eclipse.papyrus.uml.types.core.advices.settype.util, + org.eclipse.papyrus.uml.types.core.commands, + org.eclipse.papyrus.uml.types.core.edithelper, + org.eclipse.papyrus.uml.types.core.matchers.stereotype, + org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl, + org.eclipse.papyrus.uml.types.core.matchers.stereotype.provider, + org.eclipse.papyrus.uml.types.core.matchers.stereotype.util, + org.eclipse.papyrus.uml.types.core.requests, + org.eclipse.papyrus.uml.types.core.rules, + org.eclipse.papyrus.uml.types.core.rules.invariantstereotype, + org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl, + org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.provider, + org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.provider.InvariantStereotypeRuleConfigurationEditPlugin$Implementation +Bundle-SymbolicName: org.eclipse.papyrus.uml.types.core;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/about.html b/plugins/uml/org.eclipse.papyrus.uml.types.core/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/build.properties b/plugins/uml/org.eclipse.papyrus.uml.types.core/build.properties new file mode 100644 index 00000000000..35e803df3ba --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/build.properties @@ -0,0 +1,6 @@ +output..=bin/ +bin.includes=.,model/,META-INF/,plugin.xml,plugin.properties,about.html,icons/ +jars.compile.order=. +src.includes = about.html +source..=src-gen/,src/ +bin..=bin/ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/Stereotype.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/Stereotype.gif new file mode 100644 index 00000000000..b7ae8706f73 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/Stereotype.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif new file mode 100644 index 00000000000..fcfec345ba6 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAbstractAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif new file mode 100644 index 00000000000..91bb42f1a6b Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif new file mode 100644 index 00000000000..95a741cb08d Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateAdviceBindingConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif new file mode 100644 index 00000000000..fe10b8e7be4 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeActionConfiguration_stereotypesToApply_StereotypeToApply.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif new file mode 100644 index 00000000000..72cfbd01f7f Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateApplyStereotypeAdviceConfiguration_stereotypesToApply_StereotypeToApply.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif new file mode 100644 index 00000000000..d8b262a3bb1 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..95a524524a9 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..3df71fca2c5 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif new file mode 100644 index 00000000000..dac4138ca01 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif new file mode 100644 index 00000000000..755e4ca7a46 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif new file mode 100644 index 00000000000..8ce82e3f6c7 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif new file mode 100644 index 00000000000..fe708946d58 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif new file mode 100644 index 00000000000..4aaad5a4cd7 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif new file mode 100644 index 00000000000..44afafd55da Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif new file mode 100644 index 00000000000..f93c92d061a Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif new file mode 100644 index 00000000000..5ef9a94e8da Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif new file mode 100644 index 00000000000..bbf242da6a9 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif new file mode 100644 index 00000000000..f08356ef9bb Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif new file mode 100644 index 00000000000..37dad615792 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif new file mode 100644 index 00000000000..8ce82e3f6c7 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif new file mode 100644 index 00000000000..4aaad5a4cd7 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif new file mode 100644 index 00000000000..33e07420851 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif new file mode 100644 index 00000000000..e180c4cf7ca Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif new file mode 100644 index 00000000000..f58e5a1f04f Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypeApplicationMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif new file mode 100644 index 00000000000..ff53277ff1c Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateContainerConfiguration_containerMatcherConfiguration_StereotypedElementMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif new file mode 100644 index 00000000000..62e68eb5614 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeActionConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif new file mode 100644 index 00000000000..7b489fdd24d Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_ApplyStereotypeAdviceConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif new file mode 100644 index 00000000000..15cbbadd0dc Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeActionConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif new file mode 100644 index 00000000000..1b149e889ab Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetTypeAdviceConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif new file mode 100644 index 00000000000..03366e35d0f Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif new file mode 100644 index 00000000000..8997497557c Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif new file mode 100644 index 00000000000..c048169804a Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif new file mode 100644 index 00000000000..a573a9e5f29 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..09b8804bd23 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantSemanticTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..e8daccd8af2 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..0a4d20c16db Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..a12ae418141 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..34d83037854 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif new file mode 100644 index 00000000000..fcfec345ba6 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypeApplicationMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif new file mode 100644 index 00000000000..d8d5fa98a50 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateSpecializationTypeConfiguration_matcherConfiguration_StereotypedElementMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif new file mode 100644 index 00000000000..c561177716e Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/ctool16/CreateStereotypeToApply_featuresToSet_FeatureToSet.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeActionConfiguration.gif new file mode 100644 index 00000000000..35ef84e20e2 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeActionConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif new file mode 100644 index 00000000000..14af8aaee9f Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ApplyStereotypeAdviceConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ConstantValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ConstantValue.gif new file mode 100644 index 00000000000..e4bc22dd17e Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ConstantValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/FeatureToSet.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/FeatureToSet.gif new file mode 100644 index 00000000000..5a9bc7514fa Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/FeatureToSet.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeConfiguration.gif new file mode 100644 index 00000000000..c4a8af41844 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif new file mode 100644 index 00000000000..33854e98c25 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/InvariantStereotypeRuleConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ListValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ListValue.gif new file mode 100644 index 00000000000..c3370c7ddd5 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/ListValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/QueryExecutionValue.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/QueryExecutionValue.gif new file mode 100644 index 00000000000..ed874747401 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/QueryExecutionValue.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeActionConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeActionConfiguration.gif new file mode 100644 index 00000000000..be22463d291 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeActionConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeAdviceConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeAdviceConfiguration.gif new file mode 100644 index 00000000000..ea58a657dc0 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/SetTypeAdviceConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif new file mode 100644 index 00000000000..904159880b3 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeApplicationMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeToApply.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeToApply.gif new file mode 100644 index 00000000000..caf2804510d Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypeToApply.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypedElementMatcherConfiguration.gif b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypedElementMatcherConfiguration.gif new file mode 100644 index 00000000000..d3dc5a9ad81 Binary files /dev/null and b/plugins/uml/org.eclipse.papyrus.uml.types.core/icons/full/obj16/StereotypedElementMatcherConfiguration.gif differ diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.ecore b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.ecore new file mode 100644 index 00000000000..22084f9cf3f --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.ecore @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.genmodel b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.genmodel new file mode 100644 index 00000000000..96e6c69320a --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/ApplyStereotypeAdvice.genmodel @@ -0,0 +1,36 @@ + + + ApplyStereotypeAdvice.ecore + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.ecore b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.ecore new file mode 100644 index 00000000000..841298fceb5 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.ecore @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.genmodel b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.genmodel new file mode 100644 index 00000000000..c703362fcc5 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/InvariantStereotypeRule.genmodel @@ -0,0 +1,21 @@ + + + InvariantStereotypeRule.ecore + + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.ecore b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.ecore new file mode 100644 index 00000000000..cacd671ee28 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.ecore @@ -0,0 +1,11 @@ + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.genmodel b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.genmodel new file mode 100644 index 00000000000..c6d5c5e35ec --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/SetTypeAdvice.genmodel @@ -0,0 +1,21 @@ + + + SetTypeAdvice.ecore + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.ecore b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.ecore new file mode 100644 index 00000000000..d009de33081 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.ecore @@ -0,0 +1,11 @@ + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.genmodel b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.genmodel new file mode 100644 index 00000000000..78d78c82f6c --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/model/StereotypeMatcher.genmodel @@ -0,0 +1,19 @@ + + + StereotypeMatcher.ecore + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.properties b/plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.properties new file mode 100644 index 00000000000..46ac51d3ac3 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.properties @@ -0,0 +1,50 @@ +################################################################################# +# 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: +# Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - initial API and implementation +################################################################################## +pluginName = UML configurations for ElementTypesConfigurations framework +providerName = Eclipse Modeling Project +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. + _UI_PropertyDescriptor_description = The {0} of the {1} + _UI_ApplyStereotypeAdviceConfiguration_type = Apply Stereotype Advice Configuration +_UI_StereotypeToApply_type = Stereotype To Apply +_UI_FeatureToSet_type = Feature To Set +_UI_FeatureValue_type = Feature Value +_UI_ListValue_type = List Value +_UI_ConstantValue_type = Constant Value +_UI_DynamicValue_type = Dynamic Value +_UI_QueryExecutionValue_type = Query Execution Value +_UI_Unknown_type = Object + _UI_Unknown_datatype= Value + _UI_ApplyStereotypeAdviceConfiguration_stereotypesToApply_feature = Stereotypes To Apply +_UI_StereotypeToApply_stereotypeQualifiedName_feature = Stereotype Qualified Name +_UI_StereotypeToApply_updateName_feature = Update Name +_UI_StereotypeToApply_requiredProfiles_feature = Required Profiles +_UI_StereotypeToApply_featuresToSet_feature = Features To Set +_UI_FeatureToSet_featureName_feature = Feature Name +_UI_FeatureToSet_value_feature = Value +_UI_ListValue_values_feature = Values +_UI_ConstantValue_valueInstance_feature = Value Instance +_UI_Unknown_feature = Unspecified + +_UI_InvariantStereotypeRuleConfiguration_type = Invariant Stereotype Rule Configuration +_UI_InvariantStereotypeRuleConfiguration_stereotypeQualifiedName_feature = Stereotype Qualified Name +_UI_InvariantStereotypeRuleConfiguration_requiredProfile_feature = Required Profile +_UI_SetTypeAdviceConfiguration_type = Set Type Advice Configuration +_UI_SetTypeAdviceConfiguration_validTypes_feature = Valid Types +_UI_SetTypeAdviceConfiguration_creationTypes_feature = Creation Types +_UI_StereotypeApplicationMatcherConfiguration_type = Stereotype Application Matcher Configuration +_UI_StereotypeApplicationMatcherConfiguration_stereotypesQualifiedNames_feature = Stereotypes Qualified Names +_UI_InvariantStereotypeRuleConfiguration_strict_feature = Strict +_UI_StereotypeApplicationMatcherConfiguration_profileUri_feature = Profile Uri diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.xml b/plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.xml new file mode 100644 index 00000000000..b820825bf5b --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/plugin.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/pom.xml b/plugins/uml/org.eclipse.papyrus.uml.types.core/pom.xml new file mode 100644 index 00000000000..1024dbc7f4c --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus.uml + 0.0.1-SNAPSHOT + + org.eclipse.papyrus.uml.types.core + 1.2.0-SNAPSHOT + eclipse-plugin + diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfiguration.java new file mode 100644 index 00000000000..ccee86b253a --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfiguration.java @@ -0,0 +1,52 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration#getStereotypesToApply Stereotypes To Apply}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getApplyStereotypeAdviceConfiguration() + * @model + * @generated + */ +public interface ApplyStereotypeAdviceConfiguration extends AbstractAdviceBindingConfiguration { + /** + * Returns the value of the 'Stereotypes To Apply' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply}. + * + *

+ * If the meaning of the 'Stereotypes To Apply' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Stereotypes To Apply' containment reference list. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getApplyStereotypeAdviceConfiguration_StereotypesToApply() + * @model containment="true" + * @generated + */ + EList getStereotypesToApply(); + +} // ApplyStereotypeAdviceConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceFactory.java new file mode 100644 index 00000000000..a39c3522c88 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceFactory.java @@ -0,0 +1,97 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage + * @generated + */ +public interface ApplyStereotypeAdviceFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ApplyStereotypeAdviceFactory eINSTANCE = org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdviceFactoryImpl.init(); + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + ApplyStereotypeAdviceConfiguration createApplyStereotypeAdviceConfiguration(); + + /** + * Returns a new object of class 'Stereotype To Apply'. + * + * + * @return a new object of class 'Stereotype To Apply'. + * @generated + */ + StereotypeToApply createStereotypeToApply(); + + /** + * Returns a new object of class 'Feature To Set'. + * + * + * @return a new object of class 'Feature To Set'. + * @generated + */ + FeatureToSet createFeatureToSet(); + + /** + * Returns a new object of class 'List Value'. + * + * + * @return a new object of class 'List Value'. + * @generated + */ + ListValue createListValue(); + + /** + * Returns a new object of class 'Constant Value'. + * + * + * @return a new object of class 'Constant Value'. + * @generated + */ + ConstantValue createConstantValue(); + + /** + * Returns a new object of class 'Query Execution Value'. + * + * + * @return a new object of class 'Query Execution Value'. + * @generated + */ + QueryExecutionValue createQueryExecutionValue(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ApplyStereotypeAdvicePackage getApplyStereotypeAdvicePackage(); + +} //ApplyStereotypeAdviceFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdvicePackage.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdvicePackage.java new file mode 100644 index 00000000000..56968bde9d7 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdvicePackage.java @@ -0,0 +1,731 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +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.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory + * @model kind="package" + * @generated + */ +public interface ApplyStereotypeAdvicePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "applystereotype"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/uml/types/applystereotypeadvice/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "applystereotypeadvice"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + ApplyStereotypeAdvicePackage eINSTANCE = org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdviceConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdviceConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getApplyStereotypeAdviceConfiguration() + * @generated + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__DESCRIPTION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__BEFORE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__AFTER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__IDENTIFIER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Target' reference. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__TARGET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; + + /** + * The feature id for the 'Inheritance' attribute. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__INHERITANCE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; + + /** + * The feature id for the 'Stereotypes To Apply' containment reference list. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int APPLY_STEREOTYPE_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl Stereotype To Apply}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getStereotypeToApply() + * @generated + */ + int STEREOTYPE_TO_APPLY = 1; + + /** + * The feature id for the 'Stereotype Qualified Name' attribute. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME = 0; + + /** + * The feature id for the 'Update Name' attribute. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_TO_APPLY__UPDATE_NAME = 1; + + /** + * The feature id for the 'Required Profiles' attribute list. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_TO_APPLY__REQUIRED_PROFILES = 2; + + /** + * The feature id for the 'Features To Set' containment reference list. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_TO_APPLY__FEATURES_TO_SET = 3; + + /** + * The number of structural features of the 'Stereotype To Apply' class. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_TO_APPLY_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureToSetImpl Feature To Set}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureToSetImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getFeatureToSet() + * @generated + */ + int FEATURE_TO_SET = 2; + + /** + * The feature id for the 'Feature Name' attribute. + * + * + * @generated + * @ordered + */ + int FEATURE_TO_SET__FEATURE_NAME = 0; + + /** + * The feature id for the 'Value' containment reference. + * + * + * @generated + * @ordered + */ + int FEATURE_TO_SET__VALUE = 1; + + /** + * The number of structural features of the 'Feature To Set' class. + * + * + * @generated + * @ordered + */ + int FEATURE_TO_SET_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureValueImpl Feature Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getFeatureValue() + * @generated + */ + int FEATURE_VALUE = 3; + + /** + * The number of structural features of the 'Feature Value' class. + * + * + * @generated + * @ordered + */ + int FEATURE_VALUE_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ListValueImpl List Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ListValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getListValue() + * @generated + */ + int LIST_VALUE = 4; + + /** + * The feature id for the 'Values' containment reference list. + * + * + * @generated + * @ordered + */ + int LIST_VALUE__VALUES = FEATURE_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'List Value' class. + * + * + * @generated + * @ordered + */ + int LIST_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ConstantValueImpl Constant Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ConstantValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getConstantValue() + * @generated + */ + int CONSTANT_VALUE = 5; + + /** + * The feature id for the 'Value Instance' containment reference. + * + * + * @generated + * @ordered + */ + int CONSTANT_VALUE__VALUE_INSTANCE = FEATURE_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Constant Value' class. + * + * + * @generated + * @ordered + */ + int CONSTANT_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.DynamicValueImpl Dynamic Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.DynamicValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getDynamicValue() + * @generated + */ + int DYNAMIC_VALUE = 6; + + /** + * The number of structural features of the 'Dynamic Value' class. + * + * + * @generated + * @ordered + */ + int DYNAMIC_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.QueryExecutionValueImpl Query Execution Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.QueryExecutionValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getQueryExecutionValue() + * @generated + */ + int QUERY_EXECUTION_VALUE = 7; + + /** + * The number of structural features of the 'Query Execution Value' class. + * + * + * @generated + * @ordered + */ + int QUERY_EXECUTION_VALUE_FEATURE_COUNT = DYNAMIC_VALUE_FEATURE_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration + * @generated + */ + EClass getApplyStereotypeAdviceConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration#getStereotypesToApply Stereotypes To Apply}'. + * + * + * @return the meta object for the containment reference list 'Stereotypes To Apply'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration#getStereotypesToApply() + * @see #getApplyStereotypeAdviceConfiguration() + * @generated + */ + EReference getApplyStereotypeAdviceConfiguration_StereotypesToApply(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply Stereotype To Apply}'. + * + * + * @return the meta object for class 'Stereotype To Apply'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply + * @generated + */ + EClass getStereotypeToApply(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getStereotypeQualifiedName Stereotype Qualified Name}'. + * + * + * @return the meta object for the attribute 'Stereotype Qualified Name'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getStereotypeQualifiedName() + * @see #getStereotypeToApply() + * @generated + */ + EAttribute getStereotypeToApply_StereotypeQualifiedName(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#isUpdateName Update Name}'. + * + * + * @return the meta object for the attribute 'Update Name'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#isUpdateName() + * @see #getStereotypeToApply() + * @generated + */ + EAttribute getStereotypeToApply_UpdateName(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getRequiredProfiles Required Profiles}'. + * + * + * @return the meta object for the attribute list 'Required Profiles'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getRequiredProfiles() + * @see #getStereotypeToApply() + * @generated + */ + EAttribute getStereotypeToApply_RequiredProfiles(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getFeaturesToSet Features To Set}'. + * + * + * @return the meta object for the containment reference list 'Features To Set'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getFeaturesToSet() + * @see #getStereotypeToApply() + * @generated + */ + EReference getStereotypeToApply_FeaturesToSet(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet Feature To Set}'. + * + * + * @return the meta object for class 'Feature To Set'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet + * @generated + */ + EClass getFeatureToSet(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getFeatureName Feature Name}'. + * + * + * @return the meta object for the attribute 'Feature Name'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getFeatureName() + * @see #getFeatureToSet() + * @generated + */ + EAttribute getFeatureToSet_FeatureName(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getValue Value}'. + * + * + * @return the meta object for the containment reference 'Value'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getValue() + * @see #getFeatureToSet() + * @generated + */ + EReference getFeatureToSet_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue Feature Value}'. + * + * + * @return the meta object for class 'Feature Value'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue + * @generated + */ + EClass getFeatureValue(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue List Value}'. + * + * + * @return the meta object for class 'List Value'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue + * @generated + */ + EClass getListValue(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue#getValues Values}'. + * + * + * @return the meta object for the containment reference list 'Values'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue#getValues() + * @see #getListValue() + * @generated + */ + EReference getListValue_Values(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue Constant Value}'. + * + * + * @return the meta object for class 'Constant Value'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue + * @generated + */ + EClass getConstantValue(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue#getValueInstance Value Instance}'. + * + * + * @return the meta object for the containment reference 'Value Instance'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue#getValueInstance() + * @see #getConstantValue() + * @generated + */ + EReference getConstantValue_ValueInstance(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue Dynamic Value}'. + * + * + * @return the meta object for class 'Dynamic Value'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue + * @generated + */ + EClass getDynamicValue(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue Query Execution Value}'. + * + * + * @return the meta object for class 'Query Execution Value'. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue + * @generated + */ + EClass getQueryExecutionValue(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + ApplyStereotypeAdviceFactory getApplyStereotypeAdviceFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdviceConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdviceConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getApplyStereotypeAdviceConfiguration() + * @generated + */ + EClass APPLY_STEREOTYPE_ADVICE_CONFIGURATION = eINSTANCE.getApplyStereotypeAdviceConfiguration(); + + /** + * The meta object literal for the 'Stereotypes To Apply' containment reference list feature. + * + * + * @generated + */ + EReference APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY = eINSTANCE.getApplyStereotypeAdviceConfiguration_StereotypesToApply(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl Stereotype To Apply}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getStereotypeToApply() + * @generated + */ + EClass STEREOTYPE_TO_APPLY = eINSTANCE.getStereotypeToApply(); + + /** + * The meta object literal for the 'Stereotype Qualified Name' attribute feature. + * + * + * @generated + */ + EAttribute STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME = eINSTANCE.getStereotypeToApply_StereotypeQualifiedName(); + + /** + * The meta object literal for the 'Update Name' attribute feature. + * + * + * @generated + */ + EAttribute STEREOTYPE_TO_APPLY__UPDATE_NAME = eINSTANCE.getStereotypeToApply_UpdateName(); + + /** + * The meta object literal for the 'Required Profiles' attribute list feature. + * + * + * @generated + */ + EAttribute STEREOTYPE_TO_APPLY__REQUIRED_PROFILES = eINSTANCE.getStereotypeToApply_RequiredProfiles(); + + /** + * The meta object literal for the 'Features To Set' containment reference list feature. + * + * + * @generated + */ + EReference STEREOTYPE_TO_APPLY__FEATURES_TO_SET = eINSTANCE.getStereotypeToApply_FeaturesToSet(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureToSetImpl Feature To Set}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureToSetImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getFeatureToSet() + * @generated + */ + EClass FEATURE_TO_SET = eINSTANCE.getFeatureToSet(); + + /** + * The meta object literal for the 'Feature Name' attribute feature. + * + * + * @generated + */ + EAttribute FEATURE_TO_SET__FEATURE_NAME = eINSTANCE.getFeatureToSet_FeatureName(); + + /** + * The meta object literal for the 'Value' containment reference feature. + * + * + * @generated + */ + EReference FEATURE_TO_SET__VALUE = eINSTANCE.getFeatureToSet_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureValueImpl Feature Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getFeatureValue() + * @generated + */ + EClass FEATURE_VALUE = eINSTANCE.getFeatureValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ListValueImpl List Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ListValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getListValue() + * @generated + */ + EClass LIST_VALUE = eINSTANCE.getListValue(); + + /** + * The meta object literal for the 'Values' containment reference list feature. + * + * + * @generated + */ + EReference LIST_VALUE__VALUES = eINSTANCE.getListValue_Values(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ConstantValueImpl Constant Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ConstantValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getConstantValue() + * @generated + */ + EClass CONSTANT_VALUE = eINSTANCE.getConstantValue(); + + /** + * The meta object literal for the 'Value Instance' containment reference feature. + * + * + * @generated + */ + EReference CONSTANT_VALUE__VALUE_INSTANCE = eINSTANCE.getConstantValue_ValueInstance(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.DynamicValueImpl Dynamic Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.DynamicValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getDynamicValue() + * @generated + */ + EClass DYNAMIC_VALUE = eINSTANCE.getDynamicValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.QueryExecutionValueImpl Query Execution Value}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.QueryExecutionValueImpl + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdvicePackageImpl#getQueryExecutionValue() + * @generated + */ + EClass QUERY_EXECUTION_VALUE = eINSTANCE.getQueryExecutionValue(); + + } + +} //ApplyStereotypeAdvicePackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ConstantValue.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ConstantValue.java new file mode 100644 index 00000000000..5dac71d983b --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ConstantValue.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * A representation of the model object 'Constant Value'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue#getValueInstance Value Instance}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getConstantValue() + * @model + * @generated + */ +public interface ConstantValue extends FeatureValue { + /** + * Returns the value of the 'Value Instance' containment reference. + * + *

+ * If the meaning of the 'Value Instance' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value Instance' containment reference. + * @see #setValueInstance(ValueSpecification) + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getConstantValue_ValueInstance() + * @model containment="true" + * @generated + */ + ValueSpecification getValueInstance(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue#getValueInstance Value Instance}' containment reference. + * + * + * @param value the new value of the 'Value Instance' containment reference. + * @see #getValueInstance() + * @generated + */ + void setValueInstance(ValueSpecification value); + +} // ConstantValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/DynamicValue.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/DynamicValue.java new file mode 100644 index 00000000000..d39cc82cb5f --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/DynamicValue.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + + +/** + * + * A representation of the model object 'Dynamic Value'. + * + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getDynamicValue() + * @model abstract="true" + * @generated + */ +public interface DynamicValue extends FeatureValue { +} // DynamicValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureToSet.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureToSet.java new file mode 100644 index 00000000000..a84886dadc1 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureToSet.java @@ -0,0 +1,87 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Feature To Set'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getFeatureName Feature Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getFeatureToSet() + * @model + * @generated + */ +public interface FeatureToSet extends EObject { + /** + * Returns the value of the 'Feature Name' attribute. + * + *

+ * If the meaning of the 'Feature Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Feature Name' attribute. + * @see #setFeatureName(String) + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getFeatureToSet_FeatureName() + * @model required="true" + * @generated + */ + String getFeatureName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getFeatureName Feature Name}' attribute. + * + * + * @param value the new value of the 'Feature Name' attribute. + * @see #getFeatureName() + * @generated + */ + void setFeatureName(String value); + + /** + * Returns the value of the 'Value' containment reference. + * + *

+ * If the meaning of the 'Value' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' containment reference. + * @see #setValue(FeatureValue) + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getFeatureToSet_Value() + * @model containment="true" required="true" + * @generated + */ + FeatureValue getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet#getValue Value}' containment reference. + * + * + * @param value the new value of the 'Value' containment reference. + * @see #getValue() + * @generated + */ + void setValue(FeatureValue value); + +} // FeatureToSet diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureValue.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureValue.java new file mode 100644 index 00000000000..2b7064a6d5f --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/FeatureValue.java @@ -0,0 +1,28 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Feature Value'. + * + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getFeatureValue() + * @model abstract="true" + * @generated + */ +public interface FeatureValue extends EObject { +} // FeatureValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ListValue.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ListValue.java new file mode 100644 index 00000000000..e4521c40cd1 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ListValue.java @@ -0,0 +1,50 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'List Value'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue#getValues Values}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getListValue() + * @model + * @generated + */ +public interface ListValue extends FeatureValue { + /** + * Returns the value of the 'Values' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue}. + * + *

+ * If the meaning of the 'Values' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Values' containment reference list. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getListValue_Values() + * @model containment="true" + * @generated + */ + EList getValues(); + +} // ListValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/QueryExecutionValue.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/QueryExecutionValue.java new file mode 100644 index 00000000000..14f102e2b40 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/QueryExecutionValue.java @@ -0,0 +1,27 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + + +/** + * + * A representation of the model object 'Query Execution Value'. + * + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getQueryExecutionValue() + * @model + * @generated + */ +public interface QueryExecutionValue extends DynamicValue { +} // QueryExecutionValue diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeToApply.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeToApply.java new file mode 100644 index 00000000000..95f2af9e277 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeToApply.java @@ -0,0 +1,123 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Stereotype To Apply'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getStereotypeQualifiedName Stereotype Qualified Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#isUpdateName Update Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getRequiredProfiles Required Profiles}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getFeaturesToSet Features To Set}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getStereotypeToApply() + * @model + * @generated + */ +public interface StereotypeToApply extends EObject { + /** + * Returns the value of the 'Stereotype Qualified Name' attribute. + * + *

+ * If the meaning of the 'Stereotype Qualified Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Stereotype Qualified Name' attribute. + * @see #setStereotypeQualifiedName(String) + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getStereotypeToApply_StereotypeQualifiedName() + * @model + * @generated + */ + String getStereotypeQualifiedName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#getStereotypeQualifiedName Stereotype Qualified Name}' attribute. + * + * + * @param value the new value of the 'Stereotype Qualified Name' attribute. + * @see #getStereotypeQualifiedName() + * @generated + */ + void setStereotypeQualifiedName(String value); + + /** + * Returns the value of the 'Update Name' attribute. + * + *

+ * If the meaning of the 'Update Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Update Name' attribute. + * @see #setUpdateName(boolean) + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getStereotypeToApply_UpdateName() + * @model + * @generated + */ + boolean isUpdateName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply#isUpdateName Update Name}' attribute. + * + * + * @param value the new value of the 'Update Name' attribute. + * @see #isUpdateName() + * @generated + */ + void setUpdateName(boolean value); + + /** + * Returns the value of the 'Required Profiles' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Required Profiles' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Required Profiles' attribute list. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getStereotypeToApply_RequiredProfiles() + * @model required="true" + * @generated + */ + EList getRequiredProfiles(); + + /** + * Returns the value of the 'Features To Set' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet}. + * + *

+ * If the meaning of the 'Features To Set' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Features To Set' containment reference list. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#getStereotypeToApply_FeaturesToSet() + * @model containment="true" + * @generated + */ + EList getFeaturesToSet(); + +} // StereotypeToApply diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceConfigurationImpl.java new file mode 100644 index 00000000000..41e594ef12f --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceConfigurationImpl.java @@ -0,0 +1,162 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.types.impl.AbstractAdviceBindingConfigurationImpl; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ApplyStereotypeAdviceConfigurationImpl#getStereotypesToApply Stereotypes To Apply}
  • + *
+ * + * @generated + */ +public class ApplyStereotypeAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements ApplyStereotypeAdviceConfiguration { + /** + * The cached value of the '{@link #getStereotypesToApply() Stereotypes To Apply}' containment reference list. + * + * + * @see #getStereotypesToApply() + * @generated + * @ordered + */ + protected EList stereotypesToApply; + + /** + * + * + * @generated + */ + protected ApplyStereotypeAdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.APPLY_STEREOTYPE_ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getStereotypesToApply() { + if (stereotypesToApply == null) { + stereotypesToApply = new EObjectContainmentEList(StereotypeToApply.class, this, ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY); + } + return stereotypesToApply; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: + return ((InternalEList)getStereotypesToApply()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: + return getStereotypesToApply(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: + getStereotypesToApply().clear(); + getStereotypesToApply().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: + getStereotypesToApply().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: + return stereotypesToApply != null && !stereotypesToApply.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ApplyStereotypeAdviceConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceFactoryImpl.java new file mode 100644 index 00000000000..618bcdd37aa --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdviceFactoryImpl.java @@ -0,0 +1,160 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.uml.types.core.advices.applystereotype.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class ApplyStereotypeAdviceFactoryImpl extends EFactoryImpl implements ApplyStereotypeAdviceFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static ApplyStereotypeAdviceFactory init() { + try { + ApplyStereotypeAdviceFactory theApplyStereotypeAdviceFactory = (ApplyStereotypeAdviceFactory)EPackage.Registry.INSTANCE.getEFactory(ApplyStereotypeAdvicePackage.eNS_URI); + if (theApplyStereotypeAdviceFactory != null) { + return theApplyStereotypeAdviceFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ApplyStereotypeAdviceFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public ApplyStereotypeAdviceFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION: return createApplyStereotypeAdviceConfiguration(); + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY: return createStereotypeToApply(); + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET: return createFeatureToSet(); + case ApplyStereotypeAdvicePackage.LIST_VALUE: return createListValue(); + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE: return createConstantValue(); + case ApplyStereotypeAdvicePackage.QUERY_EXECUTION_VALUE: return createQueryExecutionValue(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public ApplyStereotypeAdviceConfiguration createApplyStereotypeAdviceConfiguration() { + ApplyStereotypeAdviceConfigurationImpl applyStereotypeAdviceConfiguration = new ApplyStereotypeAdviceConfigurationImpl(); + return applyStereotypeAdviceConfiguration; + } + + /** + * + * + * @generated + */ + public StereotypeToApply createStereotypeToApply() { + StereotypeToApplyImpl stereotypeToApply = new StereotypeToApplyImpl(); + return stereotypeToApply; + } + + /** + * + * + * @generated + */ + public FeatureToSet createFeatureToSet() { + FeatureToSetImpl featureToSet = new FeatureToSetImpl(); + return featureToSet; + } + + /** + * + * + * @generated + */ + public ListValue createListValue() { + ListValueImpl listValue = new ListValueImpl(); + return listValue; + } + + /** + * + * + * @generated + */ + public ConstantValue createConstantValue() { + ConstantValueImpl constantValue = new ConstantValueImpl(); + return constantValue; + } + + /** + * + * + * @generated + */ + public QueryExecutionValue createQueryExecutionValue() { + QueryExecutionValueImpl queryExecutionValue = new QueryExecutionValueImpl(); + return queryExecutionValue; + } + + /** + * + * + * @generated + */ + public ApplyStereotypeAdvicePackage getApplyStereotypeAdvicePackage() { + return (ApplyStereotypeAdvicePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ApplyStereotypeAdvicePackage getPackage() { + return ApplyStereotypeAdvicePackage.eINSTANCE; + } + +} //ApplyStereotypeAdviceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdvicePackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdvicePackageImpl.java new file mode 100644 index 00000000000..55899d88fa2 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ApplyStereotypeAdvicePackageImpl.java @@ -0,0 +1,442 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply; + +import org.eclipse.uml2.uml.UMLPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class ApplyStereotypeAdvicePackageImpl extends EPackageImpl implements ApplyStereotypeAdvicePackage { + /** + * + * + * @generated + */ + private EClass applyStereotypeAdviceConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass stereotypeToApplyEClass = null; + + /** + * + * + * @generated + */ + private EClass featureToSetEClass = null; + + /** + * + * + * @generated + */ + private EClass featureValueEClass = null; + + /** + * + * + * @generated + */ + private EClass listValueEClass = null; + + /** + * + * + * @generated + */ + private EClass constantValueEClass = null; + + /** + * + * + * @generated + */ + private EClass dynamicValueEClass = null; + + /** + * + * + * @generated + */ + private EClass queryExecutionValueEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage#eNS_URI + * @see #init() + * @generated + */ + private ApplyStereotypeAdvicePackageImpl() { + super(eNS_URI, ApplyStereotypeAdviceFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link ApplyStereotypeAdvicePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ApplyStereotypeAdvicePackage init() { + if (isInited) return (ApplyStereotypeAdvicePackage)EPackage.Registry.INSTANCE.getEPackage(ApplyStereotypeAdvicePackage.eNS_URI); + + // Obtain or create and register package + ApplyStereotypeAdvicePackageImpl theApplyStereotypeAdvicePackage = (ApplyStereotypeAdvicePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ApplyStereotypeAdvicePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplyStereotypeAdvicePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ElementTypesConfigurationsPackage.eINSTANCE.eClass(); + UMLPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theApplyStereotypeAdvicePackage.createPackageContents(); + + // Initialize created meta-data + theApplyStereotypeAdvicePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theApplyStereotypeAdvicePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ApplyStereotypeAdvicePackage.eNS_URI, theApplyStereotypeAdvicePackage); + return theApplyStereotypeAdvicePackage; + } + + /** + * + * + * @generated + */ + public EClass getApplyStereotypeAdviceConfiguration() { + return applyStereotypeAdviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getApplyStereotypeAdviceConfiguration_StereotypesToApply() { + return (EReference)applyStereotypeAdviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getStereotypeToApply() { + return stereotypeToApplyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getStereotypeToApply_StereotypeQualifiedName() { + return (EAttribute)stereotypeToApplyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getStereotypeToApply_UpdateName() { + return (EAttribute)stereotypeToApplyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getStereotypeToApply_RequiredProfiles() { + return (EAttribute)stereotypeToApplyEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getStereotypeToApply_FeaturesToSet() { + return (EReference)stereotypeToApplyEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getFeatureToSet() { + return featureToSetEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFeatureToSet_FeatureName() { + return (EAttribute)featureToSetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getFeatureToSet_Value() { + return (EReference)featureToSetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFeatureValue() { + return featureValueEClass; + } + + /** + * + * + * @generated + */ + public EClass getListValue() { + return listValueEClass; + } + + /** + * + * + * @generated + */ + public EReference getListValue_Values() { + return (EReference)listValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getConstantValue() { + return constantValueEClass; + } + + /** + * + * + * @generated + */ + public EReference getConstantValue_ValueInstance() { + return (EReference)constantValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getDynamicValue() { + return dynamicValueEClass; + } + + /** + * + * + * @generated + */ + public EClass getQueryExecutionValue() { + return queryExecutionValueEClass; + } + + /** + * + * + * @generated + */ + public ApplyStereotypeAdviceFactory getApplyStereotypeAdviceFactory() { + return (ApplyStereotypeAdviceFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + applyStereotypeAdviceConfigurationEClass = createEClass(APPLY_STEREOTYPE_ADVICE_CONFIGURATION); + createEReference(applyStereotypeAdviceConfigurationEClass, APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY); + + stereotypeToApplyEClass = createEClass(STEREOTYPE_TO_APPLY); + createEAttribute(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME); + createEAttribute(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__UPDATE_NAME); + createEAttribute(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__REQUIRED_PROFILES); + createEReference(stereotypeToApplyEClass, STEREOTYPE_TO_APPLY__FEATURES_TO_SET); + + featureToSetEClass = createEClass(FEATURE_TO_SET); + createEAttribute(featureToSetEClass, FEATURE_TO_SET__FEATURE_NAME); + createEReference(featureToSetEClass, FEATURE_TO_SET__VALUE); + + featureValueEClass = createEClass(FEATURE_VALUE); + + listValueEClass = createEClass(LIST_VALUE); + createEReference(listValueEClass, LIST_VALUE__VALUES); + + constantValueEClass = createEClass(CONSTANT_VALUE); + createEReference(constantValueEClass, CONSTANT_VALUE__VALUE_INSTANCE); + + dynamicValueEClass = createEClass(DYNAMIC_VALUE); + + queryExecutionValueEClass = createEClass(QUERY_EXECUTION_VALUE); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + applyStereotypeAdviceConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getAbstractAdviceBindingConfiguration()); + listValueEClass.getESuperTypes().add(this.getFeatureValue()); + constantValueEClass.getESuperTypes().add(this.getFeatureValue()); + dynamicValueEClass.getESuperTypes().add(this.getFeatureValue()); + queryExecutionValueEClass.getESuperTypes().add(this.getDynamicValue()); + + // Initialize classes and features; add operations and parameters + initEClass(applyStereotypeAdviceConfigurationEClass, ApplyStereotypeAdviceConfiguration.class, "ApplyStereotypeAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getApplyStereotypeAdviceConfiguration_StereotypesToApply(), this.getStereotypeToApply(), null, "stereotypesToApply", null, 0, -1, ApplyStereotypeAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stereotypeToApplyEClass, StereotypeToApply.class, "StereotypeToApply", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStereotypeToApply_StereotypeQualifiedName(), ecorePackage.getEString(), "stereotypeQualifiedName", null, 0, 1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getStereotypeToApply_UpdateName(), ecorePackage.getEBoolean(), "updateName", null, 0, 1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getStereotypeToApply_RequiredProfiles(), theEcorePackage.getEString(), "requiredProfiles", null, 1, -1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getStereotypeToApply_FeaturesToSet(), this.getFeatureToSet(), null, "featuresToSet", null, 0, -1, StereotypeToApply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(featureToSetEClass, FeatureToSet.class, "FeatureToSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFeatureToSet_FeatureName(), ecorePackage.getEString(), "featureName", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFeatureToSet_Value(), this.getFeatureValue(), null, "value", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(featureValueEClass, FeatureValue.class, "FeatureValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(listValueEClass, ListValue.class, "ListValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getListValue_Values(), this.getFeatureValue(), null, "values", null, 0, -1, ListValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(constantValueEClass, ConstantValue.class, "ConstantValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConstantValue_ValueInstance(), theUMLPackage.getValueSpecification(), null, "valueInstance", null, 0, 1, ConstantValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dynamicValueEClass, DynamicValue.class, "DynamicValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(queryExecutionValueEClass, QueryExecutionValue.class, "QueryExecutionValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //ApplyStereotypeAdvicePackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ConstantValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ConstantValueImpl.java new file mode 100644 index 00000000000..630877b7dae --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ConstantValueImpl.java @@ -0,0 +1,186 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue; + +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * An implementation of the model object 'Constant Value'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ConstantValueImpl#getValueInstance Value Instance}
  • + *
+ * + * @generated + */ +public class ConstantValueImpl extends FeatureValueImpl implements ConstantValue { + /** + * The cached value of the '{@link #getValueInstance() Value Instance}' containment reference. + * + * + * @see #getValueInstance() + * @generated + * @ordered + */ + protected ValueSpecification valueInstance; + + /** + * + * + * @generated + */ + protected ConstantValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE; + } + + /** + * + * + * @generated + */ + public ValueSpecification getValueInstance() { + return valueInstance; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValueInstance(ValueSpecification newValueInstance, NotificationChain msgs) { + ValueSpecification oldValueInstance = valueInstance; + valueInstance = newValueInstance; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, oldValueInstance, newValueInstance); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValueInstance(ValueSpecification newValueInstance) { + if (newValueInstance != valueInstance) { + NotificationChain msgs = null; + if (valueInstance != null) + msgs = ((InternalEObject)valueInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); + if (newValueInstance != null) + msgs = ((InternalEObject)newValueInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs); + msgs = basicSetValueInstance(newValueInstance, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, newValueInstance, newValueInstance)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + return basicSetValueInstance(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + return getValueInstance(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + setValueInstance((ValueSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + setValueInstance((ValueSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + return valueInstance != null; + } + return super.eIsSet(featureID); + } + +} //ConstantValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/DynamicValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/DynamicValueImpl.java new file mode 100644 index 00000000000..11c5eed074a --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/DynamicValueImpl.java @@ -0,0 +1,47 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue; + +/** + * + * An implementation of the model object 'Dynamic Value'. + * + * + * @generated + */ +public abstract class DynamicValueImpl extends FeatureValueImpl implements DynamicValue { + /** + * + * + * @generated + */ + protected DynamicValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.DYNAMIC_VALUE; + } + +} //DynamicValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureToSetImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureToSetImpl.java new file mode 100644 index 00000000000..05979ec643c --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureToSetImpl.java @@ -0,0 +1,254 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue; + +/** + * + * An implementation of the model object 'Feature To Set'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureToSetImpl#getFeatureName Feature Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.FeatureToSetImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class FeatureToSetImpl extends EObjectImpl implements FeatureToSet { + /** + * The default value of the '{@link #getFeatureName() Feature Name}' attribute. + * + * + * @see #getFeatureName() + * @generated + * @ordered + */ + protected static final String FEATURE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFeatureName() Feature Name}' attribute. + * + * + * @see #getFeatureName() + * @generated + * @ordered + */ + protected String featureName = FEATURE_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getValue() Value}' containment reference. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected FeatureValue value; + + /** + * + * + * @generated + */ + protected FeatureToSetImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.FEATURE_TO_SET; + } + + /** + * + * + * @generated + */ + public String getFeatureName() { + return featureName; + } + + /** + * + * + * @generated + */ + public void setFeatureName(String newFeatureName) { + String oldFeatureName = featureName; + featureName = newFeatureName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.FEATURE_TO_SET__FEATURE_NAME, oldFeatureName, featureName)); + } + + /** + * + * + * @generated + */ + public FeatureValue getValue() { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValue(FeatureValue newValue, NotificationChain msgs) { + FeatureValue oldValue = value; + value = newValue; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE, oldValue, newValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValue(FeatureValue newValue) { + if (newValue != value) { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE, null, msgs); + msgs = basicSetValue(newValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE, newValue, newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + return getFeatureName(); + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + setFeatureName((String)newValue); + return; + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE: + setValue((FeatureValue)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + setFeatureName(FEATURE_NAME_EDEFAULT); + return; + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE: + setValue((FeatureValue)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + return FEATURE_NAME_EDEFAULT == null ? featureName != null : !FEATURE_NAME_EDEFAULT.equals(featureName); + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (featureName: "); + result.append(featureName); + result.append(')'); + return result.toString(); + } + +} //FeatureToSetImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureValueImpl.java new file mode 100644 index 00000000000..54638bd57ab --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/FeatureValueImpl.java @@ -0,0 +1,49 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue; + +/** + * + * An implementation of the model object 'Feature Value'. + * + * + * @generated + */ +public abstract class FeatureValueImpl extends EObjectImpl implements FeatureValue { + /** + * + * + * @generated + */ + protected FeatureValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.FEATURE_VALUE; + } + +} //FeatureValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ListValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ListValueImpl.java new file mode 100644 index 00000000000..ab350b04d96 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/ListValueImpl.java @@ -0,0 +1,160 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue; + +/** + * + * An implementation of the model object 'List Value'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.ListValueImpl#getValues Values}
  • + *
+ * + * @generated + */ +public class ListValueImpl extends FeatureValueImpl implements ListValue { + /** + * The cached value of the '{@link #getValues() Values}' containment reference list. + * + * + * @see #getValues() + * @generated + * @ordered + */ + protected EList values; + + /** + * + * + * @generated + */ + protected ListValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.LIST_VALUE; + } + + /** + * + * + * @generated + */ + public EList getValues() { + if (values == null) { + values = new EObjectContainmentEList(FeatureValue.class, this, ApplyStereotypeAdvicePackage.LIST_VALUE__VALUES); + } + return values; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.LIST_VALUE__VALUES: + return ((InternalEList)getValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.LIST_VALUE__VALUES: + return getValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.LIST_VALUE__VALUES: + getValues().clear(); + getValues().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.LIST_VALUE__VALUES: + getValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.LIST_VALUE__VALUES: + return values != null && !values.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ListValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/QueryExecutionValueImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/QueryExecutionValueImpl.java new file mode 100644 index 00000000000..238b31865b8 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/QueryExecutionValueImpl.java @@ -0,0 +1,47 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue; + +/** + * + * An implementation of the model object 'Query Execution Value'. + * + * + * @generated + */ +public class QueryExecutionValueImpl extends DynamicValueImpl implements QueryExecutionValue { + /** + * + * + * @generated + */ + protected QueryExecutionValueImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.QUERY_EXECUTION_VALUE; + } + +} //QueryExecutionValueImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/StereotypeToApplyImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/StereotypeToApplyImpl.java new file mode 100644 index 00000000000..abf896478b3 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/impl/StereotypeToApplyImpl.java @@ -0,0 +1,323 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply; + +/** + * + * An implementation of the model object 'Stereotype To Apply'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl#getStereotypeQualifiedName Stereotype Qualified Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl#isUpdateName Update Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl#getRequiredProfiles Required Profiles}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.impl.StereotypeToApplyImpl#getFeaturesToSet Features To Set}
  • + *
+ * + * @generated + */ +public class StereotypeToApplyImpl extends EObjectImpl implements StereotypeToApply { + /** + * The default value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. + * + * + * @see #getStereotypeQualifiedName() + * @generated + * @ordered + */ + protected static final String STEREOTYPE_QUALIFIED_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. + * + * + * @see #getStereotypeQualifiedName() + * @generated + * @ordered + */ + protected String stereotypeQualifiedName = STEREOTYPE_QUALIFIED_NAME_EDEFAULT; + + /** + * The default value of the '{@link #isUpdateName() Update Name}' attribute. + * + * + * @see #isUpdateName() + * @generated + * @ordered + */ + protected static final boolean UPDATE_NAME_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUpdateName() Update Name}' attribute. + * + * + * @see #isUpdateName() + * @generated + * @ordered + */ + protected boolean updateName = UPDATE_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getRequiredProfiles() Required Profiles}' attribute list. + * + * + * @see #getRequiredProfiles() + * @generated + * @ordered + */ + protected EList requiredProfiles; + + /** + * The cached value of the '{@link #getFeaturesToSet() Features To Set}' containment reference list. + * + * + * @see #getFeaturesToSet() + * @generated + * @ordered + */ + protected EList featuresToSet; + + /** + * + * + * @generated + */ + protected StereotypeToApplyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ApplyStereotypeAdvicePackage.Literals.STEREOTYPE_TO_APPLY; + } + + /** + * + * + * @generated + */ + public String getStereotypeQualifiedName() { + return stereotypeQualifiedName; + } + + /** + * + * + * @generated + */ + public void setStereotypeQualifiedName(String newStereotypeQualifiedName) { + String oldStereotypeQualifiedName = stereotypeQualifiedName; + stereotypeQualifiedName = newStereotypeQualifiedName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME, oldStereotypeQualifiedName, stereotypeQualifiedName)); + } + + /** + * + * + * @generated + */ + public boolean isUpdateName() { + return updateName; + } + + /** + * + * + * @generated + */ + public void setUpdateName(boolean newUpdateName) { + boolean oldUpdateName = updateName; + updateName = newUpdateName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__UPDATE_NAME, oldUpdateName, updateName)); + } + + /** + * + * + * @generated + */ + public EList getRequiredProfiles() { + if (requiredProfiles == null) { + requiredProfiles = new EDataTypeUniqueEList(String.class, this, ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES); + } + return requiredProfiles; + } + + /** + * + * + * @generated + */ + public EList getFeaturesToSet() { + if (featuresToSet == null) { + featuresToSet = new EObjectContainmentEList(FeatureToSet.class, this, ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET); + } + return featuresToSet; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: + return ((InternalEList)getFeaturesToSet()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: + return getStereotypeQualifiedName(); + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: + return isUpdateName(); + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: + return getRequiredProfiles(); + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: + return getFeaturesToSet(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: + setStereotypeQualifiedName((String)newValue); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: + setUpdateName((Boolean)newValue); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: + getRequiredProfiles().clear(); + getRequiredProfiles().addAll((Collection)newValue); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: + getFeaturesToSet().clear(); + getFeaturesToSet().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: + setStereotypeQualifiedName(STEREOTYPE_QUALIFIED_NAME_EDEFAULT); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: + setUpdateName(UPDATE_NAME_EDEFAULT); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: + getRequiredProfiles().clear(); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: + getFeaturesToSet().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: + return STEREOTYPE_QUALIFIED_NAME_EDEFAULT == null ? stereotypeQualifiedName != null : !STEREOTYPE_QUALIFIED_NAME_EDEFAULT.equals(stereotypeQualifiedName); + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: + return updateName != UPDATE_NAME_EDEFAULT; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: + return requiredProfiles != null && !requiredProfiles.isEmpty(); + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: + return featuresToSet != null && !featuresToSet.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (stereotypeQualifiedName: "); + result.append(stereotypeQualifiedName); + result.append(", updateName: "); + result.append(updateName); + result.append(", requiredProfiles: "); + result.append(requiredProfiles); + result.append(')'); + return result.toString(); + } + +} //StereotypeToApplyImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..70a07b6e592 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceConfigurationItemProvider.java @@ -0,0 +1,170 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.provider.AbstractAdviceBindingConfigurationItemProvider; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration} object. + * + * + * @generated + */ +public class ApplyStereotypeAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ApplyStereotypeAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ApplyStereotypeAdvicePackage.Literals.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ApplyStereotypeAdviceConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ApplyStereotypeAdviceConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ApplyStereotypeAdviceConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_ApplyStereotypeAdviceConfiguration_type") : + getString("_UI_ApplyStereotypeAdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ApplyStereotypeAdviceConfiguration.class)) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.APPLY_STEREOTYPE_ADVICE_CONFIGURATION__STEREOTYPES_TO_APPLY, + ApplyStereotypeAdviceFactory.eINSTANCE.createStereotypeToApply())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ApplyStereotypeAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceEditPlugin.java new file mode 100644 index 00000000000..c3ee598d69d --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceEditPlugin.java @@ -0,0 +1,108 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +import org.eclipse.uml2.uml.edit.UMLEditPlugin; + +/** + * This is the central singleton for the ApplyStereotypeAdvice edit plugin. + * + * + * @generated + */ +public final class ApplyStereotypeAdviceEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final ApplyStereotypeAdviceEditPlugin INSTANCE = new ApplyStereotypeAdviceEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public ApplyStereotypeAdviceEditPlugin() { + super + (new ResourceLocator [] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + UMLEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceItemProviderAdapterFactory.java new file mode 100644 index 00000000000..d12d6373eff --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ApplyStereotypeAdviceItemProviderAdapterFactory.java @@ -0,0 +1,433 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.util.ApplyStereotypeAdviceAdapterFactory; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class ApplyStereotypeAdviceItemProviderAdapterFactory extends ApplyStereotypeAdviceAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public ApplyStereotypeAdviceItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration} instances. + * + * + * @generated + */ + protected ApplyStereotypeAdviceConfigurationItemProvider applyStereotypeAdviceConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createApplyStereotypeAdviceConfigurationAdapter() { + if (applyStereotypeAdviceConfigurationItemProvider == null) { + applyStereotypeAdviceConfigurationItemProvider = new ApplyStereotypeAdviceConfigurationItemProvider(this); + } + + return applyStereotypeAdviceConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply} instances. + * + * + * @generated + */ + protected StereotypeToApplyItemProvider stereotypeToApplyItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply}. + * + * + * @generated + */ + @Override + public Adapter createStereotypeToApplyAdapter() { + if (stereotypeToApplyItemProvider == null) { + stereotypeToApplyItemProvider = new StereotypeToApplyItemProvider(this); + } + + return stereotypeToApplyItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet} instances. + * + * + * @generated + */ + protected FeatureToSetItemProvider featureToSetItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet}. + * + * + * @generated + */ + @Override + public Adapter createFeatureToSetAdapter() { + if (featureToSetItemProvider == null) { + featureToSetItemProvider = new FeatureToSetItemProvider(this); + } + + return featureToSetItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue} instances. + * + * + * @generated + */ + protected ListValueItemProvider listValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue}. + * + * + * @generated + */ + @Override + public Adapter createListValueAdapter() { + if (listValueItemProvider == null) { + listValueItemProvider = new ListValueItemProvider(this); + } + + return listValueItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue} instances. + * + * + * @generated + */ + protected ConstantValueItemProvider constantValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue}. + * + * + * @generated + */ + @Override + public Adapter createConstantValueAdapter() { + if (constantValueItemProvider == null) { + constantValueItemProvider = new ConstantValueItemProvider(this); + } + + return constantValueItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue} instances. + * + * + * @generated + */ + protected QueryExecutionValueItemProvider queryExecutionValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue}. + * + * + * @generated + */ + @Override + public Adapter createQueryExecutionValueAdapter() { + if (queryExecutionValueItemProvider == null) { + queryExecutionValueItemProvider = new QueryExecutionValueItemProvider(this); + } + + return queryExecutionValueItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (applyStereotypeAdviceConfigurationItemProvider != null) applyStereotypeAdviceConfigurationItemProvider.dispose(); + if (stereotypeToApplyItemProvider != null) stereotypeToApplyItemProvider.dispose(); + if (featureToSetItemProvider != null) featureToSetItemProvider.dispose(); + if (listValueItemProvider != null) listValueItemProvider.dispose(); + if (constantValueItemProvider != null) constantValueItemProvider.dispose(); + if (queryExecutionValueItemProvider != null) queryExecutionValueItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link ElementTypesConfigurationsPackage}. + * + * + * @generated + */ + public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends ElementTypesConfigurationsSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, + ApplyStereotypeAdviceFactory.eINSTANCE.createApplyStereotypeAdviceConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return ApplyStereotypeAdviceEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ConstantValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ConstantValueItemProvider.java new file mode 100644 index 00000000000..128284d64bc --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ConstantValueItemProvider.java @@ -0,0 +1,223 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue; + +import org.eclipse.uml2.uml.UMLFactory; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue} object. + * + * + * @generated + */ +public class ConstantValueItemProvider extends FeatureValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ConstantValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ConstantValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ConstantValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_ConstantValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ConstantValue.class)) { + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createOpaqueExpression())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createExpression())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createStringExpression())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createInstanceValue())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createTimeExpression())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createDuration())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createInterval())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createDurationInterval())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralBoolean())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralInteger())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralNull())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralReal())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralString())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralUnlimitedNatural())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createTimeInterval())); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/DynamicValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/DynamicValueItemProvider.java new file mode 100644 index 00000000000..2da60d47a16 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/DynamicValueItemProvider.java @@ -0,0 +1,93 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue} object. + * + * + * @generated + */ +public class DynamicValueItemProvider extends FeatureValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public DynamicValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_DynamicValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureToSetItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureToSetItemProvider.java new file mode 100644 index 00000000000..77da132b54f --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureToSetItemProvider.java @@ -0,0 +1,219 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet} object. + * + * + * @generated + */ +public class FeatureToSetItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureToSetItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addFeatureNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Feature Name feature. + * + * + * @generated + */ + protected void addFeatureNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_FeatureToSet_featureName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_FeatureToSet_featureName_feature", "_UI_FeatureToSet_type"), + ApplyStereotypeAdvicePackage.Literals.FEATURE_TO_SET__FEATURE_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ApplyStereotypeAdvicePackage.Literals.FEATURE_TO_SET__VALUE); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns FeatureToSet.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureToSet")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((FeatureToSet)object).getFeatureName(); + return label == null || label.length() == 0 ? + getString("_UI_FeatureToSet_type") : + getString("_UI_FeatureToSet_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(FeatureToSet.class)) { + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__FEATURE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET__VALUE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.FEATURE_TO_SET__VALUE, + ApplyStereotypeAdviceFactory.eINSTANCE.createListValue())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.FEATURE_TO_SET__VALUE, + ApplyStereotypeAdviceFactory.eINSTANCE.createConstantValue())); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.FEATURE_TO_SET__VALUE, + ApplyStereotypeAdviceFactory.eINSTANCE.createQueryExecutionValue())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ApplyStereotypeAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureValueItemProvider.java new file mode 100644 index 00000000000..6a1de060156 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/FeatureValueItemProvider.java @@ -0,0 +1,119 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue} object. + * + * + * @generated + */ +public class FeatureValueItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_FeatureValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ApplyStereotypeAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ListValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ListValueItemProvider.java new file mode 100644 index 00000000000..06939be01cb --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/ListValueItemProvider.java @@ -0,0 +1,130 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue} object. + * + * + * @generated + */ +public class ListValueItemProvider extends FeatureValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ListValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addValuesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Values feature. + * + * + * @generated + */ + protected void addValuesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ListValue_values_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ListValue_values_feature", "_UI_ListValue_type"), + ApplyStereotypeAdvicePackage.Literals.LIST_VALUE__VALUES, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns ListValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ListValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_ListValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/QueryExecutionValueItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/QueryExecutionValueItemProvider.java new file mode 100644 index 00000000000..c0ae9410f63 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/QueryExecutionValueItemProvider.java @@ -0,0 +1,104 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue} object. + * + * + * @generated + */ +public class QueryExecutionValueItemProvider extends DynamicValueItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public QueryExecutionValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns QueryExecutionValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/QueryExecutionValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_QueryExecutionValue_type"); + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/StereotypeToApplyItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/StereotypeToApplyItemProvider.java new file mode 100644 index 00000000000..f95a94df4f7 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/provider/StereotypeToApplyItemProvider.java @@ -0,0 +1,257 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceFactory; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply} object. + * + * + * @generated + */ +public class StereotypeToApplyItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public StereotypeToApplyItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addStereotypeQualifiedNamePropertyDescriptor(object); + addUpdateNamePropertyDescriptor(object); + addRequiredProfilesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Stereotype Qualified Name feature. + * + * + * @generated + */ + protected void addStereotypeQualifiedNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_StereotypeToApply_stereotypeQualifiedName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_StereotypeToApply_stereotypeQualifiedName_feature", "_UI_StereotypeToApply_type"), + ApplyStereotypeAdvicePackage.Literals.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Update Name feature. + * + * + * @generated + */ + protected void addUpdateNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_StereotypeToApply_updateName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_StereotypeToApply_updateName_feature", "_UI_StereotypeToApply_type"), + ApplyStereotypeAdvicePackage.Literals.STEREOTYPE_TO_APPLY__UPDATE_NAME, + true, + false, + false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Required Profiles feature. + * + * + * @generated + */ + protected void addRequiredProfilesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_StereotypeToApply_requiredProfiles_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_StereotypeToApply_requiredProfiles_feature", "_UI_StereotypeToApply_type"), + ApplyStereotypeAdvicePackage.Literals.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ApplyStereotypeAdvicePackage.Literals.STEREOTYPE_TO_APPLY__FEATURES_TO_SET); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns StereotypeToApply.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/StereotypeToApply")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((StereotypeToApply)object).getStereotypeQualifiedName(); + return label == null || label.length() == 0 ? + getString("_UI_StereotypeToApply_type") : + getString("_UI_StereotypeToApply_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(StereotypeToApply.class)) { + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ApplyStereotypeAdvicePackage.Literals.STEREOTYPE_TO_APPLY__FEATURES_TO_SET, + ApplyStereotypeAdviceFactory.eINSTANCE.createFeatureToSet())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ApplyStereotypeAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceAdapterFactory.java new file mode 100644 index 00000000000..bff9f19f793 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceAdapterFactory.java @@ -0,0 +1,333 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage + * @generated + */ +public class ApplyStereotypeAdviceAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static ApplyStereotypeAdvicePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public ApplyStereotypeAdviceAdapterFactory() { + if (modelPackage == null) { + modelPackage = ApplyStereotypeAdvicePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected ApplyStereotypeAdviceSwitch modelSwitch = + new ApplyStereotypeAdviceSwitch() { + @Override + public Adapter caseApplyStereotypeAdviceConfiguration(ApplyStereotypeAdviceConfiguration object) { + return createApplyStereotypeAdviceConfigurationAdapter(); + } + @Override + public Adapter caseStereotypeToApply(StereotypeToApply object) { + return createStereotypeToApplyAdapter(); + } + @Override + public Adapter caseFeatureToSet(FeatureToSet object) { + return createFeatureToSetAdapter(); + } + @Override + public Adapter caseFeatureValue(FeatureValue object) { + return createFeatureValueAdapter(); + } + @Override + public Adapter caseListValue(ListValue object) { + return createListValueAdapter(); + } + @Override + public Adapter caseConstantValue(ConstantValue object) { + return createConstantValueAdapter(); + } + @Override + public Adapter caseDynamicValue(DynamicValue object) { + return createDynamicValueAdapter(); + } + @Override + public Adapter caseQueryExecutionValue(QueryExecutionValue object) { + return createQueryExecutionValueAdapter(); + } + @Override + public Adapter caseConfigurationElement(ConfigurationElement object) { + return createConfigurationElementAdapter(); + } + @Override + public Adapter caseAdviceConfiguration(AdviceConfiguration object) { + return createAdviceConfigurationAdapter(); + } + @Override + public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return createIdentifiedConfigurationAdapter(); + } + @Override + public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return createAbstractAdviceBindingConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration + * @generated + */ + public Adapter createApplyStereotypeAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply Stereotype To Apply}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.StereotypeToApply + * @generated + */ + public Adapter createStereotypeToApplyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet Feature To Set}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureToSet + * @generated + */ + public Adapter createFeatureToSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue Feature Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.FeatureValue + * @generated + */ + public Adapter createFeatureValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue List Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ListValue + * @generated + */ + public Adapter createListValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue Constant Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ConstantValue + * @generated + */ + public Adapter createConstantValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue Dynamic Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.DynamicValue + * @generated + */ + public Adapter createDynamicValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue Query Execution Value}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.QueryExecutionValue + * @generated + */ + public Adapter createQueryExecutionValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + public Adapter createConfigurationElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration + * @generated + */ + public Adapter createAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + public Adapter createIdentifiedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration + * @generated + */ + public Adapter createAbstractAdviceBindingConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //ApplyStereotypeAdviceAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceFactoryImpl.java new file mode 100644 index 00000000000..9b6478b6dec --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.util.ApplyStereotypeAdviceResourceImpl + * @generated + */ +public class ApplyStereotypeAdviceResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public ApplyStereotypeAdviceResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new ApplyStereotypeAdviceResourceImpl(uri); + return result; + } + +} //ApplyStereotypeAdviceResourceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceImpl.java new file mode 100644 index 00000000000..6986b5a64b4 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.util.ApplyStereotypeAdviceResourceFactoryImpl + * @generated + */ +public class ApplyStereotypeAdviceResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public ApplyStereotypeAdviceResourceImpl(URI uri) { + super(uri); + } + +} //ApplyStereotypeAdviceResourceImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceSwitch.java new file mode 100644 index 00000000000..47167df0a99 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceSwitch.java @@ -0,0 +1,341 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.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.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.*; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage + * @generated + */ +public class ApplyStereotypeAdviceSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static ApplyStereotypeAdvicePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public ApplyStereotypeAdviceSwitch() { + if (modelPackage == null) { + modelPackage = ApplyStereotypeAdvicePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case ApplyStereotypeAdvicePackage.APPLY_STEREOTYPE_ADVICE_CONFIGURATION: { + ApplyStereotypeAdviceConfiguration applyStereotypeAdviceConfiguration = (ApplyStereotypeAdviceConfiguration)theEObject; + T result = caseApplyStereotypeAdviceConfiguration(applyStereotypeAdviceConfiguration); + if (result == null) result = caseAbstractAdviceBindingConfiguration(applyStereotypeAdviceConfiguration); + if (result == null) result = caseAdviceConfiguration(applyStereotypeAdviceConfiguration); + if (result == null) result = caseIdentifiedConfiguration(applyStereotypeAdviceConfiguration); + if (result == null) result = caseConfigurationElement(applyStereotypeAdviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.STEREOTYPE_TO_APPLY: { + StereotypeToApply stereotypeToApply = (StereotypeToApply)theEObject; + T result = caseStereotypeToApply(stereotypeToApply); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.FEATURE_TO_SET: { + FeatureToSet featureToSet = (FeatureToSet)theEObject; + T result = caseFeatureToSet(featureToSet); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.FEATURE_VALUE: { + FeatureValue featureValue = (FeatureValue)theEObject; + T result = caseFeatureValue(featureValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.LIST_VALUE: { + ListValue listValue = (ListValue)theEObject; + T result = caseListValue(listValue); + if (result == null) result = caseFeatureValue(listValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.CONSTANT_VALUE: { + ConstantValue constantValue = (ConstantValue)theEObject; + T result = caseConstantValue(constantValue); + if (result == null) result = caseFeatureValue(constantValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.DYNAMIC_VALUE: { + DynamicValue dynamicValue = (DynamicValue)theEObject; + T result = caseDynamicValue(dynamicValue); + if (result == null) result = caseFeatureValue(dynamicValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplyStereotypeAdvicePackage.QUERY_EXECUTION_VALUE: { + QueryExecutionValue queryExecutionValue = (QueryExecutionValue)theEObject; + T result = caseQueryExecutionValue(queryExecutionValue); + if (result == null) result = caseDynamicValue(queryExecutionValue); + if (result == null) result = caseFeatureValue(queryExecutionValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseApplyStereotypeAdviceConfiguration(ApplyStereotypeAdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Stereotype To Apply'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Stereotype To Apply'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStereotypeToApply(StereotypeToApply object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Feature To Set'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Feature To Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFeatureToSet(FeatureToSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Feature Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Feature Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFeatureValue(FeatureValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'List Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'List Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseListValue(ListValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Constant Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Constant Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConstantValue(ConstantValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dynamic Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dynamic Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDynamicValue(DynamicValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Query Execution Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Query Execution Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseQueryExecutionValue(QueryExecutionValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfigurationElement(ConfigurationElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAdviceConfiguration(AdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Identified Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Identified Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //ApplyStereotypeAdviceSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceXMLProcessor.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceXMLProcessor.java new file mode 100644 index 00000000000..1a2dd24a74e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/applystereotype/util/ApplyStereotypeAdviceXMLProcessor.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdvicePackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class ApplyStereotypeAdviceXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public ApplyStereotypeAdviceXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + ApplyStereotypeAdvicePackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the ApplyStereotypeAdviceResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new ApplyStereotypeAdviceResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new ApplyStereotypeAdviceResourceFactoryImpl()); + } + return registrations; + } + +} //ApplyStereotypeAdviceXMLProcessor diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfiguration.java new file mode 100644 index 00000000000..c4859c0e130 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfiguration.java @@ -0,0 +1,69 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; + +/** + * + * A representation of the model object 'Set Type Advice Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration#getValidTypes Valid Types}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration#getCreationTypes Creation Types}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage#getSetTypeAdviceConfiguration() + * @model + * @generated + */ +public interface SetTypeAdviceConfiguration extends AbstractAdviceBindingConfiguration { + /** + * Returns the value of the 'Valid Types' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Valid Types' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Valid Types' attribute list. + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage#getSetTypeAdviceConfiguration_ValidTypes() + * @model + * @generated + */ + EList getValidTypes(); + + /** + * Returns the value of the 'Creation Types' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Creation Types' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Creation Types' attribute list. + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage#getSetTypeAdviceConfiguration_CreationTypes() + * @model + * @generated + */ + EList getCreationTypes(); + +} // SetTypeAdviceConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationFactory.java new file mode 100644 index 00000000000..81c98bedff2 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationFactory.java @@ -0,0 +1,52 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage + * @generated + */ +public interface SetTypeAdviceConfigurationFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SetTypeAdviceConfigurationFactory eINSTANCE = org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationFactoryImpl.init(); + + /** + * Returns a new object of class 'Set Type Advice Configuration'. + * + * + * @return a new object of class 'Set Type Advice Configuration'. + * @generated + */ + SetTypeAdviceConfiguration createSetTypeAdviceConfiguration(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SetTypeAdviceConfigurationPackage getSetTypeAdviceConfigurationPackage(); + +} //SetTypeAdviceConfigurationFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationPackage.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationPackage.java new file mode 100644 index 00000000000..7d6b093cc81 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceConfigurationPackage.java @@ -0,0 +1,272 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationFactory + * @model kind="package" + * @generated + */ +public interface SetTypeAdviceConfigurationPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "settype"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/uml/types/settypeadvice/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "settypeadvice"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SetTypeAdviceConfigurationPackage eINSTANCE = org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationImpl Set Type Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationPackageImpl#getSetTypeAdviceConfiguration() + * @generated + */ + int SET_TYPE_ADVICE_CONFIGURATION = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__DESCRIPTION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION; + + /** + * The feature id for the 'Before' attribute list. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__BEFORE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE; + + /** + * The feature id for the 'After' attribute list. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__AFTER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__IDENTIFIER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER; + + /** + * The feature id for the 'Target' reference. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__TARGET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET; + + /** + * The feature id for the 'Container Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION; + + /** + * The feature id for the 'Matcher Configuration' containment reference. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION; + + /** + * The feature id for the 'Inheritance' attribute. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__INHERITANCE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE; + + /** + * The feature id for the 'Valid Types' attribute list. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Creation Types' attribute list. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Set Type Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Set Type Advice Configuration' class. + * + * + * @generated + * @ordered + */ + int SET_TYPE_ADVICE_CONFIGURATION_OPERATION_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration Set Type Advice Configuration}'. + * + * + * @return the meta object for class 'Set Type Advice Configuration'. + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration + * @generated + */ + EClass getSetTypeAdviceConfiguration(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration#getValidTypes Valid Types}'. + * + * + * @return the meta object for the attribute list 'Valid Types'. + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration#getValidTypes() + * @see #getSetTypeAdviceConfiguration() + * @generated + */ + EAttribute getSetTypeAdviceConfiguration_ValidTypes(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration#getCreationTypes Creation Types}'. + * + * + * @return the meta object for the attribute list 'Creation Types'. + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration#getCreationTypes() + * @see #getSetTypeAdviceConfiguration() + * @generated + */ + EAttribute getSetTypeAdviceConfiguration_CreationTypes(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SetTypeAdviceConfigurationFactory getSetTypeAdviceConfigurationFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationImpl Set Type Advice Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationPackageImpl#getSetTypeAdviceConfiguration() + * @generated + */ + EClass SET_TYPE_ADVICE_CONFIGURATION = eINSTANCE.getSetTypeAdviceConfiguration(); + + /** + * The meta object literal for the 'Valid Types' attribute list feature. + * + * + * @generated + */ + EAttribute SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES = eINSTANCE.getSetTypeAdviceConfiguration_ValidTypes(); + + /** + * The meta object literal for the 'Creation Types' attribute list feature. + * + * + * @generated + */ + EAttribute SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES = eINSTANCE.getSetTypeAdviceConfiguration_CreationTypes(); + + } + +} //SetTypeAdviceConfigurationPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationFactoryImpl.java new file mode 100644 index 00000000000..594baea921e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationFactoryImpl.java @@ -0,0 +1,105 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.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.uml.types.core.advices.settype.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SetTypeAdviceConfigurationFactoryImpl extends EFactoryImpl implements SetTypeAdviceConfigurationFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SetTypeAdviceConfigurationFactory init() { + try { + SetTypeAdviceConfigurationFactory theSetTypeAdviceConfigurationFactory = (SetTypeAdviceConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(SetTypeAdviceConfigurationPackage.eNS_URI); + if (theSetTypeAdviceConfigurationFactory != null) { + return theSetTypeAdviceConfigurationFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SetTypeAdviceConfigurationFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SetTypeAdviceConfigurationFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION: return createSetTypeAdviceConfiguration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SetTypeAdviceConfiguration createSetTypeAdviceConfiguration() { + SetTypeAdviceConfigurationImpl setTypeAdviceConfiguration = new SetTypeAdviceConfigurationImpl(); + return setTypeAdviceConfiguration; + } + + /** + * + * + * @generated + */ + public SetTypeAdviceConfigurationPackage getSetTypeAdviceConfigurationPackage() { + return (SetTypeAdviceConfigurationPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SetTypeAdviceConfigurationPackage getPackage() { + return SetTypeAdviceConfigurationPackage.eINSTANCE; + } + +} //SetTypeAdviceConfigurationFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationImpl.java new file mode 100644 index 00000000000..d6ccf431f33 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationImpl.java @@ -0,0 +1,195 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl; + +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage; + +/** + * + * An implementation of the model object 'Set Type Advice Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationImpl#getValidTypes Valid Types}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.advices.settype.impl.SetTypeAdviceConfigurationImpl#getCreationTypes Creation Types}
  • + *
+ * + * @generated + */ +public class SetTypeAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements SetTypeAdviceConfiguration { + /** + * The cached value of the '{@link #getValidTypes() Valid Types}' attribute list. + * + * + * @see #getValidTypes() + * @generated + * @ordered + */ + protected EList validTypes; + + /** + * The cached value of the '{@link #getCreationTypes() Creation Types}' attribute list. + * + * + * @see #getCreationTypes() + * @generated + * @ordered + */ + protected EList creationTypes; + + /** + * + * + * @generated + */ + protected SetTypeAdviceConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SetTypeAdviceConfigurationPackage.Literals.SET_TYPE_ADVICE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getValidTypes() { + if (validTypes == null) { + validTypes = new EDataTypeUniqueEList(String.class, this, SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES); + } + return validTypes; + } + + /** + * + * + * @generated + */ + public EList getCreationTypes() { + if (creationTypes == null) { + creationTypes = new EDataTypeUniqueEList(String.class, this, SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES); + } + return creationTypes; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: + return getValidTypes(); + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: + return getCreationTypes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: + getValidTypes().clear(); + getValidTypes().addAll((Collection)newValue); + return; + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: + getCreationTypes().clear(); + getCreationTypes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: + getValidTypes().clear(); + return; + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: + getCreationTypes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: + return validTypes != null && !validTypes.isEmpty(); + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: + return creationTypes != null && !creationTypes.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (validTypes: "); + result.append(validTypes); + result.append(", creationTypes: "); + result.append(creationTypes); + result.append(')'); + return result.toString(); + } + +} //SetTypeAdviceConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationPackageImpl.java new file mode 100644 index 00000000000..10260bff21a --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/impl/SetTypeAdviceConfigurationPackageImpl.java @@ -0,0 +1,210 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationFactory; +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class SetTypeAdviceConfigurationPackageImpl extends EPackageImpl implements SetTypeAdviceConfigurationPackage { + /** + * + * + * @generated + */ + private EClass setTypeAdviceConfigurationEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage#eNS_URI + * @see #init() + * @generated + */ + private SetTypeAdviceConfigurationPackageImpl() { + super(eNS_URI, SetTypeAdviceConfigurationFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link SetTypeAdviceConfigurationPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static SetTypeAdviceConfigurationPackage init() { + if (isInited) return (SetTypeAdviceConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(SetTypeAdviceConfigurationPackage.eNS_URI); + + // Obtain or create and register package + SetTypeAdviceConfigurationPackageImpl theSetTypeAdviceConfigurationPackage = (SetTypeAdviceConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SetTypeAdviceConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SetTypeAdviceConfigurationPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + ElementTypesConfigurationsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theSetTypeAdviceConfigurationPackage.createPackageContents(); + + // Initialize created meta-data + theSetTypeAdviceConfigurationPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSetTypeAdviceConfigurationPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SetTypeAdviceConfigurationPackage.eNS_URI, theSetTypeAdviceConfigurationPackage); + return theSetTypeAdviceConfigurationPackage; + } + + /** + * + * + * @generated + */ + public EClass getSetTypeAdviceConfiguration() { + return setTypeAdviceConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSetTypeAdviceConfiguration_ValidTypes() { + return (EAttribute)setTypeAdviceConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSetTypeAdviceConfiguration_CreationTypes() { + return (EAttribute)setTypeAdviceConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public SetTypeAdviceConfigurationFactory getSetTypeAdviceConfigurationFactory() { + return (SetTypeAdviceConfigurationFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + setTypeAdviceConfigurationEClass = createEClass(SET_TYPE_ADVICE_CONFIGURATION); + createEAttribute(setTypeAdviceConfigurationEClass, SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES); + createEAttribute(setTypeAdviceConfigurationEClass, SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + setTypeAdviceConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getAbstractAdviceBindingConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(setTypeAdviceConfigurationEClass, SetTypeAdviceConfiguration.class, "SetTypeAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSetTypeAdviceConfiguration_ValidTypes(), theEcorePackage.getEString(), "validTypes", null, 0, -1, SetTypeAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSetTypeAdviceConfiguration_CreationTypes(), theEcorePackage.getEString(), "creationTypes", null, 0, -1, SetTypeAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //SetTypeAdviceConfigurationPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProvider.java new file mode 100644 index 00000000000..ae458b41e1c --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProvider.java @@ -0,0 +1,181 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.provider.AbstractAdviceBindingConfigurationItemProvider; + +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration} object. + * + * + * @generated + */ +public class SetTypeAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public SetTypeAdviceConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addValidTypesPropertyDescriptor(object); + addCreationTypesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Valid Types feature. + * + * + * @generated + */ + protected void addValidTypesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_SetTypeAdviceConfiguration_validTypes_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_SetTypeAdviceConfiguration_validTypes_feature", "_UI_SetTypeAdviceConfiguration_type"), + SetTypeAdviceConfigurationPackage.Literals.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Creation Types feature. + * + * + * @generated + */ + protected void addCreationTypesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_SetTypeAdviceConfiguration_creationTypes_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_SetTypeAdviceConfiguration_creationTypes_feature", "_UI_SetTypeAdviceConfiguration_type"), + SetTypeAdviceConfigurationPackage.Literals.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns SetTypeAdviceConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/SetTypeAdviceConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((SetTypeAdviceConfiguration)object).getDescription(); + return label == null || label.length() == 0 ? + getString("_UI_SetTypeAdviceConfiguration_type") : + getString("_UI_SetTypeAdviceConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(SetTypeAdviceConfiguration.class)) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__VALID_TYPES: + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION__CREATION_TYPES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return SetTypeAdviceEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java new file mode 100644 index 00000000000..53b63c21423 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceConfigurationItemProviderAdapterFactory.java @@ -0,0 +1,313 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch; + +import org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationFactory; + +import org.eclipse.papyrus.uml.types.core.advices.settype.util.SetTypeAdviceConfigurationAdapterFactory; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class SetTypeAdviceConfigurationItemProviderAdapterFactory extends SetTypeAdviceConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public SetTypeAdviceConfigurationItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration} instances. + * + * + * @generated + */ + protected SetTypeAdviceConfigurationItemProvider setTypeAdviceConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createSetTypeAdviceConfigurationAdapter() { + if (setTypeAdviceConfigurationItemProvider == null) { + setTypeAdviceConfigurationItemProvider = new SetTypeAdviceConfigurationItemProvider(this); + } + + return setTypeAdviceConfigurationItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (setTypeAdviceConfigurationItemProvider != null) setTypeAdviceConfigurationItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link ElementTypesConfigurationsPackage}. + * + * + * @generated + */ + public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends ElementTypesConfigurationsSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS, + SetTypeAdviceConfigurationFactory.eINSTANCE.createSetTypeAdviceConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return SetTypeAdviceEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceEditPlugin.java new file mode 100644 index 00000000000..64d1fe70af1 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/provider/SetTypeAdviceEditPlugin.java @@ -0,0 +1,105 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +/** + * This is the central singleton for the SetTypeAdvice edit plugin. + * + * + * @generated + */ +public final class SetTypeAdviceEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final SetTypeAdviceEditPlugin INSTANCE = new SetTypeAdviceEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public SetTypeAdviceEditPlugin() { + super + (new ResourceLocator [] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationAdapterFactory.java new file mode 100644 index 00000000000..83fd46391ad --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationAdapterFactory.java @@ -0,0 +1,207 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.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.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +import org.eclipse.papyrus.uml.types.core.advices.settype.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage + * @generated + */ +public class SetTypeAdviceConfigurationAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SetTypeAdviceConfigurationPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SetTypeAdviceConfigurationAdapterFactory() { + if (modelPackage == null) { + modelPackage = SetTypeAdviceConfigurationPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected SetTypeAdviceConfigurationSwitch modelSwitch = + new SetTypeAdviceConfigurationSwitch() { + @Override + public Adapter caseSetTypeAdviceConfiguration(SetTypeAdviceConfiguration object) { + return createSetTypeAdviceConfigurationAdapter(); + } + @Override + public Adapter caseConfigurationElement(ConfigurationElement object) { + return createConfigurationElementAdapter(); + } + @Override + public Adapter caseAdviceConfiguration(AdviceConfiguration object) { + return createAdviceConfigurationAdapter(); + } + @Override + public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return createIdentifiedConfigurationAdapter(); + } + @Override + public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return createAbstractAdviceBindingConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.uml.types.core.advices.settype.SetTypeAdviceConfiguration Set Type Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfiguration + * @generated + */ + public Adapter createSetTypeAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement Configuration Element}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.ConfigurationElement + * @generated + */ + public Adapter createConfigurationElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration Advice Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AdviceConfiguration + * @generated + */ + public Adapter createAdviceConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration Identified Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration + * @generated + */ + public Adapter createIdentifiedConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration Abstract Advice Binding Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration + * @generated + */ + public Adapter createAbstractAdviceBindingConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //SetTypeAdviceConfigurationAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationSwitch.java new file mode 100644 index 00000000000..59e22caf40d --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/advices/settype/util/SetTypeAdviceConfigurationSwitch.java @@ -0,0 +1,189 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.advices.settype.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.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AdviceConfiguration; +import org.eclipse.papyrus.infra.types.ConfigurationElement; +import org.eclipse.papyrus.infra.types.IdentifiedConfiguration; + +import org.eclipse.papyrus.uml.types.core.advices.settype.*; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.uml.types.core.advices.settype.SetTypeAdviceConfigurationPackage + * @generated + */ +public class SetTypeAdviceConfigurationSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static SetTypeAdviceConfigurationPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SetTypeAdviceConfigurationSwitch() { + if (modelPackage == null) { + modelPackage = SetTypeAdviceConfigurationPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case SetTypeAdviceConfigurationPackage.SET_TYPE_ADVICE_CONFIGURATION: { + SetTypeAdviceConfiguration setTypeAdviceConfiguration = (SetTypeAdviceConfiguration)theEObject; + T result = caseSetTypeAdviceConfiguration(setTypeAdviceConfiguration); + if (result == null) result = caseAbstractAdviceBindingConfiguration(setTypeAdviceConfiguration); + if (result == null) result = caseAdviceConfiguration(setTypeAdviceConfiguration); + if (result == null) result = caseIdentifiedConfiguration(setTypeAdviceConfiguration); + if (result == null) result = caseConfigurationElement(setTypeAdviceConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Set Type Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Set Type Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSetTypeAdviceConfiguration(SetTypeAdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfigurationElement(ConfigurationElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Advice Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Advice Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAdviceConfiguration(AdviceConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Identified Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Identified Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdentifiedConfiguration(IdentifiedConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Advice Binding Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //SetTypeAdviceConfigurationSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfiguration.java new file mode 100644 index 00000000000..403f83c3ce2 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfiguration.java @@ -0,0 +1,79 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getStereotypesQualifiedNames Stereotypes Qualified Names}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getProfileUri Profile Uri}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage#getStereotypeApplicationMatcherConfiguration() + * @model + * @generated + */ +public interface StereotypeApplicationMatcherConfiguration extends AbstractMatcherConfiguration { + /** + * Returns the value of the 'Stereotypes Qualified Names' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Stereotypes Qualified Names' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Stereotypes Qualified Names' attribute list. + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage#getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames() + * @model required="true" + * @generated + */ + EList getStereotypesQualifiedNames(); + + /** + * Returns the value of the 'Profile Uri' attribute. + * + *

+ * If the meaning of the 'Profile Uri' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Profile Uri' attribute. + * @see #setProfileUri(String) + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage#getStereotypeApplicationMatcherConfiguration_ProfileUri() + * @model + * @generated + */ + String getProfileUri(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getProfileUri Profile Uri}' attribute. + * + * + * @param value the new value of the 'Profile Uri' attribute. + * @see #getProfileUri() + * @generated + */ + void setProfileUri(String value); + +} // StereotypeApplicationMatcherConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherFactory.java new file mode 100644 index 00000000000..09ae893d763 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherFactory.java @@ -0,0 +1,52 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage + * @generated + */ +public interface StereotypeApplicationMatcherFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + StereotypeApplicationMatcherFactory eINSTANCE = org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherFactoryImpl.init(); + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + StereotypeApplicationMatcherConfiguration createStereotypeApplicationMatcherConfiguration(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + StereotypeApplicationMatcherPackage getStereotypeApplicationMatcherPackage(); + +} //StereotypeApplicationMatcherFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherPackage.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherPackage.java new file mode 100644 index 00000000000..1e25140e001 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherPackage.java @@ -0,0 +1,200 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherFactory + * @model kind="package" + * @generated + */ +public interface StereotypeApplicationMatcherPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "stereotype"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/uml/types/stereotypematcher/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "stereotypematcher"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + StereotypeApplicationMatcherPackage eINSTANCE = org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherPackageImpl#getStereotypeApplicationMatcherConfiguration() + * @generated + */ + int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION = 0; + + /** + * The feature id for the 'Stereotypes Qualified Names' attribute list. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES = ElementTypesConfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Profile Uri' attribute. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI = ElementTypesConfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION_OPERATION_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_MATCHER_CONFIGURATION_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration + * @generated + */ + EClass getStereotypeApplicationMatcherConfiguration(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getStereotypesQualifiedNames Stereotypes Qualified Names}'. + * + * + * @return the meta object for the attribute list 'Stereotypes Qualified Names'. + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getStereotypesQualifiedNames() + * @see #getStereotypeApplicationMatcherConfiguration() + * @generated + */ + EAttribute getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getProfileUri Profile Uri}'. + * + * + * @return the meta object for the attribute 'Profile Uri'. + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration#getProfileUri() + * @see #getStereotypeApplicationMatcherConfiguration() + * @generated + */ + EAttribute getStereotypeApplicationMatcherConfiguration_ProfileUri(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + StereotypeApplicationMatcherFactory getStereotypeApplicationMatcherFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherPackageImpl#getStereotypeApplicationMatcherConfiguration() + * @generated + */ + EClass STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION = eINSTANCE.getStereotypeApplicationMatcherConfiguration(); + + /** + * The meta object literal for the 'Stereotypes Qualified Names' attribute list feature. + * + * + * @generated + */ + EAttribute STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES = eINSTANCE.getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames(); + + /** + * The meta object literal for the 'Profile Uri' attribute feature. + * + * + * @generated + */ + EAttribute STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI = eINSTANCE.getStereotypeApplicationMatcherConfiguration_ProfileUri(); + + } + +} //StereotypeApplicationMatcherPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherConfigurationImpl.java new file mode 100644 index 00000000000..168abf4d379 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherConfigurationImpl.java @@ -0,0 +1,217 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.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.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.infra.types.impl.AbstractMatcherConfigurationImpl; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherConfigurationImpl#getStereotypesQualifiedNames Stereotypes Qualified Names}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl.StereotypeApplicationMatcherConfigurationImpl#getProfileUri Profile Uri}
  • + *
+ * + * @generated + */ +public class StereotypeApplicationMatcherConfigurationImpl extends AbstractMatcherConfigurationImpl implements StereotypeApplicationMatcherConfiguration { + /** + * The cached value of the '{@link #getStereotypesQualifiedNames() Stereotypes Qualified Names}' attribute list. + * + * + * @see #getStereotypesQualifiedNames() + * @generated + * @ordered + */ + protected EList stereotypesQualifiedNames; + + /** + * The default value of the '{@link #getProfileUri() Profile Uri}' attribute. + * + * + * @see #getProfileUri() + * @generated + * @ordered + */ + protected static final String PROFILE_URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProfileUri() Profile Uri}' attribute. + * + * + * @see #getProfileUri() + * @generated + * @ordered + */ + protected String profileUri = PROFILE_URI_EDEFAULT; + + /** + * + * + * @generated + */ + protected StereotypeApplicationMatcherConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return StereotypeApplicationMatcherPackage.Literals.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public EList getStereotypesQualifiedNames() { + if (stereotypesQualifiedNames == null) { + stereotypesQualifiedNames = new EDataTypeUniqueEList(String.class, this, StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES); + } + return stereotypesQualifiedNames; + } + + /** + * + * + * @generated + */ + public String getProfileUri() { + return profileUri; + } + + /** + * + * + * @generated + */ + public void setProfileUri(String newProfileUri) { + String oldProfileUri = profileUri; + profileUri = newProfileUri; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI, oldProfileUri, profileUri)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: + return getStereotypesQualifiedNames(); + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: + return getProfileUri(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: + getStereotypesQualifiedNames().clear(); + getStereotypesQualifiedNames().addAll((Collection)newValue); + return; + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: + setProfileUri((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: + getStereotypesQualifiedNames().clear(); + return; + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: + setProfileUri(PROFILE_URI_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: + return stereotypesQualifiedNames != null && !stereotypesQualifiedNames.isEmpty(); + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: + return PROFILE_URI_EDEFAULT == null ? profileUri != null : !PROFILE_URI_EDEFAULT.equals(profileUri); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (stereotypesQualifiedNames: "); + result.append(stereotypesQualifiedNames); + result.append(", profileUri: "); + result.append(profileUri); + result.append(')'); + return result.toString(); + } + +} //StereotypeApplicationMatcherConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherFactoryImpl.java new file mode 100644 index 00000000000..f00895c06eb --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherFactoryImpl.java @@ -0,0 +1,105 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.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.uml.types.core.matchers.stereotype.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class StereotypeApplicationMatcherFactoryImpl extends EFactoryImpl implements StereotypeApplicationMatcherFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static StereotypeApplicationMatcherFactory init() { + try { + StereotypeApplicationMatcherFactory theStereotypeApplicationMatcherFactory = (StereotypeApplicationMatcherFactory)EPackage.Registry.INSTANCE.getEFactory(StereotypeApplicationMatcherPackage.eNS_URI); + if (theStereotypeApplicationMatcherFactory != null) { + return theStereotypeApplicationMatcherFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new StereotypeApplicationMatcherFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public StereotypeApplicationMatcherFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION: return createStereotypeApplicationMatcherConfiguration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public StereotypeApplicationMatcherConfiguration createStereotypeApplicationMatcherConfiguration() { + StereotypeApplicationMatcherConfigurationImpl stereotypeApplicationMatcherConfiguration = new StereotypeApplicationMatcherConfigurationImpl(); + return stereotypeApplicationMatcherConfiguration; + } + + /** + * + * + * @generated + */ + public StereotypeApplicationMatcherPackage getStereotypeApplicationMatcherPackage() { + return (StereotypeApplicationMatcherPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static StereotypeApplicationMatcherPackage getPackage() { + return StereotypeApplicationMatcherPackage.eINSTANCE; + } + +} //StereotypeApplicationMatcherFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherPackageImpl.java new file mode 100644 index 00000000000..771d28c87f9 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/impl/StereotypeApplicationMatcherPackageImpl.java @@ -0,0 +1,210 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherFactory; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class StereotypeApplicationMatcherPackageImpl extends EPackageImpl implements StereotypeApplicationMatcherPackage { + /** + * + * + * @generated + */ + private EClass stereotypeApplicationMatcherConfigurationEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage#eNS_URI + * @see #init() + * @generated + */ + private StereotypeApplicationMatcherPackageImpl() { + super(eNS_URI, StereotypeApplicationMatcherFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link StereotypeApplicationMatcherPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static StereotypeApplicationMatcherPackage init() { + if (isInited) return (StereotypeApplicationMatcherPackage)EPackage.Registry.INSTANCE.getEPackage(StereotypeApplicationMatcherPackage.eNS_URI); + + // Obtain or create and register package + StereotypeApplicationMatcherPackageImpl theStereotypeApplicationMatcherPackage = (StereotypeApplicationMatcherPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof StereotypeApplicationMatcherPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new StereotypeApplicationMatcherPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + ElementTypesConfigurationsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theStereotypeApplicationMatcherPackage.createPackageContents(); + + // Initialize created meta-data + theStereotypeApplicationMatcherPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theStereotypeApplicationMatcherPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(StereotypeApplicationMatcherPackage.eNS_URI, theStereotypeApplicationMatcherPackage); + return theStereotypeApplicationMatcherPackage; + } + + /** + * + * + * @generated + */ + public EClass getStereotypeApplicationMatcherConfiguration() { + return stereotypeApplicationMatcherConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames() { + return (EAttribute)stereotypeApplicationMatcherConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getStereotypeApplicationMatcherConfiguration_ProfileUri() { + return (EAttribute)stereotypeApplicationMatcherConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public StereotypeApplicationMatcherFactory getStereotypeApplicationMatcherFactory() { + return (StereotypeApplicationMatcherFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + stereotypeApplicationMatcherConfigurationEClass = createEClass(STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION); + createEAttribute(stereotypeApplicationMatcherConfigurationEClass, STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES); + createEAttribute(stereotypeApplicationMatcherConfigurationEClass, STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + stereotypeApplicationMatcherConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getAbstractMatcherConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(stereotypeApplicationMatcherConfigurationEClass, StereotypeApplicationMatcherConfiguration.class, "StereotypeApplicationMatcherConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStereotypeApplicationMatcherConfiguration_StereotypesQualifiedNames(), theEcorePackage.getEString(), "stereotypesQualifiedNames", null, 1, -1, StereotypeApplicationMatcherConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getStereotypeApplicationMatcherConfiguration_ProfileUri(), ecorePackage.getEString(), "profileUri", null, 0, 1, StereotypeApplicationMatcherConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //StereotypeApplicationMatcherPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java new file mode 100644 index 00000000000..c9b50ccf08e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationEditPlugin.java @@ -0,0 +1,105 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +/** + * This is the central singleton for the StereotypeApplicationMatcherConfiguration edit plugin. + * + * + * @generated + */ +public final class StereotypeApplicationMatcherConfigurationEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final StereotypeApplicationMatcherConfigurationEditPlugin INSTANCE = new StereotypeApplicationMatcherConfigurationEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public StereotypeApplicationMatcherConfigurationEditPlugin() { + super + (new ResourceLocator [] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationItemProvider.java new file mode 100644 index 00000000000..af6a017f637 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherConfigurationItemProvider.java @@ -0,0 +1,181 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.papyrus.infra.types.provider.AbstractMatcherConfigurationItemProvider; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration} object. + * + * + * @generated + */ +public class StereotypeApplicationMatcherConfigurationItemProvider extends AbstractMatcherConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public StereotypeApplicationMatcherConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addStereotypesQualifiedNamesPropertyDescriptor(object); + addProfileUriPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Stereotypes Qualified Names feature. + * + * + * @generated + */ + protected void addStereotypesQualifiedNamesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_StereotypeApplicationMatcherConfiguration_stereotypesQualifiedNames_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_StereotypeApplicationMatcherConfiguration_stereotypesQualifiedNames_feature", "_UI_StereotypeApplicationMatcherConfiguration_type"), + StereotypeApplicationMatcherPackage.Literals.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Profile Uri feature. + * + * + * @generated + */ + protected void addProfileUriPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_StereotypeApplicationMatcherConfiguration_profileUri_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_StereotypeApplicationMatcherConfiguration_profileUri_feature", "_UI_StereotypeApplicationMatcherConfiguration_type"), + StereotypeApplicationMatcherPackage.Literals.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns StereotypeApplicationMatcherConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/StereotypeApplicationMatcherConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((StereotypeApplicationMatcherConfiguration)object).getProfileUri(); + return label == null || label.length() == 0 ? + getString("_UI_StereotypeApplicationMatcherConfiguration_type") : + getString("_UI_StereotypeApplicationMatcherConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(StereotypeApplicationMatcherConfiguration.class)) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__STEREOTYPES_QUALIFIED_NAMES: + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION__PROFILE_URI: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return StereotypeApplicationMatcherConfigurationEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherItemProviderAdapterFactory.java new file mode 100644 index 00000000000..1f0440db757 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/provider/StereotypeApplicationMatcherItemProviderAdapterFactory.java @@ -0,0 +1,345 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.ContainerConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; + +import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherFactory; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.util.StereotypeApplicationMatcherAdapterFactory; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class StereotypeApplicationMatcherItemProviderAdapterFactory extends StereotypeApplicationMatcherAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public StereotypeApplicationMatcherItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration} instances. + * + * + * @generated + */ + protected StereotypeApplicationMatcherConfigurationItemProvider stereotypeApplicationMatcherConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createStereotypeApplicationMatcherConfigurationAdapter() { + if (stereotypeApplicationMatcherConfigurationItemProvider == null) { + stereotypeApplicationMatcherConfigurationItemProvider = new StereotypeApplicationMatcherConfigurationItemProvider(this); + } + + return stereotypeApplicationMatcherConfigurationItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (stereotypeApplicationMatcherConfigurationItemProvider != null) stereotypeApplicationMatcherConfigurationItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link ElementTypesConfigurationsPackage}. + * + * + * @generated + */ + public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends ElementTypesConfigurationsSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + /** + * + * + * @generated + */ + @Override + public Object caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION, + StereotypeApplicationMatcherFactory.eINSTANCE.createStereotypeApplicationMatcherConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + @Override + public Object caseSpecializationTypeConfiguration(SpecializationTypeConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.SPECIALIZATION_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, + StereotypeApplicationMatcherFactory.eINSTANCE.createStereotypeApplicationMatcherConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + @Override + public Object caseContainerConfiguration(ContainerConfiguration object) { + newChildDescriptors.add + (createChildParameter + (ElementTypesConfigurationsPackage.Literals.CONTAINER_CONFIGURATION__CONTAINER_MATCHER_CONFIGURATION, + StereotypeApplicationMatcherFactory.eINSTANCE.createStereotypeApplicationMatcherConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject)object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return StereotypeApplicationMatcherConfigurationEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherAdapterFactory.java new file mode 100644 index 00000000000..ac6c7eb3023 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherAdapterFactory.java @@ -0,0 +1,150 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.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.types.AbstractMatcherConfiguration; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage + * @generated + */ +public class StereotypeApplicationMatcherAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static StereotypeApplicationMatcherPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public StereotypeApplicationMatcherAdapterFactory() { + if (modelPackage == null) { + modelPackage = StereotypeApplicationMatcherPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected StereotypeApplicationMatcherSwitch modelSwitch = + new StereotypeApplicationMatcherSwitch() { + @Override + public Adapter caseStereotypeApplicationMatcherConfiguration(StereotypeApplicationMatcherConfiguration object) { + return createStereotypeApplicationMatcherConfigurationAdapter(); + } + @Override + public Adapter caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { + return createAbstractMatcherConfigurationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration + * @generated + */ + public Adapter createStereotypeApplicationMatcherConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration Abstract Matcher Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration + * @generated + */ + public Adapter createAbstractMatcherConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //StereotypeApplicationMatcherAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceFactoryImpl.java new file mode 100644 index 00000000000..ad92e152ec6 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.util.StereotypeApplicationMatcherResourceImpl + * @generated + */ +public class StereotypeApplicationMatcherResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public StereotypeApplicationMatcherResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new StereotypeApplicationMatcherResourceImpl(uri); + return result; + } + +} //StereotypeApplicationMatcherResourceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceImpl.java new file mode 100644 index 00000000000..7ed6e67b73d --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.util.StereotypeApplicationMatcherResourceFactoryImpl + * @generated + */ +public class StereotypeApplicationMatcherResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public StereotypeApplicationMatcherResourceImpl(URI uri) { + super(uri); + } + +} //StereotypeApplicationMatcherResourceImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherSwitch.java new file mode 100644 index 00000000000..9657a8618af --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherSwitch.java @@ -0,0 +1,138 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.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.types.AbstractMatcherConfiguration; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.*; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage + * @generated + */ +public class StereotypeApplicationMatcherSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static StereotypeApplicationMatcherPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public StereotypeApplicationMatcherSwitch() { + if (modelPackage == null) { + modelPackage = StereotypeApplicationMatcherPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case StereotypeApplicationMatcherPackage.STEREOTYPE_APPLICATION_MATCHER_CONFIGURATION: { + StereotypeApplicationMatcherConfiguration stereotypeApplicationMatcherConfiguration = (StereotypeApplicationMatcherConfiguration)theEObject; + T result = caseStereotypeApplicationMatcherConfiguration(stereotypeApplicationMatcherConfiguration); + if (result == null) result = caseAbstractMatcherConfiguration(stereotypeApplicationMatcherConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStereotypeApplicationMatcherConfiguration(StereotypeApplicationMatcherConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Matcher Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractMatcherConfiguration(AbstractMatcherConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //StereotypeApplicationMatcherSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherXMLProcessor.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherXMLProcessor.java new file mode 100644 index 00000000000..578738ea693 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/matchers/stereotype/util/StereotypeApplicationMatcherXMLProcessor.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class StereotypeApplicationMatcherXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public StereotypeApplicationMatcherXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + StereotypeApplicationMatcherPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the StereotypeApplicationMatcherResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new StereotypeApplicationMatcherResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new StereotypeApplicationMatcherResourceFactoryImpl()); + } + return registrations; + } + +} //StereotypeApplicationMatcherXMLProcessor diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfiguration.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfiguration.java new file mode 100644 index 00000000000..ee784ffb1dc --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfiguration.java @@ -0,0 +1,112 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype; + +/** + * + * A representation of the model object 'Invariant Stereotype Rule Configuration'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName Stereotype Qualified Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getRequiredProfile Required Profile}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#isStrict Strict}
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration() + * @model + * @generated + */ +public interface InvariantStereotypeRuleConfiguration extends org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration { + /** + * Returns the value of the 'Stereotype Qualified Name' attribute. + * + *

+ * If the meaning of the 'Stereotype Qualified Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Stereotype Qualified Name' attribute. + * @see #setStereotypeQualifiedName(String) + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName() + * @model required="true" + * @generated + */ + String getStereotypeQualifiedName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName Stereotype Qualified Name}' attribute. + * + * + * @param value the new value of the 'Stereotype Qualified Name' attribute. + * @see #getStereotypeQualifiedName() + * @generated + */ + void setStereotypeQualifiedName(String value); + + /** + * Returns the value of the 'Required Profile' attribute. + * + *

+ * If the meaning of the 'Required Profile' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Required Profile' attribute. + * @see #setRequiredProfile(String) + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration_RequiredProfile() + * @model + * @generated + */ + String getRequiredProfile(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getRequiredProfile Required Profile}' attribute. + * + * + * @param value the new value of the 'Required Profile' attribute. + * @see #getRequiredProfile() + * @generated + */ + void setRequiredProfile(String value); + + /** + * Returns the value of the 'Strict' attribute. + * + *

+ * If the meaning of the 'Strict' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Strict' attribute. + * @see #setStrict(boolean) + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage#getInvariantStereotypeRuleConfiguration_Strict() + * @model required="true" + * @generated + */ + boolean isStrict(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#isStrict Strict}' attribute. + * + * + * @param value the new value of the 'Strict' attribute. + * @see #isStrict() + * @generated + */ + void setStrict(boolean value); + +} // InvariantStereotypeRuleConfiguration diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationFactory.java new file mode 100644 index 00000000000..dfc4eab351e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationFactory.java @@ -0,0 +1,52 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage + * @generated + */ +public interface InvariantStereotypeRuleConfigurationFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + InvariantStereotypeRuleConfigurationFactory eINSTANCE = org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationFactoryImpl.init(); + + /** + * Returns a new object of class 'Invariant Stereotype Rule Configuration'. + * + * + * @return a new object of class 'Invariant Stereotype Rule Configuration'. + * @generated + */ + InvariantStereotypeRuleConfiguration createInvariantStereotypeRuleConfiguration(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + InvariantStereotypeRuleConfigurationPackage getInvariantStereotypeRuleConfigurationPackage(); + +} //InvariantStereotypeRuleConfigurationFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationPackage.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationPackage.java new file mode 100644 index 00000000000..2f17a8a2f1e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRuleConfigurationPackage.java @@ -0,0 +1,228 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationFactory + * @model kind="package" + * @generated + */ +public interface InvariantStereotypeRuleConfigurationPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "invariantstereotype"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/uml/types/invariantstereotyperule/1.1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "invariantstereotyperule"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + InvariantStereotypeRuleConfigurationPackage eINSTANCE = org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl Invariant Stereotype Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationPackageImpl#getInvariantStereotypeRuleConfiguration() + * @generated + */ + int INVARIANT_STEREOTYPE_RULE_CONFIGURATION = 0; + + /** + * The feature id for the 'Stereotype Qualified Name' attribute. + * + * + * @generated + * @ordered + */ + int INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Required Profile' attribute. + * + * + * @generated + * @ordered + */ + int INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Strict' attribute. + * + * + * @generated + * @ordered + */ + int INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Invariant Stereotype Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int INVARIANT_STEREOTYPE_RULE_CONFIGURATION_FEATURE_COUNT = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 3; + + /** + * The number of operations of the 'Invariant Stereotype Rule Configuration' class. + * + * + * @generated + * @ordered + */ + int INVARIANT_STEREOTYPE_RULE_CONFIGURATION_OPERATION_COUNT = RuleBasedPackage.RULE_CONFIGURATION_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration Invariant Stereotype Rule Configuration}'. + * + * + * @return the meta object for class 'Invariant Stereotype Rule Configuration'. + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration + * @generated + */ + EClass getInvariantStereotypeRuleConfiguration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName Stereotype Qualified Name}'. + * + * + * @return the meta object for the attribute 'Stereotype Qualified Name'. + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getStereotypeQualifiedName() + * @see #getInvariantStereotypeRuleConfiguration() + * @generated + */ + EAttribute getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getRequiredProfile Required Profile}'. + * + * + * @return the meta object for the attribute 'Required Profile'. + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#getRequiredProfile() + * @see #getInvariantStereotypeRuleConfiguration() + * @generated + */ + EAttribute getInvariantStereotypeRuleConfiguration_RequiredProfile(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#isStrict Strict}'. + * + * + * @return the meta object for the attribute 'Strict'. + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration#isStrict() + * @see #getInvariantStereotypeRuleConfiguration() + * @generated + */ + EAttribute getInvariantStereotypeRuleConfiguration_Strict(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + InvariantStereotypeRuleConfigurationFactory getInvariantStereotypeRuleConfigurationFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl Invariant Stereotype Rule Configuration}' class. + * + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationPackageImpl#getInvariantStereotypeRuleConfiguration() + * @generated + */ + EClass INVARIANT_STEREOTYPE_RULE_CONFIGURATION = eINSTANCE.getInvariantStereotypeRuleConfiguration(); + + /** + * The meta object literal for the 'Stereotype Qualified Name' attribute feature. + * + * + * @generated + */ + EAttribute INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME = eINSTANCE.getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName(); + + /** + * The meta object literal for the 'Required Profile' attribute feature. + * + * + * @generated + */ + EAttribute INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE = eINSTANCE.getInvariantStereotypeRuleConfiguration_RequiredProfile(); + + /** + * The meta object literal for the 'Strict' attribute feature. + * + * + * @generated + */ + EAttribute INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT = eINSTANCE.getInvariantStereotypeRuleConfiguration_Strict(); + + } + +} //InvariantStereotypeRuleConfigurationPackage diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java new file mode 100644 index 00000000000..4261b68d937 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationFactoryImpl.java @@ -0,0 +1,105 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.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.uml.types.core.rules.invariantstereotype.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class InvariantStereotypeRuleConfigurationFactoryImpl extends EFactoryImpl implements InvariantStereotypeRuleConfigurationFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static InvariantStereotypeRuleConfigurationFactory init() { + try { + InvariantStereotypeRuleConfigurationFactory theInvariantStereotypeRuleConfigurationFactory = (InvariantStereotypeRuleConfigurationFactory) EPackage.Registry.INSTANCE.getEFactory(InvariantStereotypeRuleConfigurationPackage.eNS_URI); + if (theInvariantStereotypeRuleConfigurationFactory != null) { + return theInvariantStereotypeRuleConfigurationFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new InvariantStereotypeRuleConfigurationFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION: + return createInvariantStereotypeRuleConfiguration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public InvariantStereotypeRuleConfiguration createInvariantStereotypeRuleConfiguration() { + InvariantStereotypeRuleConfigurationImpl invariantStereotypeRuleConfiguration = new InvariantStereotypeRuleConfigurationImpl(); + return invariantStereotypeRuleConfiguration; + } + + /** + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationPackage getInvariantStereotypeRuleConfigurationPackage() { + return (InvariantStereotypeRuleConfigurationPackage) getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static InvariantStereotypeRuleConfigurationPackage getPackage() { + return InvariantStereotypeRuleConfigurationPackage.eINSTANCE; + } + +} //InvariantStereotypeRuleConfigurationFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationImpl.java new file mode 100644 index 00000000000..5b37449db1c --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationImpl.java @@ -0,0 +1,280 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.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.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage; + +/** + * + * An implementation of the model object 'Invariant Stereotype Rule Configuration'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl#getStereotypeQualifiedName Stereotype Qualified Name}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl#getRequiredProfile Required Profile}
  • + *
  • {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl.InvariantStereotypeRuleConfigurationImpl#isStrict Strict}
  • + *
+ * + * @generated + */ +public class InvariantStereotypeRuleConfigurationImpl extends org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl implements InvariantStereotypeRuleConfiguration { + /** + * The default value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. + * + * + * @see #getStereotypeQualifiedName() + * @generated + * @ordered + */ + protected static final String STEREOTYPE_QUALIFIED_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStereotypeQualifiedName() Stereotype Qualified Name}' attribute. + * + * + * @see #getStereotypeQualifiedName() + * @generated + * @ordered + */ + protected String stereotypeQualifiedName = STEREOTYPE_QUALIFIED_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getRequiredProfile() Required Profile}' attribute. + * + * + * @see #getRequiredProfile() + * @generated + * @ordered + */ + protected static final String REQUIRED_PROFILE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRequiredProfile() Required Profile}' attribute. + * + * + * @see #getRequiredProfile() + * @generated + * @ordered + */ + protected String requiredProfile = REQUIRED_PROFILE_EDEFAULT; + + /** + * The default value of the '{@link #isStrict() Strict}' attribute. + * + * + * @see #isStrict() + * @generated + * @ordered + */ + protected static final boolean STRICT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isStrict() Strict}' attribute. + * + * + * @see #isStrict() + * @generated + * @ordered + */ + protected boolean strict = STRICT_EDEFAULT; + + /** + * + * + * @generated + */ + protected InvariantStereotypeRuleConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getStereotypeQualifiedName() { + return stereotypeQualifiedName; + } + + /** + * + * + * @generated + */ + public void setStereotypeQualifiedName(String newStereotypeQualifiedName) { + String oldStereotypeQualifiedName = stereotypeQualifiedName; + stereotypeQualifiedName = newStereotypeQualifiedName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME, oldStereotypeQualifiedName, stereotypeQualifiedName)); + } + + /** + * + * + * @generated + */ + public String getRequiredProfile() { + return requiredProfile; + } + + /** + * + * + * @generated + */ + public void setRequiredProfile(String newRequiredProfile) { + String oldRequiredProfile = requiredProfile; + requiredProfile = newRequiredProfile; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE, oldRequiredProfile, requiredProfile)); + } + + /** + * + * + * @generated + */ + public boolean isStrict() { + return strict; + } + + /** + * + * + * @generated + */ + public void setStrict(boolean newStrict) { + boolean oldStrict = strict; + strict = newStrict; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT, oldStrict, strict)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: + return getStereotypeQualifiedName(); + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: + return getRequiredProfile(); + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: + return isStrict(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: + setStereotypeQualifiedName((String) newValue); + return; + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: + setRequiredProfile((String) newValue); + return; + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: + setStrict((Boolean) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: + setStereotypeQualifiedName(STEREOTYPE_QUALIFIED_NAME_EDEFAULT); + return; + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: + setRequiredProfile(REQUIRED_PROFILE_EDEFAULT); + return; + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: + setStrict(STRICT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: + return STEREOTYPE_QUALIFIED_NAME_EDEFAULT == null ? stereotypeQualifiedName != null : !STEREOTYPE_QUALIFIED_NAME_EDEFAULT.equals(stereotypeQualifiedName); + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: + return REQUIRED_PROFILE_EDEFAULT == null ? requiredProfile != null : !REQUIRED_PROFILE_EDEFAULT.equals(requiredProfile); + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: + return strict != STRICT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (stereotypeQualifiedName: "); + result.append(stereotypeQualifiedName); + result.append(", requiredProfile: "); + result.append(requiredProfile); + result.append(", strict: "); + result.append(strict); + result.append(')'); + return result.toString(); + } + +} //InvariantStereotypeRuleConfigurationImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationPackageImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationPackageImpl.java new file mode 100644 index 00000000000..bc03204f384 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/impl/InvariantStereotypeRuleConfigurationPackageImpl.java @@ -0,0 +1,226 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationFactory; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class InvariantStereotypeRuleConfigurationPackageImpl extends EPackageImpl implements InvariantStereotypeRuleConfigurationPackage { + /** + * + * + * @generated + */ + private EClass invariantStereotypeRuleConfigurationEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage#eNS_URI + * @see #init() + * @generated + */ + private InvariantStereotypeRuleConfigurationPackageImpl() { + super(eNS_URI, InvariantStereotypeRuleConfigurationFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link InvariantStereotypeRuleConfigurationPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static InvariantStereotypeRuleConfigurationPackage init() { + if (isInited) + return (InvariantStereotypeRuleConfigurationPackage) EPackage.Registry.INSTANCE.getEPackage(InvariantStereotypeRuleConfigurationPackage.eNS_URI); + + // Obtain or create and register package + InvariantStereotypeRuleConfigurationPackageImpl theInvariantStereotypeRuleConfigurationPackage = (InvariantStereotypeRuleConfigurationPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantStereotypeRuleConfigurationPackageImpl + ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantStereotypeRuleConfigurationPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + RuleBasedPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theInvariantStereotypeRuleConfigurationPackage.createPackageContents(); + + // Initialize created meta-data + theInvariantStereotypeRuleConfigurationPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theInvariantStereotypeRuleConfigurationPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(InvariantStereotypeRuleConfigurationPackage.eNS_URI, theInvariantStereotypeRuleConfigurationPackage); + return theInvariantStereotypeRuleConfigurationPackage; + } + + /** + * + * + * @generated + */ + public EClass getInvariantStereotypeRuleConfiguration() { + return invariantStereotypeRuleConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName() { + return (EAttribute) invariantStereotypeRuleConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getInvariantStereotypeRuleConfiguration_RequiredProfile() { + return (EAttribute) invariantStereotypeRuleConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getInvariantStereotypeRuleConfiguration_Strict() { + return (EAttribute) invariantStereotypeRuleConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationFactory getInvariantStereotypeRuleConfigurationFactory() { + return (InvariantStereotypeRuleConfigurationFactory) getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + invariantStereotypeRuleConfigurationEClass = createEClass(INVARIANT_STEREOTYPE_RULE_CONFIGURATION); + createEAttribute(invariantStereotypeRuleConfigurationEClass, INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME); + createEAttribute(invariantStereotypeRuleConfigurationEClass, INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE); + createEAttribute(invariantStereotypeRuleConfigurationEClass, INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + RuleBasedPackage theRuleBasedPackage = (RuleBasedPackage) EPackage.Registry.INSTANCE.getEPackage(RuleBasedPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + invariantStereotypeRuleConfigurationEClass.getESuperTypes().add(theRuleBasedPackage.getRuleConfiguration()); + + // Initialize classes, features, and operations; add parameters + initEClass(invariantStereotypeRuleConfigurationEClass, InvariantStereotypeRuleConfiguration.class, "InvariantStereotypeRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getInvariantStereotypeRuleConfiguration_StereotypeQualifiedName(), theEcorePackage.getEString(), "stereotypeQualifiedName", null, 1, 1, InvariantStereotypeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getInvariantStereotypeRuleConfiguration_RequiredProfile(), theEcorePackage.getEString(), "requiredProfile", null, 0, 1, InvariantStereotypeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getInvariantStereotypeRuleConfiguration_Strict(), ecorePackage.getEBoolean(), "strict", null, 1, 1, InvariantStereotypeRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //InvariantStereotypeRuleConfigurationPackageImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationEditPlugin.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationEditPlugin.java new file mode 100644 index 00000000000..79a1e9dadf8 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationEditPlugin.java @@ -0,0 +1,107 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin; + +import org.eclipse.papyrus.infra.types.rulebased.provider.RuleBasedEditPlugin; + +/** + * This is the central singleton for the InvariantStereotypeRuleConfiguration edit plugin. + * + * + * @generated + */ +public final class InvariantStereotypeRuleConfigurationEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final InvariantStereotypeRuleConfigurationEditPlugin INSTANCE = new InvariantStereotypeRuleConfigurationEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationEditPlugin() { + super(new ResourceLocator[] { + EcoreEditPlugin.INSTANCE, + TypesConfigurationsEditPlugin.INSTANCE, + RuleBasedEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProvider.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProvider.java new file mode 100644 index 00000000000..397672a3801 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProvider.java @@ -0,0 +1,194 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.provider; + + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration} object. + * + * + * @generated + */ +public class InvariantStereotypeRuleConfigurationItemProvider extends org.eclipse.papyrus.infra.types.rulebased.provider.RuleConfigurationItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addStereotypeQualifiedNamePropertyDescriptor(object); + addRequiredProfilePropertyDescriptor(object); + addStrictPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Stereotype Qualified Name feature. + * + * + * @generated + */ + protected void addStereotypeQualifiedNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_InvariantStereotypeRuleConfiguration_stereotypeQualifiedName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_InvariantStereotypeRuleConfiguration_stereotypeQualifiedName_feature", "_UI_InvariantStereotypeRuleConfiguration_type"), + InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Required Profile feature. + * + * + * @generated + */ + protected void addRequiredProfilePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_InvariantStereotypeRuleConfiguration_requiredProfile_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_InvariantStereotypeRuleConfiguration_requiredProfile_feature", "_UI_InvariantStereotypeRuleConfiguration_type"), + InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Strict feature. + * + * + * @generated + */ + protected void addStrictPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_InvariantStereotypeRuleConfiguration_strict_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_InvariantStereotypeRuleConfiguration_strict_feature", "_UI_InvariantStereotypeRuleConfiguration_type"), + InvariantStereotypeRuleConfigurationPackage.Literals.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT, + true, + false, + false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns InvariantStereotypeRuleConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/InvariantStereotypeRuleConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((InvariantStereotypeRuleConfiguration) object).getStereotypeQualifiedName(); + return label == null || label.length() == 0 ? getString("_UI_InvariantStereotypeRuleConfiguration_type") : getString("_UI_InvariantStereotypeRuleConfiguration_type") + " " + label; + } + + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(InvariantStereotypeRuleConfiguration.class)) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STEREOTYPE_QUALIFIED_NAME: + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__REQUIRED_PROFILE: + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION__STRICT: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return InvariantStereotypeRuleConfigurationEditPlugin.INSTANCE; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java new file mode 100644 index 00000000000..60b2f2abd76 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/provider/InvariantStereotypeRuleConfigurationItemProviderAdapterFactory.java @@ -0,0 +1,324 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.edit.command.CommandParameter; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage; +import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.util.RuleBasedSwitch; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationFactory; + +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util.InvariantStereotypeRuleConfigurationAdapterFactory; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class InvariantStereotypeRuleConfigurationItemProviderAdapterFactory extends InvariantStereotypeRuleConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration} instances. + * + * + * @generated + */ + protected InvariantStereotypeRuleConfigurationItemProvider invariantStereotypeRuleConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createInvariantStereotypeRuleConfigurationAdapter() { + if (invariantStereotypeRuleConfigurationItemProvider == null) { + invariantStereotypeRuleConfigurationItemProvider = new InvariantStereotypeRuleConfigurationItemProvider(this); + } + + return invariantStereotypeRuleConfigurationItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + public void dispose() { + if (invariantStereotypeRuleConfigurationItemProvider != null) + invariantStereotypeRuleConfigurationItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link RuleBasedPackage}. + * + * + * @generated + */ + public static class RuleBasedChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends RuleBasedSwitch { + /** + * The child descriptors being populated. + * + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + + /** + * + * + * @generated + */ + @Override + public Object caseRuleBasedTypeConfiguration(RuleBasedTypeConfiguration object) { + newChildDescriptors.add(createChildParameter(RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION, + InvariantStereotypeRuleConfigurationFactory.eINSTANCE.createInvariantStereotypeRuleConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + @Override + public Object caseCompositeRuleConfiguration(org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration object) { + newChildDescriptors.add(createChildParameter(RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES, + InvariantStereotypeRuleConfigurationFactory.eINSTANCE.createInvariantStereotypeRuleConfiguration())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList(); + new CreationSwitch(result, editingDomain).doSwitch((EObject) object); + return result; + } + + /** + * + * + * @generated + */ + public ResourceLocator getResourceLocator() { + return InvariantStereotypeRuleConfigurationEditPlugin.INSTANCE; + } + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationAdapterFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationAdapterFactory.java new file mode 100644 index 00000000000..3956c7fc24e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationAdapterFactory.java @@ -0,0 +1,148 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.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.uml.types.core.rules.invariantstereotype.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage + * @generated + */ +public class InvariantStereotypeRuleConfigurationAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static InvariantStereotypeRuleConfigurationPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationAdapterFactory() { + if (modelPackage == null) { + modelPackage = InvariantStereotypeRuleConfigurationPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected InvariantStereotypeRuleConfigurationSwitch modelSwitch = new InvariantStereotypeRuleConfigurationSwitch() { + @Override + public Adapter caseInvariantStereotypeRuleConfiguration(InvariantStereotypeRuleConfiguration object) { + return createInvariantStereotypeRuleConfigurationAdapter(); + } + + @Override + public Adapter caseRuleConfiguration(org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration object) { + return createRuleConfigurationAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration Invariant Stereotype Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfiguration + * @generated + */ + public Adapter createInvariantStereotypeRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration Rule Configuration}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration + * @generated + */ + public Adapter createRuleConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //InvariantStereotypeRuleConfigurationAdapterFactory diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java new file mode 100644 index 00000000000..aed3a130d68 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceFactoryImpl.java @@ -0,0 +1,51 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util.InvariantStereotypeRuleConfigurationResourceImpl + * @generated + */ +public class InvariantStereotypeRuleConfigurationResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new InvariantStereotypeRuleConfigurationResourceImpl(uri); + return result; + } + +} //InvariantStereotypeRuleConfigurationResourceFactoryImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceImpl.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceImpl.java new file mode 100644 index 00000000000..7a178e4777d --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationResourceImpl.java @@ -0,0 +1,38 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util.InvariantStereotypeRuleConfigurationResourceFactoryImpl + * @generated + */ +public class InvariantStereotypeRuleConfigurationResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public InvariantStereotypeRuleConfigurationResourceImpl(URI uri) { + super(uri); + } + +} //InvariantStereotypeRuleConfigurationResourceImpl diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationSwitch.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationSwitch.java new file mode 100644 index 00000000000..26a0dbfc4b6 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationSwitch.java @@ -0,0 +1,138 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.*; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage + * @generated + */ +public class InvariantStereotypeRuleConfigurationSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static InvariantStereotypeRuleConfigurationPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationSwitch() { + if (modelPackage == null) { + modelPackage = InvariantStereotypeRuleConfigurationPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case InvariantStereotypeRuleConfigurationPackage.INVARIANT_STEREOTYPE_RULE_CONFIGURATION: { + InvariantStereotypeRuleConfiguration invariantStereotypeRuleConfiguration = (InvariantStereotypeRuleConfiguration) theEObject; + T result = caseInvariantStereotypeRuleConfiguration(invariantStereotypeRuleConfiguration); + if (result == null) + result = caseRuleConfiguration(invariantStereotypeRuleConfiguration); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Invariant Stereotype Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Invariant Stereotype Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInvariantStereotypeRuleConfiguration(InvariantStereotypeRuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rule Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Rule Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRuleConfiguration(org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //InvariantStereotypeRuleConfigurationSwitch diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationXMLProcessor.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationXMLProcessor.java new file mode 100644 index 00000000000..59c91e86715 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src-gen/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/util/InvariantStereotypeRuleConfigurationXMLProcessor.java @@ -0,0 +1,60 @@ +/** + * 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: + * CEA LIST - Initial API and implementation + */ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.uml.types.core.rules.invariantstereotype.InvariantStereotypeRuleConfigurationPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class InvariantStereotypeRuleConfigurationXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public InvariantStereotypeRuleConfigurationXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + InvariantStereotypeRuleConfigurationPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the InvariantStereotypeRuleConfigurationResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new InvariantStereotypeRuleConfigurationResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new InvariantStereotypeRuleConfigurationResourceFactoryImpl()); + } + return registrations; + } + +} //InvariantStereotypeRuleConfigurationXMLProcessor diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/Activator.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/Activator.java new file mode 100644 index 00000000000..3c5a84bb8af --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/Activator.java @@ -0,0 +1,78 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core; + +import org.eclipse.papyrus.infra.core.log.LogHelper; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * This is the central singleton for the ApplyStereotypeAdviceConfiguration model plugin. + * + * + * + * @generated + */ +public final class Activator extends AbstractUIPlugin { + + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.types.core"; //$NON-NLS-1$ + + // The shared instance + private static Activator INSTANCE; + + /** Logging helper */ + 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); + INSTANCE = 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 { + log = null; + INSTANCE = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return INSTANCE; + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfigurationFactory.java new file mode 100644 index 00000000000..b2d4d921e2e --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceConfigurationFactory.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceBindingFactory; +import org.eclipse.papyrus.infra.types.core.impl.NullEditHelperAdvice; + + +public class ApplyStereotypeAdviceConfigurationFactory extends AbstractAdviceBindingFactory { + + + @Override + protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { + if (adviceConfiguration instanceof ApplyStereotypeAdviceConfiguration) { + IEditHelperAdvice editHelperAdvice = new ApplyStereotypeAdviceEditHelperAdvice((ApplyStereotypeAdviceConfiguration) adviceConfiguration); + return editHelperAdvice; + } + return NullEditHelperAdvice.getInstance(); + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceEditHelperAdvice.java new file mode 100644 index 00000000000..2537c9d0e69 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/ApplyStereotypeAdviceEditHelperAdvice.java @@ -0,0 +1,216 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil; +import org.eclipse.papyrus.uml.types.core.Activator; +import org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest; +import org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.Type; +import org.eclipse.uml2.uml.TypedElement; +import org.eclipse.uml2.uml.UMLPackage; + +/** + * advice for the {@link ApplyStereotypeAdviceConfiguration} + */ +public class ApplyStereotypeAdviceEditHelperAdvice extends AbstractEditHelperAdvice { + + + protected ApplyStereotypeAdviceConfiguration configuration; + + + public ApplyStereotypeAdviceEditHelperAdvice(ApplyStereotypeAdviceConfiguration configuration) { + this.configuration = configuration; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean approveRequest(IEditCommandRequest request) { + if (request instanceof CreateElementRequest) { + if (configuration == null) { + return false; + } + if (!(((CreateElementRequest) request).getContainer() instanceof Element)) { + return false; + } + Element container = (Element) ((CreateElementRequest) request).getContainer(); + Package nearestPackage = container.getNearestPackage(); + if (nearestPackage == null) { + return false; + } + List appliedProfiles = nearestPackage.getAllAppliedProfiles(); + if (appliedProfiles == null) { + // no profiles applied, no stereotype can be applied + return false; + } + List appliedProfileNames = new ArrayList(); + for (Profile profile : appliedProfiles) { + appliedProfileNames.add(profile.getQualifiedName()); + } + for (StereotypeToApply stereotypeToApply : configuration.getStereotypesToApply()) { + List requiredProfiles = stereotypeToApply.getRequiredProfiles(); + if (requiredProfiles != null) { + for (String requiredProfile : requiredProfiles) { + if (!appliedProfileNames.contains(requiredProfile)) { + return false; + } + } + } + } + return true; + } + + return true; + } + + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getAfterConfigureCommand(ConfigureRequest request) { + if (configuration == null) { + return null; + } + ICommand resultCommand = null; + // retrieve eobject + EObject elementToConfigure = request.getElementToConfigure(); + if (!(elementToConfigure instanceof Element)) { + return null; + } + + TransactionalEditingDomain editingDomain = request.getEditingDomain(); + if (editingDomain == null) { + return null; + } + // retrieve edit service to get features from configure command + IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure); + if (service == null) { + Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null); + return null; + } + + // for each stereotype, apply stereotype and apply values + for (StereotypeToApply stereotypeToApply : configuration.getStereotypesToApply()) { + Stereotype stereotype = ((Element) elementToConfigure).getApplicableStereotype(stereotypeToApply.getStereotypeQualifiedName()); + + if (stereotype != null) { + + ICommand applyStereotypeCommand = service.getEditCommand(new ApplyStereotypeRequest((Element) elementToConfigure, stereotype, editingDomain)); + + if (resultCommand == null) { + resultCommand = applyStereotypeCommand; + } else { + resultCommand = resultCommand.compose(applyStereotypeCommand); + } + + if (stereotypeToApply.isUpdateName() && elementToConfigure instanceof NamedElement) { + if (((NamedElement) elementToConfigure).getNamespace() != null) { + String newName = NamedElementUtil.getDefaultNameWithIncrementFromBase(stereotype.getName(), ((NamedElement) elementToConfigure).getNamespace().getMembers()); + ICommand renameCommand = service.getEditCommand(new SetRequest(editingDomain, elementToConfigure, UMLPackage.eINSTANCE.getNamedElement_Name(), newName)); + + if (resultCommand == null) { + resultCommand = renameCommand; + } else { + resultCommand = resultCommand.compose(renameCommand); + } + } + } + + // Set values + for (FeatureToSet featureToSet : stereotypeToApply.getFeaturesToSet()) { + // retrieve feature value + ICommand command = getSetStereotypeFeatureValueCommand((Element) elementToConfigure, stereotype, featureToSet.getFeatureName(), featureToSet.getValue(), service, request); + if (command != null) { + if (resultCommand == null) { + resultCommand = command; + } else { + resultCommand = resultCommand.compose(command); + } + } + } + } + + } + + if (resultCommand != null) { + return resultCommand.reduce(); + } + return super.getAfterConfigureCommand(request); + } + + /** + * @param elementToConfigure + * the eobject to configure + * @param name + * the name of the feature to set + * @param value + * the new value of the feature + */ + protected ICommand getSetStereotypeFeatureValueCommand(Element elementToConfigure, Stereotype stereotype, String name, FeatureValue featureValue, IElementEditService service, ConfigureRequest configureRequest) { + if (name == null) { + Activator.log.debug("No feature name has been set."); + return null; + } + if (elementToConfigure.eClass() == null) { + Activator.log.error("Impossible to find EClass from EObject: " + elementToConfigure, null); + return null; + } + + if (configureRequest.getEditingDomain() == null) { + return null; + } + + // retrieve structural feature for the element to configure + TypedElement typedElement = (TypedElement) stereotype.getMember(name, true, UMLPackage.eINSTANCE.getTypedElement()); + if (typedElement == null) { + Activator.log.error("Impossible to find feature " + name + " for eobject " + elementToConfigure, null); + return null; + } + Object value = getStereotypeValue(elementToConfigure, stereotype, typedElement.getType(), featureValue); + + return service.getEditCommand(new SetStereotypeValueRequest(configureRequest.getEditingDomain(), stereotype, (Element) elementToConfigure, name, value)); + } + + + /** + * @param elementToConfigure + * @param stereotype + * @param feature + * @param featureValue + * @return + */ + protected Object getStereotypeValue(Element elementToConfigure, Stereotype stereotype, Type type, FeatureValue featureValue) { + return StereotypeFeatureValueUtils.getValue(elementToConfigure, stereotype, type, featureValue); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeFeatureValueUtils.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeFeatureValueUtils.java new file mode 100644 index 00000000000..2c2b33fb81f --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/applystereotype/StereotypeFeatureValueUtils.java @@ -0,0 +1,130 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.advices.applystereotype; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.papyrus.infra.emf.types.converter.ConverterNotfoundException; +import org.eclipse.papyrus.infra.emf.types.converter.ConverterRegistry; +import org.eclipse.papyrus.uml.tools.utils.PrimitivesTypesUtils; +import org.eclipse.papyrus.uml.types.core.Activator; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.util.ApplyStereotypeAdviceSwitch; +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Enumeration; +import org.eclipse.uml2.uml.PrimitiveType; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.Type; +import org.eclipse.uml2.uml.ValueSpecification; + + +/** + * Utility class to get values from a {@link FeatureValue} + */ +public class StereotypeFeatureValueUtils { + + protected StereotypeFeatureValueUtils() { + // no instanciation, helper class + } + + /** + * Returns the value to set for a given feature of a given element + * + * @param elementToConfigure + * eobject for which feature is set. This must not be null + * @param feature + * {@link EStructuralFeature} to set. This must not be null + * @param valueModel + * configuration of the value, stored in the model + * @return the real value that will be set to the object or null if none could be computed + */ + public static Object getValue(final EObject elementToConfigure, final Stereotype stereotype, final Type type, final FeatureValue featureValue) { + + Object result = new ApplyStereotypeAdviceSwitch() { + /** + * {@inheritDoc} + */ + @Override + public Object caseConstantValue(ConstantValue object) { + ValueSpecification valueSpecification = object.getValueInstance(); + + if (valueSpecification == null) { + return null; + } + + try { + if (type instanceof PrimitiveType) { + final PrimitiveType pType = (PrimitiveType) type; + final String name = pType.getName(); + if (PrimitivesTypesUtils.UML_BOOLEAN.equals(name)) { + return ConverterRegistry.getSingleton().convert(boolean.class, valueSpecification); + } else if (PrimitivesTypesUtils.UML_INTEGER.equals(name)) { + return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); + } else if (PrimitivesTypesUtils.UML_REAL.equals(name)) { + return ConverterRegistry.getSingleton().convert(double.class, valueSpecification); + } else if (PrimitivesTypesUtils.UML_STRING.equals(name)) { + return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); + } else if (PrimitivesTypesUtils.UML_UNLIMITED_NATURAL.equals(name)) { + return ConverterRegistry.getSingleton().convert(int.class, valueSpecification); + } else { // custom PrimitiveType + return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); + } + } else if (type instanceof Enumeration) { + return ConverterRegistry.getSingleton().convert(Enumeration.class, valueSpecification); + } else if (type instanceof DataType) {// FIXME manage the data type + return ConverterRegistry.getSingleton().convert(String.class, valueSpecification); + } + } catch (ConverterNotfoundException e) { + Activator.log.error("Impossible to convert " + valueSpecification + " to fit feature type :" + type, e); + } + return super.caseConstantValue(object); + } + + /** + * {@inheritDoc} + */ + @Override + public Object caseQueryExecutionValue(QueryExecutionValue object) { + throw new UnsupportedOperationException("Query execution values resolution has not been implemented yet"); + }; + + /** + * {@inheritDoc} + */ + @Override + public Object caseDynamicValue(DynamicValue object) { + throw new UnsupportedOperationException("Dynamic values resolution has not been implemented yet"); + }; + + /** + * {@inheritDoc} + */ + @Override + public Object caseListValue(ListValue object) { + // resolve one by one all features in the values list of this listvalue + List results = new ArrayList(); + for (FeatureValue value : object.getValues()) { + Object singleResult = getValue(elementToConfigure, stereotype, type, value); + results.add(singleResult); + } + return results; + }; + + }.doSwitch(featureValue); + return result; + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceEditHelperAdvice.java new file mode 100644 index 00000000000..8f0778012a7 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceEditHelperAdvice.java @@ -0,0 +1,116 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.advices.settype; + +import java.util.Arrays; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.emf.workspace.util.WorkspaceSynchronizer; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.creation.ReferenceValueFactory; +import org.eclipse.papyrus.uml.properties.modelelement.UMLModelElement; +import org.eclipse.papyrus.uml.types.core.Activator; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.swt.widgets.Display; +import org.eclipse.uml2.uml.Element; + +/** + * advice for the {@link ApplyStereotypeAdviceConfiguration} + */ +public class SetTypeAdviceEditHelperAdvice extends AbstractEditHelperAdvice { + + protected SetTypeAdviceConfiguration configuration; + + public SetTypeAdviceEditHelperAdvice(SetTypeAdviceConfiguration configuration) { + this.configuration = configuration; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean approveRequest(IEditCommandRequest request) { + return super.approveRequest(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { + return super.getBeforeConfigureCommand(request); + } + + /** + * {@inheritDoc} + */ + @Override + protected ICommand getAfterConfigureCommand(ConfigureRequest request) { + if (configuration == null) { + return null; + } + ICommand resultCommand = null; + // retrieve eobject + final EObject elementToConfigure = request.getElementToConfigure(); + if (!(elementToConfigure instanceof Element)) { + return null; + } + + final TransactionalEditingDomain editingDomain = request.getEditingDomain(); + if (editingDomain == null) { + return null; + } + // retrieve edit service to get features from configure command + IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure); + if (service == null) { + Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null); + return null; + } + + resultCommand = new AbstractTransactionalCommand(editingDomain, "Editing type", Arrays.asList((WorkspaceSynchronizer.getFile(elementToConfigure.eResource())))) { + + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + UMLModelElement umlModelElement = new UMLModelElement(elementToConfigure, editingDomain); + ReferenceValueFactory factory = umlModelElement.getValueFactory("type"); + Object elemObject = factory.edit(Display.getDefault().getFocusControl(), elementToConfigure); + return CommandResult.newOKCommandResult(elemObject); + } + }; + + return resultCommand; + } + + /** + * @return + */ + protected EObject getDefaultTypeContainer(ConfigureRequest request) { + if (request.getElementToConfigure() instanceof Element) { + return ((Element) request.getElementToConfigure()).getNearestPackage(); + } + return request.getElementToConfigure().eContainer(); + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceFactory.java new file mode 100644 index 00000000000..8e28cd842e8 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/advices/settype/SetTypeAdviceFactory.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.advices.settype; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceBindingFactory; +import org.eclipse.papyrus.infra.types.core.impl.NullEditHelperAdvice; + + +public class SetTypeAdviceFactory extends AbstractAdviceBindingFactory { + + + @Override + protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) { + if (adviceConfiguration instanceof SetTypeAdviceConfiguration) { + IEditHelperAdvice editHelperAdvice = new SetTypeAdviceEditHelperAdvice((SetTypeAdviceConfiguration) adviceConfiguration); + return editHelperAdvice; + } + return NullEditHelperAdvice.getInstance(); + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/AbstractProfilingCommand.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/AbstractProfilingCommand.java new file mode 100644 index 00000000000..ff999b80ca8 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/AbstractProfilingCommand.java @@ -0,0 +1,79 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.commands; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.core.resources.IFile; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.emf.workspace.util.WorkspaceSynchronizer; +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; + +public abstract class AbstractProfilingCommand extends AbstractTransactionalCommand { + + /** + * Constructor. + * + * @param domain + * @param label + * @param affectedFiles + */ + public AbstractProfilingCommand(TransactionalEditingDomain domain, String label, List affectedFiles) { + super(domain, label, affectedFiles); + } + + protected static List getAffectedFiles(IEditCommandRequest request) { + List result = new ArrayList(); + List elements = request.getElementsToEdit(); + int size; + if (elements != null && ((size = elements.size()) > 0)) { + if (size == 1) { + Resource resource = ((EObject) elements.get(0)).eResource(); + if (resource != null) { + IFile file = WorkspaceSynchronizer.getFile(resource); + if (file != null) { + result.add(file); + } + } + } else { + Map resourcesToFileMap = new HashMap(); + for (int i = 0; i < size; ++i) { + Resource resource = ((EObject) elements.get(i)).eResource(); + if (resource != null) { + Object file = resourcesToFileMap.get(resource); + // if it is in the Map, then it is in the List already as well + if (file == null) { + file = WorkspaceSynchronizer.getFile(resource); + if (file != null) { + resourcesToFileMap.put(resource, file); + result.add(file); + } + } + } + } + } + } + return result; + } + + + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyProfileCommand.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyProfileCommand.java new file mode 100644 index 00000000000..a8086194c28 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyProfileCommand.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.commands; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.papyrus.uml.types.core.requests.ApplyProfileRequest; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; + +public class ApplyProfileCommand extends AbstractProfilingCommand { + + private ApplyProfileRequest request; + + /** + * + * Constructor. + * + * @param request + * @param domain + * @param label + */ + public ApplyProfileCommand(ApplyProfileRequest request, TransactionalEditingDomain domain, String label) { + super(domain, label, getAffectedFiles(request)); + this.request = request; + } + + /** + * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) + * + * @param monitor + * @param info + * @return + * @throws ExecutionException + */ + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + Package pkg = this.request.getUmlPackage(); + Profile profile = this.request.getProfile(); + try { + pkg.applyProfile(profile); + } catch (IllegalArgumentException e) { + return CommandResult.newErrorCommandResult(e); + } + + + return CommandResult.newOKCommandResult(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyStereotypeCommand.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyStereotypeCommand.java new file mode 100644 index 00000000000..7746fdaeac9 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/ApplyStereotypeCommand.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.commands; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public class ApplyStereotypeCommand extends AbstractProfilingCommand { + + private ApplyStereotypeRequest request; + + /** + * + * Constructor. + * + * @param request + * @param domain + * @param label + */ + public ApplyStereotypeCommand(ApplyStereotypeRequest request, TransactionalEditingDomain domain, String label) { + super(domain, label, getAffectedFiles(request)); + this.request = request; + } + + /** + * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) + * + * @param monitor + * @param info + * @return + * @throws ExecutionException + */ + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + Element element = this.request.getUmlElement(); + Stereotype stereotype = this.request.getStereotype(); + try { + element.applyStereotype(stereotype); + } catch (IllegalArgumentException e) { + return CommandResult.newErrorCommandResult(e); + } + + + return CommandResult.newOKCommandResult(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/SetStereotypeValueCommand.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/SetStereotypeValueCommand.java new file mode 100644 index 00000000000..ee448d48ebe --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/SetStereotypeValueCommand.java @@ -0,0 +1,65 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.commands; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public class SetStereotypeValueCommand extends AbstractProfilingCommand { + + private SetStereotypeValueRequest request; + + /** + * + * Constructor. + * + * @param request + * @param domain + * @param label + */ + public SetStereotypeValueCommand(SetStereotypeValueRequest request, TransactionalEditingDomain domain, String label) { + super(domain, label, getAffectedFiles(request)); + this.request = request; + } + + /** + * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) + * + * @param monitor + * @param info + * @return + * @throws ExecutionException + */ + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + Element element = this.request.getUmlElement(); + Stereotype stereotype = this.request.getStereotype(); + String propertyName = this.request.getPropertyName(); + Object value = this.request.getValue(); + try { + element.setValue(stereotype, propertyName, value); + } catch (IllegalArgumentException e) { + return CommandResult.newErrorCommandResult(e); + } + + + return CommandResult.newOKCommandResult(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyProfileCommand.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyProfileCommand.java new file mode 100644 index 00000000000..fc1ed93d935 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyProfileCommand.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.commands; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyProfileRequest; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; + +public class UnapplyProfileCommand extends AbstractProfilingCommand { + + private UnapplyProfileRequest request; + + /** + * + * Constructor. + * + * @param request + * @param domain + * @param label + */ + public UnapplyProfileCommand(UnapplyProfileRequest request, TransactionalEditingDomain domain, String label) { + super(domain, label, getAffectedFiles(request)); + this.request = request; + } + + /** + * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) + * + * @param monitor + * @param info + * @return + * @throws ExecutionException + */ + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + Package pkg = this.request.getUmlPackage(); + Profile profile = this.request.getProfile(); + try { + pkg.unapplyProfile(profile); + } catch (IllegalArgumentException e) { + return CommandResult.newErrorCommandResult(e); + } + + + return CommandResult.newOKCommandResult(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyStereotypeCommand.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyStereotypeCommand.java new file mode 100644 index 00000000000..68c69da2839 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/commands/UnapplyStereotypeCommand.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.commands; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyStereotypeRequest; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public class UnapplyStereotypeCommand extends AbstractProfilingCommand { + + private UnapplyStereotypeRequest request; + + /** + * + * Constructor. + * + * @param request + * @param domain + * @param label + */ + public UnapplyStereotypeCommand(UnapplyStereotypeRequest request, TransactionalEditingDomain domain, String label) { + super(domain, label, getAffectedFiles(request)); + this.request = request; + } + + /** + * @see org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) + * + * @param monitor + * @param info + * @return + * @throws ExecutionException + */ + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + Element element = this.request.getUmlElement(); + Stereotype stereotype = this.request.getStereotype(); + try { + element.unapplyStereotype(stereotype); + } catch (IllegalArgumentException e) { + return CommandResult.newErrorCommandResult(e); + } + + + return CommandResult.newOKCommandResult(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelper.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelper.java new file mode 100644 index 00000000000..e632ec712d2 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelper.java @@ -0,0 +1,96 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.edithelper; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.gmfdiag.common.helper.DefaultEditHelper; +import org.eclipse.papyrus.uml.types.core.commands.ApplyProfileCommand; +import org.eclipse.papyrus.uml.types.core.commands.ApplyStereotypeCommand; +import org.eclipse.papyrus.uml.types.core.commands.SetStereotypeValueCommand; +import org.eclipse.papyrus.uml.types.core.commands.UnapplyProfileCommand; +import org.eclipse.papyrus.uml.types.core.commands.UnapplyStereotypeCommand; +import org.eclipse.papyrus.uml.types.core.requests.ApplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest; +import org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyStereotypeRequest; + +public class DefaultUMLEditHelper extends DefaultEditHelper { + + /** + * @see org.eclipse.papyrus.infra.gmfdiag.common.helper.DefaultEditHelper#getInsteadCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) + * + * @param req + * @return + */ + @Override + protected ICommand getInsteadCommand(IEditCommandRequest req) { + + if (req instanceof ApplyProfileRequest) { + return getApplyProfileCommand((ApplyProfileRequest) req); + } else if (req instanceof UnapplyProfileRequest) { + return getUnapplyProfileCommand((UnapplyProfileRequest) req); + } else if (req instanceof ApplyStereotypeRequest) { + return getApplyStereotypeCommand((ApplyStereotypeRequest) req); + } else if (req instanceof UnapplyStereotypeRequest) { + return getUnapplyStereotypeCommand((UnapplyStereotypeRequest) req); + } else if (req instanceof SetStereotypeValueRequest) { + return getSetStereotypeValueCommand((SetStereotypeValueRequest) req); + } + + return super.getInsteadCommand(req); + } + + /** + * @param req + * @return + */ + protected ICommand getUnapplyProfileCommand(UnapplyProfileRequest req) { + return new UnapplyProfileCommand(req, req.getEditingDomain(), req.getLabel()); + } + + /** + * @param req + * @return + */ + protected ICommand getApplyProfileCommand(ApplyProfileRequest req) { + return new ApplyProfileCommand(req, req.getEditingDomain(), req.getLabel()); + } + + /** + * @param req + * @return + */ + protected ICommand getUnapplyStereotypeCommand(UnapplyStereotypeRequest req) { + return new UnapplyStereotypeCommand(req, req.getEditingDomain(), req.getLabel()); + } + + /** + * @param req + * @return + */ + protected ICommand getApplyStereotypeCommand(ApplyStereotypeRequest req) { + return new ApplyStereotypeCommand(req, req.getEditingDomain(), req.getLabel()); + } + + /** + * @param req + * @return + */ + protected ICommand getSetStereotypeValueCommand(SetStereotypeValueRequest req) { + return new SetStereotypeValueCommand(req, req.getEditingDomain(), req.getLabel()); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelperAdvice.java new file mode 100644 index 00000000000..f81614f84c4 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/edithelper/DefaultUMLEditHelperAdvice.java @@ -0,0 +1,152 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.edithelper; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.uml.types.core.requests.ApplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest; +import org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyStereotypeRequest; + +public class DefaultUMLEditHelperAdvice extends AbstractEditHelperAdvice { + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getBeforeEditCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) + * + * @param request + * @return + */ + @Override + public ICommand getBeforeEditCommand(IEditCommandRequest req) { + if (req instanceof ApplyProfileRequest) { + return getBeforeApplyProfileCommand((ApplyProfileRequest) req); + } else if (req instanceof UnapplyStereotypeRequest) { + return getBeforeUnapplyProfileCommand((UnapplyStereotypeRequest) req); + } else if (req instanceof ApplyStereotypeRequest) { + return getBeforeApplyStereotypeCommand((ApplyStereotypeRequest) req); + } else if (req instanceof UnapplyProfileRequest) { + return getBeforeUnapplyStereotypeCommand((UnapplyProfileRequest) req); + } else if (req instanceof SetStereotypeValueRequest) { + return getBeforeSetValueCommand((SetStereotypeValueRequest) req); + } + + return super.getBeforeEditCommand(req); + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterEditCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) + * + * @param request + * @return + */ + @Override + public ICommand getAfterEditCommand(IEditCommandRequest req) { + if (req instanceof ApplyProfileRequest) { + return getAfterApplyProfileCommand((ApplyProfileRequest) req); + } else if (req instanceof UnapplyStereotypeRequest) { + return getAfterUnapplyProfileCommand((UnapplyStereotypeRequest) req); + } else if (req instanceof ApplyStereotypeRequest) { + return getAfterApplyStereotypeCommand((ApplyStereotypeRequest) req); + } else if (req instanceof UnapplyProfileRequest) { + return getAfterUnapplyStereotypeCommand((UnapplyProfileRequest) req); + } else if (req instanceof SetStereotypeValueRequest) { + return getAfterSetValueCommand((SetStereotypeValueRequest) req); + } + + return super.getAfterEditCommand(req); + } + + /** + * @param req + * @return + */ + protected ICommand getBeforeUnapplyProfileCommand(UnapplyStereotypeRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getBeforeApplyProfileCommand(ApplyProfileRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getBeforeUnapplyStereotypeCommand(UnapplyProfileRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getBeforeApplyStereotypeCommand(ApplyStereotypeRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getAfterUnapplyProfileCommand(UnapplyStereotypeRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getAfterApplyProfileCommand(ApplyProfileRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getAfterUnapplyStereotypeCommand(UnapplyProfileRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getAfterApplyStereotypeCommand(ApplyStereotypeRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getBeforeSetValueCommand(SetStereotypeValueRequest req) { + return null; + } + + /** + * @param req + * @return + */ + protected ICommand getAfterSetValueCommand(SetStereotypeValueRequest req) { + return null; + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcher.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcher.java new file mode 100644 index 00000000000..84ba0644c16 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcher.java @@ -0,0 +1,83 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Model; +import org.eclipse.uml2.uml.Profile; + + +/** + * Matcher for UML elements that should be stereotyped + */ +public class StereotypeApplicationMatcher implements IElementMatcher { + + private List stereotypesQualifiedNames; + private String profileUri; + + public StereotypeApplicationMatcher(StereotypeApplicationMatcherConfiguration configuration) { + this.profileUri = configuration.getProfileUri(); + this.stereotypesQualifiedNames = configuration.getStereotypesQualifiedNames(); + } + + + public boolean matches(EObject eObject) { + if (!(eObject instanceof Element)) { + return false; + } + + Element element = (Element) eObject; + if (element.getAppliedStereotypes().isEmpty()) { + return false; + } + + for (String stereotypeQualifiedName : stereotypesQualifiedNames) { + if (element.getAppliedStereotype(stereotypeQualifiedName) == null) { + return false; + } + } + + if (profileUri != null) { + Model model = element.getModel(); + if (model == null) { + return false; + } + + List appliedProfileByUri = new ArrayList(); + for (Profile appliedProfile : model.getAllAppliedProfiles()) { + appliedProfileByUri.add(appliedProfile.getURI()); + } + + if (!appliedProfileByUri.contains(profileUri)) { + return false; + } + + } + return true; + } + + public List getStereotypesQualifiedNames() { + return stereotypesQualifiedNames; + } + + + public void setStereotypesQualifiedNames(List stereotypeQualifiedName) { + this.stereotypesQualifiedNames = stereotypeQualifiedName; + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfigurationFactory.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfigurationFactory.java new file mode 100644 index 00000000000..16c619bf473 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/matchers/stereotype/StereotypeApplicationMatcherConfigurationFactory.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.matchers.stereotype; + +import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; +import org.eclipse.papyrus.infra.types.core.factories.IMatcherFactory; + + + +/** + * Factory to create matcher based on stereotypes applied on the element + */ +public class StereotypeApplicationMatcherConfigurationFactory implements IMatcherFactory { + + /** + * {@inheritDoc} + */ + public IElementMatcher createElementMatcher(StereotypeApplicationMatcherConfiguration configuration) { + return new StereotypeApplicationMatcher(configuration); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractProfileRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractProfileRequest.java new file mode 100644 index 00000000000..83c2fb1e7ad --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractProfileRequest.java @@ -0,0 +1,90 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.emf.type.core.EditHelperContext; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; + +public abstract class AbstractProfileRequest extends AbstractEditCommandRequest { + + private org.eclipse.uml2.uml.Package umlPackage; + private Profile profile; + + + public AbstractProfileRequest(TransactionalEditingDomain editingDomain, org.eclipse.uml2.uml.Package umlPackage, Profile profile) { + super(editingDomain); + this.umlPackage = umlPackage; + this.profile = profile; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest#getEditHelperContext() + * + * @return + */ + public Object getEditHelperContext() { + IClientContext context = getClientContext(); + + if (context == null) { + return umlPackage; + } else { + return new EditHelperContext(umlPackage, context); + } + } + + /** + * @return the umlPackage + */ + public org.eclipse.uml2.uml.Package getUmlPackage() { + return umlPackage; + } + + /** + * @param umlPackage + * the umlPackage to set + */ + public void setUmlPackage(org.eclipse.uml2.uml.Package umlPackage) { + this.umlPackage = umlPackage; + } + + /** + * @return the profile + */ + public Profile getProfile() { + return profile; + } + + /** + * @param profile + * the profile to set + */ + public void setProfile(Profile profile) { + this.profile = profile; + } + + public List getElementsToEdit() { + if (umlPackage != null) { + return Collections.singletonList(umlPackage); + } + + return Collections.emptyList(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractStereotypeRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractStereotypeRequest.java new file mode 100644 index 00000000000..c51be13d0d3 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/AbstractStereotypeRequest.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.emf.type.core.EditHelperContext; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public abstract class AbstractStereotypeRequest extends AbstractEditCommandRequest { + private Element umlElement; + private Stereotype stereotype; + + public AbstractStereotypeRequest(TransactionalEditingDomain editingDomain, Element umlElement, Stereotype stereotype) { + super(editingDomain); + this.umlElement = umlElement; + this.stereotype = stereotype; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest#getEditHelperContext() + * + * @return + */ + public Object getEditHelperContext() { + IClientContext context = getClientContext(); + + if (context == null) { + return umlElement; + } else { + return new EditHelperContext(umlElement, context); + } + } + + /** + * @return the umlElement + */ + public Element getUmlElement() { + return umlElement; + } + + /** + * @param umlElement + * the umlElement to set + */ + public void setUmlElement(Element umlElement) { + this.umlElement = umlElement; + } + + /** + * @return the stereotype + */ + public Stereotype getStereotype() { + return stereotype; + } + + /** + * @param stereotype + * the stereotype to set + */ + public void setStereotype(Stereotype stereotype) { + this.stereotype = stereotype; + } + + public List getElementsToEdit() { + if (umlElement != null) { + return Collections.singletonList(umlElement); + } + + return Collections.emptyList(); + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyProfileRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyProfileRequest.java new file mode 100644 index 00000000000..c80aed577fe --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyProfileRequest.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; + +public class ApplyProfileRequest extends AbstractProfileRequest { + + /** + * Constructor. + * + * @param umlPackage + * @param profile + * @param editingDomain + */ + public ApplyProfileRequest(TransactionalEditingDomain editingDomain, Package umlPackage, Profile profile) { + super(editingDomain, umlPackage, profile); + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyStereotypeRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyStereotypeRequest.java new file mode 100644 index 00000000000..2f670af4163 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/ApplyStereotypeRequest.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public class ApplyStereotypeRequest extends AbstractStereotypeRequest { + + /** + * Constructor. + * + * @param umlElement + * @param stereotype + * @param editingDomain + */ + public ApplyStereotypeRequest(Element umlElement, Stereotype stereotype, TransactionalEditingDomain editingDomain) { + super(editingDomain, umlElement, stereotype); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/SetStereotypeValueRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/SetStereotypeValueRequest.java new file mode 100644 index 00000000000..d18f6f7c299 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/SetStereotypeValueRequest.java @@ -0,0 +1,111 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.emf.type.core.EditHelperContext; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public class SetStereotypeValueRequest extends AbstractEditCommandRequest { + + + private String propertyName; + + private Element umlElement; + + private Stereotype stereotype; + + private Object value; + + + public SetStereotypeValueRequest(TransactionalEditingDomain editingDomain, Stereotype stereotype, Element elementToEdit, String propertyName, Object value) { + super(editingDomain); + this.umlElement = elementToEdit; + this.propertyName = propertyName; + this.value = value; + this.stereotype = stereotype; + } + + /** + * @return the stereotype + */ + public Stereotype getStereotype() { + return stereotype; + } + + /** + * @param stereotype + * the stereotype to set + */ + public void setStereotype(Stereotype stereotype) { + this.stereotype = stereotype; + } + + public Object getValue() { + return value; + } + + /** + * @param value + * the value to set + */ + public void setValue(Object value) { + this.value = value; + } + + public String getPropertyName() { + return propertyName; + } + + /** + * @param propertyName + * the propertyName to set + */ + public void setPropertyName(String propertyName) { + this.propertyName = propertyName; + } + + + public List getElementsToEdit() { + if (umlElement != null) { + return Collections.singletonList(umlElement); + } + + return Collections.emptyList(); + } + + + public Object getEditHelperContext() { + IClientContext context = getClientContext(); + + if (context == null) { + return umlElement; + } else { + return new EditHelperContext(umlElement, context); + } + } + + /** + * @return the umlElement + */ + public Element getUmlElement() { + return umlElement; + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyProfileRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyProfileRequest.java new file mode 100644 index 00000000000..3813bb28077 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyProfileRequest.java @@ -0,0 +1,26 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; + +public class UnapplyProfileRequest extends AbstractProfileRequest { + + public UnapplyProfileRequest(Package umlPackage, Profile profile, TransactionalEditingDomain editingDomain) { + super(editingDomain, umlPackage, profile); + } + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyStereotypeRequest.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyStereotypeRequest.java new file mode 100644 index 00000000000..6c37a93c218 --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/requests/UnapplyStereotypeRequest.java @@ -0,0 +1,34 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.types.core.requests; + +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Stereotype; + +public class UnapplyStereotypeRequest extends AbstractStereotypeRequest { + + /** + * Constructor. + * + * @param umlPackage + * @param profile + * @param editingDomain + */ + public UnapplyStereotypeRequest(Element umlElement, Stereotype stereotype, TransactionalEditingDomain editingDomain) { + super(editingDomain, umlElement, stereotype); + } + + +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/AbstractUmlRule.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/AbstractUmlRule.java new file mode 100644 index 00000000000..1844c6d03be --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/AbstractUmlRule.java @@ -0,0 +1,94 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.rules; + +import java.util.List; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType; +import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration; +import org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule; +import org.eclipse.papyrus.uml.types.core.requests.ApplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest; +import org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyStereotypeRequest; + +public abstract class AbstractUmlRule extends AbstractRule { + protected T invariantRuleConfiguration; + + /** + * + * @see org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule#approveRequest(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest) + * + * @param request + * @return + */ + @Override + public boolean approveRequest(IEditCommandRequest request) { + + List elementsToEdit = request.getElementsToEdit(); + for (Object elementToEdit : elementsToEdit) { + if (elementToEdit instanceof EObject) { + IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) elementToEdit, request.getClientContext()); + + for (IElementType type : types) { + if (type instanceof ConfiguredHintedSpecializationElementType) { + ConfiguredHintedSpecializationElementType configuredHintedSpecializationElementType = (ConfiguredHintedSpecializationElementType) type; + if (request instanceof ApplyStereotypeRequest) { + if (!approveApplyStereotypeRequest(configuredHintedSpecializationElementType, (ApplyStereotypeRequest) request)) { + return false; + } + } else if (request instanceof UnapplyStereotypeRequest) { + if (!approveUnapplyStereotypeRequest(configuredHintedSpecializationElementType, (UnapplyStereotypeRequest) request)) { + return false; + } + } else if (request instanceof ApplyProfileRequest) { + if (!approveApplyProfileRequest(configuredHintedSpecializationElementType, (ApplyProfileRequest) request)) { + return false; + } + } else if (request instanceof UnapplyProfileRequest) { + if (!approveUnapplyProfileRequest(configuredHintedSpecializationElementType, (UnapplyProfileRequest) request)) { + return false; + } + } else if (request instanceof SetStereotypeValueRequest) { + if (!approveSetStereotypeValueRequest(configuredHintedSpecializationElementType, (SetStereotypeValueRequest) request)) { + return false; + } + } + } + } + } + } + + return super.approveRequest(request); + } + + abstract protected boolean approveApplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, ApplyStereotypeRequest request); + + abstract protected boolean approveUnapplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, UnapplyStereotypeRequest request); + + abstract protected boolean approveApplyProfileRequest(ConfiguredHintedSpecializationElementType type, ApplyProfileRequest request); + + abstract protected boolean approveUnapplyProfileRequest(ConfiguredHintedSpecializationElementType type, UnapplyProfileRequest request); + + abstract protected boolean approveSetStereotypeValueRequest(ConfiguredHintedSpecializationElementType type, SetStereotypeValueRequest request); + + @Override + public void init(T invariantRuleConfiguration) { + this.invariantRuleConfiguration = invariantRuleConfiguration; + } +} diff --git a/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRule.java b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRule.java new file mode 100644 index 00000000000..66cc66477bc --- /dev/null +++ b/plugins/uml/org.eclipse.papyrus.uml.types.core/src/org/eclipse/papyrus/uml/types/core/rules/invariantstereotype/InvariantStereotypeRule.java @@ -0,0 +1,194 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.types.core.rules.invariantstereotype; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType; +import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil; +import org.eclipse.papyrus.uml.types.core.requests.ApplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest; +import org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyProfileRequest; +import org.eclipse.papyrus.uml.types.core.requests.UnapplyStereotypeRequest; +import org.eclipse.papyrus.uml.types.core.rules.AbstractUmlRule; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.Profile; +import org.eclipse.uml2.uml.Stereotype; + +public class InvariantStereotypeRule extends AbstractUmlRule { + + /** + * + * @see org.eclipse.papyrus.infra.types.rulebased.core.IRule#matches(org.eclipse.emf.ecore.EObject) + * + * @param eObject + * @return + */ + public boolean matches(EObject eObject) { + if (!(eObject instanceof Element)) { + return false; + } + + String stereotypeQualifiedName = invariantRuleConfiguration.getStereotypeQualifiedName(); + if (stereotypeQualifiedName == null) { // to avoid null pointers + return false; + } + Stereotype appliedStereotype = ((Element) eObject).getAppliedStereotype(stereotypeQualifiedName); + if (appliedStereotype != null) { // one has been found, no need to get further + return true; + } else if (!invariantRuleConfiguration.isStrict()) { // the stereotype does not match perfectly, but one of the applied stereotypes on the element could match if not strict + for (Stereotype stereotype : ((Element) eObject).getAppliedStereotypes()) { + for (Stereotype superStereotype : StereotypeUtil.getAllSuperStereotypes(stereotype)) { + if (stereotypeQualifiedName.equals(superStereotype.getQualifiedName())) { + return true; // there is a match in the super stereotypes. Finish here, element matches + } + } + } + } + return false; + } + + /** + * + * @see org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule#approveMoveRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType type, MoveRequest request) { + return true; + } + + /** + * + * @see org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule#approveSetRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType type, SetRequest request) { + return true; + } + + /** + * + * @see org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule#approveCreationRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType type, CreateElementRequest request) { + // check that the required profile is present. + String requiredProfileName = invariantRuleConfiguration.getRequiredProfile(); + if (requiredProfileName != null) { + // check target + EObject container = request.getContainer(); + if (!(container instanceof Element)) { + return false; + } + Package nearestPackage = ((Element) container).getNearestPackage(); + if (nearestPackage == null) { + return false; + } + Profile appliedProfile = nearestPackage.getAppliedProfile(requiredProfileName, true); + return appliedProfile != null; + } + + return true; + } + + /** + * + * @see org.eclipse.papyrus.uml.types.core.rules.AbstractUmlRule#approveApplyStereotypeRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.papyrus.uml.types.core.requests.ApplyStereotypeRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveApplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, ApplyStereotypeRequest request) { + return true; + } + + /** + * + * @see org.eclipse.papyrus.uml.types.core.rules.AbstractUmlRule#approveUnapplyStereotypeRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.papyrus.uml.types.core.requests.UnapplyStereotypeRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveUnapplyStereotypeRequest(ConfiguredHintedSpecializationElementType type, UnapplyStereotypeRequest request) { + + if (request.getStereotype().getQualifiedName().equals(this.invariantRuleConfiguration.getStereotypeQualifiedName())) { + return false; + } + return true; + } + + /** + * + * @see org.eclipse.papyrus.uml.types.core.rules.AbstractUmlRule#approveApplyProfileRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.papyrus.uml.types.core.requests.ApplyProfileRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveApplyProfileRequest(ConfiguredHintedSpecializationElementType type, ApplyProfileRequest request) { + return true; + } + + /** + * + * @see org.eclipse.papyrus.uml.types.core.rules.AbstractUmlRule#approveUnapplyProfileRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.papyrus.uml.types.core.requests.UnapplyProfileRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveUnapplyProfileRequest(ConfiguredHintedSpecializationElementType type, UnapplyProfileRequest request) { + String requiredProfileName = invariantRuleConfiguration.getRequiredProfile(); + + if (requiredProfileName.equals(request.getProfile().getQualifiedName())) { + return false; + } + return true; + } + + /** + * + * @see org.eclipse.papyrus.uml.types.core.rules.AbstractUmlRule#approveSetStereotypeValueRequest(org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType, org.eclipse.papyrus.uml.types.core.requests.SetStereotypeValueRequest) + * + * @param type + * @param request + * @return + */ + @Override + protected boolean approveSetStereotypeValueRequest(ConfiguredHintedSpecializationElementType type, SetStereotypeValueRequest request) { + return true; + } + +} diff --git a/plugins/uml/pom.xml b/plugins/uml/pom.xml index e67f646e11c..655c4aa1816 100644 --- a/plugins/uml/pom.xml +++ b/plugins/uml/pom.xml @@ -16,7 +16,7 @@ org.eclipse.papyrus.uml.commands org.eclipse.papyrus.uml.controlmode.profile org.eclipse.papyrus.uml.documentation.profile - org.eclipse.papyrus.uml.elementtypesconfigurations + org.eclipse.papyrus.uml.types.core org.eclipse.papyrus.uml.extensionpoints org.eclipse.papyrus.uml.filters org.eclipse.papyrus.uml.filters.edit diff --git a/releng/main-tests/pom.xml b/releng/main-tests/pom.xml index 0e43aa33687..546106e6e46 100644 --- a/releng/main-tests/pom.xml +++ b/releng/main-tests/pom.xml @@ -38,8 +38,8 @@ ../../tests/junit/plugins/core/org.eclipse.papyrus.infra.core.tests ../../tests/junit/plugins/core/org.eclipse.papyrus.infra.extendedtypes.tests ../../tests/junit/plugins/core/org.eclipse.papyrus.infra.extendedtypes.ui.tests - ../../tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests - ../../tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests + ../../tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests + ../../tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests ../../tests/junit/plugins/customization/org.eclipse.papyrus.customization.properties.tests ../../tests/junit/plugins/infra/org.eclipse.papyrus.infra.filters.tests ../../tests/junit/plugins/infra/org.eclipse.papyrus.infra.tools.tests @@ -71,7 +71,7 @@ ../../tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests ../../tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.tests ../../tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests - ../../tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests + ../../tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests ../../tests/junit/plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.tests ../../tests/junit/plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.controlmode.tests ../../tests/junit/plugins/uml/diagram diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.classpath b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.classpath deleted file mode 100644 index 098194ca4b7..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.project b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.project deleted file mode 100644 index 22e16c202cd..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index eb9bfba9949..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,296 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 8a9e090733b..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", - org.junit;bundle-version="4.10.0", - org.eclipse.papyrus.junit.framework;bundle-version="1.2.0", - org.eclipse.papyrus.infra.newchild;bundle-version="1.2.0", - org.eclipse.papyrus.infra.core;bundle-version="1.2.0", - org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", - org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", - org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", - org.eclipse.papyrus.infra.ui;bundle-version="1.2.0" -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.tests -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.infra.elementtypesconfigurations.tests.Activator -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.tests;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/about.html b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/build.properties b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/build.properties deleted file mode 100644 index 477c982e1d6..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/build.properties +++ /dev/null @@ -1,21 +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: -# CEA LIST - Initial API and implementation - -bin.includes = .,\ - META-INF/,\ - plugin.properties,\ - plugin.xml,\ - model/,\ - about.html -jars.compile.order = . -source.. = src/ -output.. = bin/ -src.includes = about.html diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/M.gif b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/M.gif deleted file mode 100644 index f9a5b239d6c..00000000000 Binary files a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/M.gif and /dev/null differ diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/O.gif b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/O.gif deleted file mode 100644 index e6ce0916227..00000000000 Binary files a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/O.gif and /dev/null differ diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/Values.gif b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/Values.gif deleted file mode 100644 index f1f019535ea..00000000000 Binary files a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/Values.gif and /dev/null differ diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/debug.gif b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/debug.gif deleted file mode 100644 index ac5431fa311..00000000000 Binary files a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/icons/debug.gif and /dev/null differ diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.di b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.di deleted file mode 100644 index bf9abab340f..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.di +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.notation b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.notation deleted file mode 100644 index 1d458586ccd..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.notation +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.uml b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.uml deleted file mode 100644 index 4f1610dae4d..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/ElementTypesTestsProfile.profile.uml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/MyPalette.palette b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/MyPalette.palette deleted file mode 100644 index 6fe86de2535..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/MyPalette.palette +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - Electrical - - - - - - - - \ No newline at end of file diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.di b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.di deleted file mode 100644 index bf9abab340f..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.di +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.notation b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.notation deleted file mode 100644 index 71ff069b40f..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.notation +++ /dev/null @@ -1,220 +0,0 @@ - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.uml b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.uml deleted file mode 100644 index 020393cf651..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/model.uml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/org.eclipse.papyrus.infra.elementtypes.tests.launch b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/org.eclipse.papyrus.infra.elementtypes.tests.launch deleted file mode 100644 index 5e34eeef8ce..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/org.eclipse.papyrus.infra.elementtypes.tests.launch +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.properties b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.properties deleted file mode 100644 index 596019605b9..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.properties +++ /dev/null @@ -1,13 +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: -# CEA LIST - Initial API and implementation - -pluginName = ElementTypesConfigurations Tests -providerName = Eclipse Modeling Project diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.xml b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.xml deleted file mode 100644 index 604ae6cf4da..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/plugin.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/pom.xml b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/pom.xml deleted file mode 100644 index c7c5937e5ab..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus - org.eclipse.papyrus.tests.releng - 1.2.0-SNAPSHOT - ../../../../../releng/main-tests - - org.eclipse.papyrus - org.eclipse.papyrus.infra.elementtypesconfigurations.tests - 1.2.0-SNAPSHOT - eclipse-test-plugin - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AbstractElementTypeTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AbstractElementTypeTests.java deleted file mode 100644 index db22a640ce1..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AbstractElementTypeTests.java +++ /dev/null @@ -1,197 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation - * Christian W. Damus - bug 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.io.IOException; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.Platform; -import org.eclipse.emf.transaction.TransactionalEditingDomain; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.papyrus.infra.core.resource.ModelSet; -import org.eclipse.papyrus.infra.core.resource.ModelUtils; -import org.eclipse.papyrus.infra.core.resource.NotFoundException; -import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor; -import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; -import org.eclipse.papyrus.junit.utils.EditorUtils; -import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; -import org.eclipse.papyrus.junit.utils.rules.HouseKeeper; -import org.eclipse.papyrus.uml.tools.model.UmlModel; -import org.eclipse.papyrus.uml.tools.model.UmlUtils; -import org.eclipse.swt.widgets.Display; -import org.eclipse.ui.PartInitException; -import org.eclipse.uml2.uml.Component; -import org.eclipse.uml2.uml.Model; -import org.eclipse.uml2.uml.Package; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.osgi.framework.Bundle; - -/** - * Abstract class for element types tests - */ -public abstract class AbstractElementTypeTests extends AbstractPapyrusTest implements ITestConstants { - - - @ClassRule - public static HouseKeeper.Static houseKeeper = new HouseKeeper.Static(); - - protected static IProject createProject; - - protected static IFile copyPapyrusModel; - - protected static IMultiDiagramEditor openPapyrusEditor; - - protected static ModelSet modelset; - - protected static UmlModel umlIModel; - - protected static Model rootModel; - - protected static TransactionalEditingDomain transactionalEditingDomain; - - protected static Package packageWithAllElements; - - protected static Package packageWithComponents; - - protected static IClientContext papyrusContext; - - protected static Package otherPackageWithComponents; - - protected static Component component1_packageWithComponents; - - protected static Component component1_otherPackageWithComponents; - - protected static Component component1_packageWithAllElements; - - - /** - * Init test class - */ - @SuppressWarnings("restriction") - @BeforeClass - public static void initCreateElementTest() { - - // create Project - createProject = houseKeeper.createProject("ElementTypes"); - - // import test model and profile - try { - Bundle bundle = Platform.getBundle("org.eclipse.papyrus.infra.elementtypesconfigurations.tests"); - copyPapyrusModel = PapyrusProjectUtils.copyPapyrusModel(createProject, bundle, "/model/", "model"); - PapyrusProjectUtils.copyPapyrusModel(createProject, bundle, "/model/", "ElementTypesTestsProfile.profile"); - } catch (CoreException e) { - fail(e.getMessage()); - } catch (IOException e) { - fail(e.getMessage()); - } - - // open project - Display.getDefault().syncExec(new Runnable() { - - @Override - public void run() { - try { - openPapyrusEditor = houseKeeper.cleanUpLater(EditorUtils.openPapyrusEditor(copyPapyrusModel)); - } catch (PartInitException e) { - fail(e.getMessage()); - } - } - }); - - transactionalEditingDomain = openPapyrusEditor.getAdapter(TransactionalEditingDomain.class); - assertTrue("Impossible to init editing domain", transactionalEditingDomain instanceof TransactionalEditingDomain); - - // retrieve UML model from this editor - try { - modelset = ModelUtils.getModelSetChecked(openPapyrusEditor.getServicesRegistry()); - umlIModel = UmlUtils.getUmlModel(modelset); - rootModel = (Model) umlIModel.lookupRoot(); - - Assert.assertNotNull("root model should not be null", rootModel); - - } catch (ServiceException e) { - fail(e.getMessage()); - } catch (NotFoundException e) { - fail(e.getMessage()); - } catch (ClassCastException e) { - fail(e.getMessage()); - } - try { - initExistingElements(); - } catch (Exception e) { - fail(e.getMessage()); - } - - try { - papyrusContext = org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext.getContext(); - } catch (ServiceException e) { - fail(e.getMessage()); - } - - } - - /** - * Init fields corresponding to element in the test model - */ - protected static void initExistingElements() throws Exception { - packageWithComponents = rootModel.getNestedPackage(PACKAGE_WITH_COMPONENTS); - Assert.assertNotNull(PACKAGE_WITH_COMPONENTS + " should not be null", packageWithComponents); - Assert.assertTrue(PACKAGE_WITH_COMPONENTS + " should be a Package", packageWithComponents instanceof Package); - - packageWithAllElements = rootModel.getNestedPackage(PACKAGE_WITH_ALL_ELEMENTS); - Assert.assertNotNull(PACKAGE_WITH_ALL_ELEMENTS + " should not be null", packageWithAllElements); - Assert.assertTrue(PACKAGE_WITH_ALL_ELEMENTS + " should be a Package", packageWithAllElements instanceof Package); - - otherPackageWithComponents = rootModel.getNestedPackage(OTHER_PACKAGE_WITH_COMPONENTS); - Assert.assertNotNull(OTHER_PACKAGE_WITH_COMPONENTS + " should not be null", otherPackageWithComponents); - Assert.assertTrue(OTHER_PACKAGE_WITH_COMPONENTS + " should be a Package", otherPackageWithComponents instanceof Package); - - // init components - component1_packageWithComponents = (Component) packageWithComponents.getPackagedElement(COMPONENT_NAME); - Assert.assertNotNull(COMPONENT_NAME + " should not be null", component1_packageWithComponents); - - component1_otherPackageWithComponents = (Component) otherPackageWithComponents.getPackagedElement(COMPONENT_NAME); - Assert.assertNotNull(COMPONENT_NAME + " should not be null", component1_otherPackageWithComponents); - - component1_packageWithAllElements = (Component) packageWithAllElements.getPackagedElement(COMPONENT_NAME); - Assert.assertNotNull(COMPONENT_NAME + " should not be null", component1_packageWithAllElements); - - } - - /** - * @throws java.lang.Exception - */ - @Before - public void setUp() throws Exception { - } - - /** - * @throws java.lang.Exception - */ - @After - public void tearDown() throws Exception { - } - - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/Activator.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/Activator.java deleted file mode 100644 index 685ab64c3cc..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/Activator.java +++ /dev/null @@ -1,61 +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: - * CEA LIST - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -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.elementtypesconfigurations.tests"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) - */ - 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/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AllTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AllTests.java deleted file mode 100644 index 08d72bea472..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/AllTests.java +++ /dev/null @@ -1,26 +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: - * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import org.junit.runner.RunWith; -import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; -import org.junit.runners.Suite.SuiteClasses; - - -/** - * All tests for this fragment - */ -@RunWith(ClassificationSuite.class) -@SuiteClasses({ ElementTypesRegistryTests.class, ElementEditHelperAdviceTests.class }) -public class AllTests { - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementEditHelperAdviceTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementEditHelperAdviceTests.java deleted file mode 100644 index 17ec1f21322..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementEditHelperAdviceTests.java +++ /dev/null @@ -1,307 +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: - * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -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.gmf.runtime.common.core.command.ICommand; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; -import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; -import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; -import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.utils.AdviceComparator; -import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; -import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; -import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; -import org.eclipse.uml2.uml.Component; -import org.eclipse.uml2.uml.Package; -import org.junit.Assert; -import org.junit.Test; - -/** - * Based upon ExtendedEditHelperAdviceTests - * Test class for element type edit helper advice - */ -public class ElementEditHelperAdviceTests extends AbstractElementTypeTests implements ITestConstants { - - @Test - // transcoded from extended types framework - public void testPACKAGE_WITH_COMPONENTSType() { - List elementTypes = Arrays.asList(ElementTypeRegistry.getInstance().getAllTypesMatching(packageWithComponents, papyrusContext)); - Assert.assertNotNull("list should not be null", elementTypes); - Assert.assertTrue("list should not be empty", elementTypes.size() > 0); - Assert.assertTrue(PACKAGE_WITH_COMPONENTS + " should be a Package With components only type", elementTypes.contains(ElementTypeRegistry.getInstance().getType(PACKAGE_WITH_COMPONENTS_TYPE_ID))); - } - - @Test - public void testPACKAGE_WITH_ALL_ELEMENTSType() { - List elementTypes = Arrays.asList(ElementTypeRegistry.getInstance().getAllTypesMatching(packageWithAllElements, papyrusContext)); - Assert.assertNotNull("list should not be null", elementTypes); - Assert.assertTrue("list should not be empty", elementTypes.size() > 0); - Assert.assertTrue(PACKAGE_WITH_ALL_ELEMENTS + " should not be a Package With components only type", !elementTypes.contains(ElementTypeRegistry.getInstance().getType(PACKAGE_WITH_COMPONENTS_TYPE_ID))); - } - - @Test - // transcoded from extended types framework - public void testSemanticCreateComponentInGoodPackage() throws ExecutionException { - testCreateComponent(packageWithComponents, true); - } - - @Test - // transcoded from extended types framework - public void testSemanticCreateComponentInWrongPackage() throws ExecutionException { - testCreateComponent(packageWithAllElements, false); - } - - protected void testCreateComponent(Package container, boolean canCreate) throws ExecutionException { - IProgressMonitor monitor = new NullProgressMonitor(); - // should be possible - IElementType type = ElementTypeRegistry.getInstance().getType(SPECIFICCOMPONENT_TYPE_ID); - CreateElementRequest request = new CreateElementRequest(transactionalEditingDomain, container, type); - IElementEditService service = ElementEditServiceUtils.getCommandProvider(container); - ICommand command = service.getEditCommand(request); - // get children before modification - List originalChildren = new ArrayList(container.getPackagedElements()); - if (canCreate) { - Assert.assertTrue("Command should be executable", command.canExecute()); - IStatus status = command.execute(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - // get result - List afterCreationChildren = new ArrayList(container.getPackagedElements()); - List delta = new ArrayList(afterCreationChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have only one more element", 1, delta.size()); - // check it does not impact undo - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - List afterUndoChildren = new ArrayList(container.getPackagedElements()); - delta = new ArrayList(afterUndoChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have no element", 0, delta.size()); - // should be redoable - Assert.assertTrue("Command should be redoable", command.canRedo()); - status = command.redo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - List afterRedoChildren = new ArrayList(container.getPackagedElements()); - delta = new ArrayList(afterRedoChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have one more element", 1, delta.size()); - // undo to revert state - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - } else { - Assert.assertTrue("Command should not be executable", command == null || !(command.canExecute())); - } - } - - @Test - public void testSemanticMoveComponentFromGoodPackageToGoodPackage() throws ExecutionException { - // should be possible (target = good package) - testMoveComponent(otherPackageWithComponents, component1_packageWithComponents, true); - } - - @Test - // transcoded from extended types framework - public void testSemanticMoveComponentFromGoodPackageToWrongPackage() throws ExecutionException { - // should be impossible (target = wrong package) - testMoveComponent(packageWithAllElements, component1_packageWithComponents, false); - } - - @Test - public void testSemanticMoveComponentFromWrongPackageToGoodPackage() throws ExecutionException { - // should be possible (target = good package) - testMoveComponent(packageWithComponents, component1_packageWithAllElements, true); - } - - @Test - public void testSemanticMoveComponentFromWrongPackageToWrongPackage() throws ExecutionException { - // should be impossible (target = wrong package) - testMoveComponent(packageWithAllElements, component1_packageWithAllElements, false); - } - - protected void testMoveComponent(Package targetContainer, Component sourceComponent, boolean canMove) throws ExecutionException { - IProgressMonitor monitor = new NullProgressMonitor(); - // should be possible - MoveRequest request = new MoveRequest(transactionalEditingDomain, targetContainer, sourceComponent); - IElementEditService service = ElementEditServiceUtils.getCommandProvider(targetContainer); - ICommand command = service.getEditCommand(request); - // get children before modification - List originalChildren = new ArrayList(targetContainer.getPackagedElements()); - if (canMove) { - Assert.assertTrue("Command should be executable", command.canExecute()); - IStatus status = command.execute(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - // get result - List afterCreationChildren = new ArrayList(targetContainer.getPackagedElements()); - List delta = new ArrayList(afterCreationChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have only one more element", 1, delta.size()); - // check it does not impact undo - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - List afterUndoChildren = new ArrayList(targetContainer.getPackagedElements()); - delta = new ArrayList(afterUndoChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have no element", 0, delta.size()); - // should be redoable - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - List afterRedoChildren = new ArrayList(targetContainer.getPackagedElements()); - delta = new ArrayList(afterRedoChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have one more element", 1, delta.size()); - // undo to revert state - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - } else { - Assert.assertTrue("Command should not be executable", command == null || !command.canExecute()); - } - } - - @Test - public void testDeleteComponentFromWrongPackage() throws ExecutionException { - // should be possible. no influence on deletion is expected - testDeleteComponent(component1_packageWithAllElements, true); - } - - @Test - public void testDeleteComponentFromGoodPackage() throws ExecutionException { - // should be possible. no influence on deletion is expected - testDeleteComponent(component1_packageWithComponents, true); - } - - protected void testDeleteComponent(EObject objectToDelete, boolean canDelete) throws ExecutionException { - IProgressMonitor monitor = new NullProgressMonitor(); - // should be possible - DestroyElementRequest request = new DestroyElementRequest(transactionalEditingDomain, objectToDelete, false); - IElementEditService service = ElementEditServiceUtils.getCommandProvider(objectToDelete); - ICommand command = service.getEditCommand(request); - // get children before modification - List originalChildren = new ArrayList((List) objectToDelete.eContainer().eGet(objectToDelete.eContainingFeature(), true)); - EObject container = objectToDelete.eContainer(); - EStructuralFeature containingFeature = objectToDelete.eContainingFeature(); - if (canDelete) { - Assert.assertTrue("Command should be executable", command.canExecute()); - IStatus status = command.execute(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - // get result - List afterDeletionChildren = new ArrayList((List) container.eGet(containingFeature, true)); - List delta = new ArrayList(originalChildren); - delta.removeAll(afterDeletionChildren); - Assert.assertEquals("List should have one element only", 1, delta.size()); - Assert.assertEquals("deleted element should be the specified one", objectToDelete, delta.get(0)); - // check it does not impact undo - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - List afterUndoChildren = new ArrayList((List) container.eGet(containingFeature, true)); - delta = new ArrayList(afterUndoChildren); - delta.removeAll(originalChildren); - Assert.assertEquals("List should have no element", 0, delta.size()); - // should be redoable - Assert.assertTrue("Command should be redoable", command.canRedo()); - status = command.redo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - List afterRedoChildren = new ArrayList((List) container.eGet(containingFeature, true)); - delta = new ArrayList(originalChildren); - delta.removeAll(afterRedoChildren); - Assert.assertEquals("List should have one more element", 1, delta.size()); - // undo to revert state - Assert.assertTrue("Command should be undoable", command.canUndo()); - status = command.undo(monitor, null); - Assert.assertTrue("Status should be OK", status.isOK()); - } else { - Assert.assertTrue("Command should not be executable", command == null || !command.canExecute()); - } - } - - @Test - public void testValidAdvicesOrder() { - IElementType classElementType = ElementTypeRegistry.getInstance().getType("org.eclipse.papyrus.uml.Class"); - ResourceSet resourceSet = new ResourceSetImpl(); - Resource validAdviesOrderConfigurationResource = resourceSet.getResource(URI.createURI(VALID_ADVICES_ORDER_CONFIGURATIONS), true); - EObject root = validAdviesOrderConfigurationResource.getContents().get(0); - if (root instanceof ElementTypeSetConfiguration) { - - try { - ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), (ElementTypeSetConfiguration) root); - } catch (ServiceException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - IEditHelperAdvice[] advicesAfterLoading = ElementTypeRegistry.getInstance().getEditHelperAdvice(classElementType); - Arrays.sort(advicesAfterLoading, new AdviceComparator()); - - int advice1Index = -1; - int advice2Index = -1; - int advice3Index = -1; - for (int i = 0; i < advicesAfterLoading.length; i++) { - IEditHelperAdvice iEditHelperAdvice = advicesAfterLoading[i]; - if (iEditHelperAdvice.getClass().getName().equals(ADVICES_ID_1)) { - advice1Index = i; - } else if (iEditHelperAdvice.getClass().getName().equals(ADVICES_ID_2)) { - advice2Index = i; - } else if (iEditHelperAdvice.getClass().getName().equals(ADVICES_ID_3)) { - advice3Index = i; - } - } - - Assert.assertTrue(ADVICES_ID_2 + " should be after " + ADVICES_ID_3, advice3Index < advice2Index); - Assert.assertTrue(ADVICES_ID_3 + " should be after " + ADVICES_ID_1, advice2Index < advice1Index); - } else { - Assert.fail("Failed to load test model: " + CYCLIC_ADVICES_CONFIGURATIONS); - } - } - - @Test - public void testCyclicAdvices() { - IElementType classElementType = ElementTypeRegistry.getInstance().getType("org.eclipse.papyrus.uml.Class"); - IEditHelperAdvice[] advicesBeforeLoading = ElementTypeRegistry.getInstance().getEditHelperAdvice(classElementType); - ResourceSet resourceSet = new ResourceSetImpl(); - Resource cyclicAdvicesConfigurationResource = resourceSet.getResource(URI.createURI(CYCLIC_ADVICES_CONFIGURATIONS), true); - org.eclipse.emf.ecore.EObject root = cyclicAdvicesConfigurationResource.getContents().get(0); - if (root instanceof ElementTypeSetConfiguration) { - try { - ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), (ElementTypeSetConfiguration) root); - } catch (ServiceException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - IEditHelperAdvice[] advicesAfterLoading = ElementTypeRegistry.getInstance().getEditHelperAdvice(classElementType); - Assert.assertArrayEquals("Advices for UML::Class should have not been changed: ", advicesBeforeLoading, advicesAfterLoading); - } else { - Assert.fail("Failed to load test model: " + CYCLIC_ADVICES_CONFIGURATIONS); - } - } -} \ No newline at end of file diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementTypesRegistryTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementTypesRegistryTests.java deleted file mode 100644 index 6c0f7d518dc..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ElementTypesRegistryTests.java +++ /dev/null @@ -1,40 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation - * Christian W. Damus (CEA) - bug 431953 (fix test to prevent Model Repair dialog on unrecognized profile schema) - * Christian W. Damus (CEA) - bug 434993 - * Christian W. Damus - bug 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.junit.Assert; -import org.junit.Test; - -/** - * Tests for {@link ElementTypesConfigurationsRegistry} - */ -public class ElementTypesRegistryTests extends AbstractElementTypeTests implements ITestConstants { - - /** - * Test registration based on plugin declaration - */ - @Test - // transcoded from extended types framework - public final void testGetTypeRegisteredInplugin() { - // check standard class - IElementType classType = ElementTypeRegistry.getInstance().getType(ORG_ECLIPSE_PAPYRUS_UML_CLASS); - Assert.assertNotNull("Element type should be registered", classType); - IElementType abstractClassType = ElementTypeRegistry.getInstance().getType(ABSTRACT_CLASS_TOOL); - Assert.assertNotNull("Element type should be registered", abstractClassType); - } -} \ No newline at end of file diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ITestConstants.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ITestConstants.java deleted file mode 100644 index 449ab399284..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/ITestConstants.java +++ /dev/null @@ -1,50 +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: - * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - - -/** - * Constants for test classes - */ -public interface ITestConstants { - static final String ORG_ECLIPSE_PAPYRUS_UML_CLASS = "org.eclipse.papyrus.uml.Class"; //$NON-NLS-1$ - - final static String ABSTRACT_CLASS_TOOL = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.aspectabstractclass"; //$NON-NLS-1$ - - final static String ElementTypeConfigurationSetName_Test1 = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.tests"; //$NON-NLS-1$ - - final static String WORKSPACE_ELEMENT_TYPE_ID = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.workspacetype"; //$NON-NLS-1$ - - final static String WORKSPACE_ELEMENT_TYPE_TOOL = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.tool"; //$NON-NLS-1$ - - static final String PACKAGE_WITH_COMPONENTS = "PackageWithComponents"; //$NON-NLS-1$ - - static final String PACKAGE_WITH_ALL_ELEMENTS = "PackageWithAllElements"; //$NON-NLS-1$ - - static final String OTHER_PACKAGE_WITH_COMPONENTS = "OtherPackageWithComponents"; //$NON-NLS-1$ - - static final String PACKAGE_WITH_COMPONENTS_TYPE_ID = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.packagewithcomponentsonly"; //$NON-NLS-1$ - - static final String SPECIFICCOMPONENT_TYPE_ID = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.specificcomponent"; //$NON-NLS-1$ - - static final String COMPONENT_NAME = "Component1"; //$NON-NLS-1$ - - static final String CYCLIC_ADVICES_CONFIGURATIONS = "platform:/plugin/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/cyclicAdvices.elementtypesconfigurations"; - - static final String VALID_ADVICES_ORDER_CONFIGURATIONS = "platform:/plugin/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/model/validAdvicesOrder.elementtypesconfigurations"; - - static final String ADVICES_ID_1 = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.TestEditHelperAdvice1"; - static final String ADVICES_ID_2 = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.TestEditHelperAdvice2"; - static final String ADVICES_ID_3 = "org.eclipse.papyrus.infra.elementtypesconfigurations.tests.TestEditHelperAdvice3"; - - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice1.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice1.java deleted file mode 100644 index 1b9f3e552ab..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice1.java +++ /dev/null @@ -1,20 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; - -public class TestEditHelperAdvice1 extends AbstractEditHelperAdvice { - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice2.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice2.java deleted file mode 100644 index a4472a6125d..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice2.java +++ /dev/null @@ -1,20 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; - -public class TestEditHelperAdvice2 extends AbstractEditHelperAdvice { - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice3.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice3.java deleted file mode 100644 index cfa4994160d..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/tests/TestEditHelperAdvice3.java +++ /dev/null @@ -1,20 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.infra.elementtypesconfigurations.tests; - -import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; - -public class TestEditHelperAdvice3 extends AbstractEditHelperAdvice { - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.classpath b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.classpath deleted file mode 100644 index 098194ca4b7..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.project b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.project deleted file mode 100644 index 34d625c0ad2..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index eb9bfba9949..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,296 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/META-INF/MANIFEST.MF deleted file mode 100644 index c6ed73d54d2..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.core.runtime, - org.junit;bundle-version="4.10.0", - org.eclipse.papyrus.junit.framework;bundle-version="1.2.0", - org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", - org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations.ui;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations.tests;bundle-version="1.2.0", - org.eclipse.papyrus.infra.services.edit, - org.eclipse.gmf.runtime.emf.type.core, - org.eclipse.papyrus.infra.core -Export-Package: org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-Version: 1.2.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests;singleton:=true -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/about.html b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/build.properties b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/build.properties deleted file mode 100644 index dbbbb2abde7..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/build.properties +++ /dev/null @@ -1,21 +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: -# CEA LIST - Initial API and implementation - -bin.includes = .,\ - META-INF/,\ - plugin.properties,\ - plugin.xml,\ - about.html,\ - model/ -jars.compile.order = . -source.. = src/ -output.. = bin/ -src.includes = about.html diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesMenu.xmi b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesMenu.xmi deleted file mode 100644 index 8b806ee99e6..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesMenu.xmi +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesTestsProfile.ctx b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesTestsProfile.ctx deleted file mode 100644 index 53530aadcbb..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/ElementTypesTestsProfile.ctx +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/MyPalette.palette b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/MyPalette.palette deleted file mode 100644 index 6fe86de2535..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/model/MyPalette.palette +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - Electrical - - - - - - - - \ No newline at end of file diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/org.eclipse.papyrus.infra.elementtypes.tests.ui.launch b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/org.eclipse.papyrus.infra.elementtypes.tests.ui.launch deleted file mode 100644 index efed3030387..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/org.eclipse.papyrus.infra.elementtypes.tests.ui.launch +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.properties b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.properties deleted file mode 100644 index 596019605b9..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.properties +++ /dev/null @@ -1,13 +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: -# CEA LIST - Initial API and implementation - -pluginName = ElementTypesConfigurations Tests -providerName = Eclipse Modeling Project diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.xml b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.xml deleted file mode 100644 index fd912e73f31..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/plugin.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/pom.xml b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/pom.xml deleted file mode 100644 index 6f55d725c2c..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus - org.eclipse.papyrus.tests.releng - 1.2.0-SNAPSHOT - ../../../../../releng/main-tests - - org.eclipse.papyrus - org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests - 1.2.0-SNAPSHOT - eclipse-test-plugin - diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/AllTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/AllTests.java deleted file mode 100644 index ea019a4f63d..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/AllTests.java +++ /dev/null @@ -1,29 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation - * Christian W. Damus - bug 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.tests.ElementTypesRegistryTests; -import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; -import org.junit.runner.RunWith; -import org.junit.runners.Suite.SuiteClasses; - - -/** - * All tests for this fragment - */ -@RunWith(ClassificationSuite.class) -@SuiteClasses({ ElementTypesRegistryTests.class }) -public class AllTests { - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/ElementTypesRegistryTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/ElementTypesRegistryTests.java deleted file mode 100644 index 135f2ecc549..00000000000 --- a/tests/junit/plugins/core/org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests/src/org/eclipse/papyrus/infra/elementtypesconfigurations/ui/tests/ElementTypesRegistryTests.java +++ /dev/null @@ -1,127 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation - * Christian W. Damus (CEA) - bug 431953 (fix test to prevent Model Repair dialog on unrecognized profile schema) - * Christian W. Damus (CEA) - bug 434993 - * Christian W. Damus - bug 485220 - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests; - -import static org.junit.Assert.fail; - -import java.io.IOException; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.tests.AbstractElementTypeTests; -import org.eclipse.papyrus.infra.elementtypesconfigurations.tests.ITestConstants; -import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; -import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; -import org.osgi.framework.Bundle; -import org.osgi.framework.FrameworkUtil; - -/** - * Tests for {@link ElementTypesConfigurationsRegistry} - */ -public class ElementTypesRegistryTests extends AbstractElementTypeTests implements ITestConstants { - - protected static IFile workspaceTestFile; - - /** - * Init test class - */ - @BeforeClass - public static void initCreateElementTest() { - // import user-defined element types model - try { - Bundle bundle = FrameworkUtil.getBundle(ElementTypesRegistryTests.class); - workspaceTestFile = PapyrusProjectUtils.copyIFile("/model/WorkspaceTest.elementtypesconfigurations", bundle, createProject, "/model/WorkspaceTest.elementtypesconfigurations"); - Assert.assertTrue(workspaceTestFile.isAccessible()); - } catch (CoreException e) { - fail(e.getMessage()); - } catch (IOException e) { - fail(e.getMessage()); - } - } - - /** - * Test registration based on plugin declaration - */ - @Test - // transcoded from extended types framework - public final void testGetTypeRegisteredInplugin() { - // check standard class - IElementType classType = ElementTypeRegistry.getInstance().getType(ORG_ECLIPSE_PAPYRUS_UML_CLASS); - Assert.assertNotNull("Element type should be registered", classType); - IElementType abstractClassType = ElementTypeRegistry.getInstance().getType(ABSTRACT_CLASS_TOOL); - Assert.assertNotNull("Element type should be registered", abstractClassType); - } - - /** - * Test workspace registration. Element type in the workspace, but element type set is not loaded - */ - @Test - // transcoded from extended types framework - public final void testGetTypeRegisteredInWorkspaceNotLoaded() { - checkPluginTypes(); - // this should not be defined yet - IElementType workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); - Assert.assertNull("Element type should not be registered yet", workspaceType); - } - - /** - * Test workspace registration. Element type in the workspace, but element type set is not loaded - */ - @Test - // transcoded from extended types framework - public final void testLoadUnloadWorkspaceSet() { - // this should not be defined yet - IElementType workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); - Assert.assertNull("Element type should not be registered yet", workspaceType); - checkPluginTypes(); - // register - try { - ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), workspaceTestFile.getFullPath().toString()); - - // - workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); - Assert.assertNotNull("Element type should be registered", workspaceType); - checkPluginTypes(); - // unregister - ElementTypeSetConfigurationRegistry.getInstance().unload(TypeContext.getContext().getId(), WORKSPACE_ELEMENT_TYPE_ID); - workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); - Assert.assertNull("Element type should not be registered anymore", workspaceType); - checkPluginTypes(); - } catch (ServiceException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - /** - * Check always present element types are registered - */ - private void checkPluginTypes() { - IElementType classType = ElementTypeRegistry.getInstance().getType(ORG_ECLIPSE_PAPYRUS_UML_CLASS); - Assert.assertNotNull("Element type should be registered", classType); - IElementType abstractClassType = ElementTypeRegistry.getInstance().getType(ABSTRACT_CLASS_TOOL); - Assert.assertNotNull("Element type should be registered", abstractClassType); - } - - -} diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/core/org.eclipse.papyrus.tests/META-INF/MANIFEST.MF index 6b9f1a116c7..b5719b121b8 100644 --- a/tests/junit/plugins/core/org.eclipse.papyrus.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/core/org.eclipse.papyrus.tests/META-INF/MANIFEST.MF @@ -43,7 +43,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.uml.diagram.interactionoverview.tests;bundle-version="1.2.0", org.eclipse.papyrus.uml.diagram.composite.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.css.tests;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations.tests;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.extendedtypes.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.2.0", org.eclipse.papyrus.infra.emf.readonly;bundle-version="1.2.0", @@ -88,7 +88,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.infra.ui.emf;bundle-version="1.2.0", org.eclipse.papyrus.infra.services.edit.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.services.edit.ui.tests;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.ui.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.extendedtypes.ui.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.services.semantic.tests;bundle-version="1.2.0", org.eclipse.papyrus.uml.service.types.ui;bundle-version="1.2.0" diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.tests/test/org/eclipse/papyrus/tests/AllTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.tests/test/org/eclipse/papyrus/tests/AllTests.java index 80e1ab33e27..ea04f97cb75 100644 --- a/tests/junit/plugins/core/org.eclipse.papyrus.tests/test/org/eclipse/papyrus/tests/AllTests.java +++ b/tests/junit/plugins/core/org.eclipse.papyrus.tests/test/org/eclipse/papyrus/tests/AllTests.java @@ -60,8 +60,8 @@ public class AllTests { suiteClasses.add(new FragmentTestSuiteClass(org.eclipse.papyrus.infra.ui.internal.emf.Activator.PLUGIN_ID, "org.eclipse.papyrus.infra.ui.emf.tests.AllTests")); suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.extendedtypes.tests.AllTests.class)); suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.extendedtypes.ui.tests.AllTests.class)); - suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.elementtypesconfigurations.tests.AllTests.class)); - suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.elementtypesconfigurations.ui.tests.AllTests.class)); + suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.types.tests.AllTests.class)); + suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.types.ui.tests.AllTests.class)); // suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.infra.services.openelement.tests.AllTests.class)); suiteClasses.add(new FragmentTestSuiteClass(org.eclipse.papyrus.commands.Activator.PLUGIN_ID, "org.eclipse.papyrus.infra.gmfdiag.commands.tests.AllTests")); suiteClasses.add(new FragmentTestSuiteClass(org.eclipse.papyrus.infra.gmfdiag.common.Activator.ID, "org.eclipse.papyrus.infra.gmfdiag.common.tests.AllTests")); diff --git a/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/META-INF/MANIFEST.MF index 4d9c4b9489f..c623666ed8f 100644 --- a/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/META-INF/MANIFEST.MF @@ -8,7 +8,7 @@ Require-Bundle: org.eclipse.emf.ecore.xmi;bundle-version="2.8.0", org.eclipse.uml2.uml;bundle-version="5.0.0", org.eclipse.papyrus.junit.framework;bundle-version="1.2.0", org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0" + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0" Bundle-Vendor: %providerName Fragment-Host: org.eclipse.papyrus.infra.emf;bundle-version="1.2.0" Bundle-Version: 1.2.0.qualifier diff --git a/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/tests/org/eclipse/papyrus/infra/emf/tests/AllTests.java b/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/tests/org/eclipse/papyrus/infra/emf/tests/AllTests.java index 340a6fdbd61..158a001365e 100644 --- a/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/tests/org/eclipse/papyrus/infra/emf/tests/AllTests.java +++ b/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.emf.tests/tests/org/eclipse/papyrus/infra/emf/tests/AllTests.java @@ -13,11 +13,11 @@ */ package org.eclipse.papyrus.infra.emf.tests; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.emf.advice.ReadOnlyObjectEditAdviceTest; import org.eclipse.papyrus.infra.emf.edit.domain.PapyrusTransactionalEditingDomainTest; import org.eclipse.papyrus.infra.emf.resource.index.WorkspaceModelIndexTest; import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForResourceTest; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; import org.eclipse.papyrus.junit.framework.runner.Headless; import org.junit.BeforeClass; diff --git a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/META-INF/MANIFEST.MF index f1fcde4b69b..5ac349845fb 100644 --- a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/META-INF/MANIFEST.MF @@ -14,7 +14,7 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.papyrus.infra.core;bundle-version="1.2.0", org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.2.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", com.google.guava;bundle-version="11.0.0", org.eclipse.gef;bundle-version="3.10.0", diff --git a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-all.elementtypesconfigurations b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-all.elementtypesconfigurations index f2b9d9b3e18..8b23ee924c2 100644 --- a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-all.elementtypesconfigurations +++ b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-all.elementtypesconfigurations @@ -1,98 +1,98 @@ - - - - org.eclipse.papyrus.uml.Class - - j2ee::Bean - - - - - org.eclipse.papyrus.uml.Operation - - j2ee::Finder - - - - - org.eclipse.papyrus.uml.Dependency - - j2ee::Import - - - - - org.eclipse.papyrus.uml.Association - - j2ee::Web - - - - - org.eclipse.papyrus.uml.Actor - - j2ee::User - - - - - org.eclipse.papyrus.uml.Actor - - j2ee::Browser - - - - - org.eclipse.papyrus.uml.ExtensionPoint - - j2ee::BranchPoint - - - - - org.eclipse.papyrus.uml.UseCase - - j2ee::WebScenario - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - + + + + org.eclipse.papyrus.uml.Class + + j2ee::Bean + + + + + org.eclipse.papyrus.uml.Operation + + j2ee::Finder + + + + + org.eclipse.papyrus.uml.Dependency + + j2ee::Import + + + + + org.eclipse.papyrus.uml.Association + + j2ee::Web + + + + + org.eclipse.papyrus.uml.Actor + + j2ee::User + + + + + org.eclipse.papyrus.uml.Actor + + j2ee::Browser + + + + + org.eclipse.papyrus.uml.ExtensionPoint + + j2ee::BranchPoint + + + + + org.eclipse.papyrus.uml.UseCase + + j2ee::WebScenario + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-usecase.elementtypesconfigurations b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-usecase.elementtypesconfigurations index d2010af4d3c..2ef8577d458 100644 --- a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-usecase.elementtypesconfigurations +++ b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/resources/j2ee-usecase.elementtypesconfigurations @@ -1,182 +1,182 @@ - - - - org.eclipse.papyrus.uml.diagram.usecase.Dependency_4013 - - j2ee::Import - - - - - org.eclipse.papyrus.uml.diagram.usecase.Association_4011 - - j2ee::Web - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_3018 - - j2ee::User - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_3011 - - j2ee::User - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_2011 - - j2ee::User - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_2012 - - j2ee::User - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_3018 - - j2ee::Browser - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_3011 - - j2ee::Browser - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_2011 - - j2ee::Browser - - - - - org.eclipse.papyrus.uml.diagram.usecase.Actor_2012 - - j2ee::Browser - - - - - org.eclipse.papyrus.uml.diagram.usecase.ExtensionPoint_3007 - - j2ee::BranchPoint - - - - - org.eclipse.papyrus.uml.diagram.usecase.ExtensionPoint_3008 - - j2ee::BranchPoint - - - - - org.eclipse.papyrus.uml.diagram.usecase.UseCase_3012 - - j2ee::WebScenario - - - - - org.eclipse.papyrus.uml.diagram.usecase.UseCase_2013 - - j2ee::WebScenario - - - - - org.eclipse.papyrus.uml.diagram.usecase.UseCase_2014 - - j2ee::WebScenario - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - - - - j2ee - - + + + + org.eclipse.papyrus.uml.diagram.usecase.Dependency_4013 + + j2ee::Import + + + + + org.eclipse.papyrus.uml.diagram.usecase.Association_4011 + + j2ee::Web + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_3018 + + j2ee::User + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_3011 + + j2ee::User + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_2011 + + j2ee::User + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_2012 + + j2ee::User + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_3018 + + j2ee::Browser + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_3011 + + j2ee::Browser + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_2011 + + j2ee::Browser + + + + + org.eclipse.papyrus.uml.diagram.usecase.Actor_2012 + + j2ee::Browser + + + + + org.eclipse.papyrus.uml.diagram.usecase.ExtensionPoint_3007 + + j2ee::BranchPoint + + + + + org.eclipse.papyrus.uml.diagram.usecase.ExtensionPoint_3008 + + j2ee::BranchPoint + + + + + org.eclipse.papyrus.uml.diagram.usecase.UseCase_3012 + + j2ee::WebScenario + + + + + org.eclipse.papyrus.uml.diagram.usecase.UseCase_2013 + + j2ee::WebScenario + + + + + org.eclipse.papyrus.uml.diagram.usecase.UseCase_2014 + + j2ee::WebScenario + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + + + + j2ee + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AllTests.java b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AllTests.java index b1384f6e1d6..d57d257be7b 100644 --- a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AllTests.java +++ b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AllTests.java @@ -13,10 +13,10 @@ package org.eclipse.papyrus.infra.gmfdiag.assistant.tests; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; import org.junit.BeforeClass; import org.junit.runner.RunWith; -import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; import org.junit.runners.Suite.SuiteClasses; /** diff --git a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AssistantsFixture.java b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AssistantsFixture.java index a32806e8cfa..88e36d6256a 100644 --- a/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AssistantsFixture.java +++ b/tests/junit/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.tests/src/org/eclipse/papyrus/infra/gmfdiag/assistant/tests/AssistantsFixture.java @@ -20,14 +20,14 @@ import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.emf.utils.EMFHelper; import org.eclipse.papyrus.infra.gmfdiag.assistant.core.IModelingAssistantModelProvider; import org.eclipse.papyrus.infra.gmfdiag.assistant.internal.core.DefaultModelingAssistantModelProvider; import org.eclipse.papyrus.infra.gmfdiag.assistant.internal.core.ModelingAssistantModelRegistry; import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.junit.utils.JUnitUtils; import org.eclipse.uml2.uml.util.UMLUtil; import org.junit.rules.TestWatcher; @@ -62,7 +62,7 @@ public class AssistantsFixture extends TestWatcher { // Load the corresponding element types, if they are a custom set URI elementTypesModelURI = getModelURI(assistantsModelPath.replaceFirst("\\.assistants$", ".elementtypesconfigurations"), description); if (elementTypesModelURI != null) { - ElementTypeSetConfiguration elementTypes = UMLUtil.load(resourceSet, elementTypesModelURI, ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); + ElementTypeSetConfiguration elementTypes = UMLUtil.load(resourceSet, elementTypesModelURI, ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION); try { ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), (ElementTypeSetConfiguration) elementTypes); diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/META-INF/MANIFEST.MF index 8646b69811c..653969f63d4 100644 --- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/META-INF/MANIFEST.MF @@ -5,7 +5,8 @@ Require-Bundle: org.junit;bundle-version="4.10.0", org.eclipse.papyrus.infra.gmfdiag.assistant, org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.canonical;bundle-version="1.2.0", - org.eclipse.uml2.uml;bundle-version="5.1.0" + org.eclipse.uml2.uml;bundle-version="5.1.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0" Export-Package: org.eclipse.papyrus.infra.gmfdiag.common.tests, org.eclipse.papyrus.infra.gmfdiag.common.utils Bundle-Vendor: %providerName diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml index 8ed905b33b7..0c39a506f83 100644 --- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml +++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml @@ -2,7 +2,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/TestExpansionDiagram.elementtypesconfigurations b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/TestExpansionDiagram.elementtypesconfigurations index 9c3d8509c79..41dc1093548 100644 --- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/TestExpansionDiagram.elementtypesconfigurations +++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/TestExpansionDiagram.elementtypesconfigurations @@ -1,14 +1,14 @@ - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Interface - - - - org.eclipse.papyrus.uml.Dependency - + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Interface + + + + org.eclipse.papyrus.uml.Dependency + \ No newline at end of file diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/ExpansionAddLink.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/ExpansionAddLink.java index 800a55f5eed..235c7ba2d84 100644 --- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/ExpansionAddLink.java +++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/ExpansionAddLink.java @@ -33,12 +33,12 @@ import org.eclipse.gmf.runtime.notation.Diagram; import org.eclipse.papyrus.infra.core.resource.ModelSet; import org.eclipse.papyrus.infra.core.sashwindows.di.service.IPageManager; import org.eclipse.papyrus.infra.core.utils.ServiceUtils; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeConfigurationTypeRegistry; import org.eclipse.papyrus.infra.gmfdiag.common.SynchronizableGmfDiagramEditor; import org.eclipse.papyrus.infra.gmfdiag.common.expansion.ChildrenListRepresentation; import org.eclipse.papyrus.infra.gmfdiag.common.expansion.DiagramExpansionSingleton; import org.eclipse.papyrus.infra.gmfdiag.common.expansion.DiagramExpansionsRegistry; import org.eclipse.papyrus.infra.gmfdiag.common.model.NotationModel; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeConfigurationTypeRegistry; import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor; import org.eclipse.papyrus.junit.utils.tests.AbstractEditorTest; import org.junit.Assert; diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.classpath b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.classpath new file mode 100644 index 00000000000..098194ca4b7 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.project b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.project new file mode 100644 index 00000000000..ba9a5dfdbe6 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..eb9bfba9949 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,296 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..3421a655037 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/META-INF/MANIFEST.MF @@ -0,0 +1,22 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", + org.junit;bundle-version="4.10.0", + org.eclipse.papyrus.junit.framework;bundle-version="1.2.0", + org.eclipse.papyrus.infra.newchild;bundle-version="1.2.0", + org.eclipse.papyrus.infra.core;bundle-version="1.2.0", + org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", + org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0", + org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", + org.eclipse.papyrus.infra.ui;bundle-version="1.2.0" +Export-Package: org.eclipse.papyrus.infra.types.tests +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-Activator: org.eclipse.papyrus.infra.types.tests.Activator +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.tests;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/about.html b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/build.properties b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/build.properties new file mode 100644 index 00000000000..477c982e1d6 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/build.properties @@ -0,0 +1,21 @@ +# 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: +# CEA LIST - Initial API and implementation + +bin.includes = .,\ + META-INF/,\ + plugin.properties,\ + plugin.xml,\ + model/,\ + about.html +jars.compile.order = . +source.. = src/ +output.. = bin/ +src.includes = about.html diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/M.gif b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/M.gif new file mode 100644 index 00000000000..f9a5b239d6c Binary files /dev/null and b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/M.gif differ diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/O.gif b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/O.gif new file mode 100644 index 00000000000..e6ce0916227 Binary files /dev/null and b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/O.gif differ diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/Values.gif b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/Values.gif new file mode 100644 index 00000000000..f1f019535ea Binary files /dev/null and b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/Values.gif differ diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/debug.gif b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/debug.gif new file mode 100644 index 00000000000..ac5431fa311 Binary files /dev/null and b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/icons/debug.gif differ diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.di b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.di new file mode 100644 index 00000000000..bf9abab340f --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.di @@ -0,0 +1,2 @@ + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.notation b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.notation new file mode 100644 index 00000000000..1d458586ccd --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.notation @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.uml b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.uml new file mode 100644 index 00000000000..4f1610dae4d --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/ElementTypesTestsProfile.profile.uml @@ -0,0 +1,195 @@ + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/MyPalette.palette b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/MyPalette.palette new file mode 100644 index 00000000000..6fe86de2535 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/MyPalette.palette @@ -0,0 +1,22 @@ + + + + + + + + + + Electrical + + + + + + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/cyclicAdvices.elementtypesconfigurations b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/cyclicAdvices.elementtypesconfigurations new file mode 100644 index 00000000000..f87090fa236 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/cyclicAdvices.elementtypesconfigurations @@ -0,0 +1,18 @@ + + + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice2 + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice3 + + + + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice1 + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice3 + + + + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice1 + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice2 + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice1 + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/elementtypetest.elementtypesconfigurations b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/elementtypetest.elementtypesconfigurations new file mode 100644 index 00000000000..903c3db5554 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/elementtypetest.elementtypesconfigurations @@ -0,0 +1,108 @@ + + + + org.eclipse.papyrus.uml.Component + + + + + + + org.eclipse.papyrus.uml.Package + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.uml.Class + + + + org.eclipse.papyrus.infra.types.tests.aspectabstractclass + + + + + + + + + + + + ElementTypesTestProfile + + + + + ElementTypesTestProfile + + + + + ElementTypesTestsProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ElementTypesTestsProfile + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.di b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.di new file mode 100644 index 00000000000..bf9abab340f --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.di @@ -0,0 +1,2 @@ + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.notation b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.notation new file mode 100644 index 00000000000..71ff069b40f --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.notation @@ -0,0 +1,220 @@ + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.uml b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.uml new file mode 100644 index 00000000000..020393cf651 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/model.uml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/validAdvicesOrder.elementtypesconfigurations b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/validAdvicesOrder.elementtypesconfigurations new file mode 100644 index 00000000000..0a40140a8d6 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/model/validAdvicesOrder.elementtypesconfigurations @@ -0,0 +1,15 @@ + + + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice2 + + + + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice3 + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice1 + + + + org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice2 + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/org.eclipse.papyrus.infra.types.tests.launch b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/org.eclipse.papyrus.infra.types.tests.launch new file mode 100644 index 00000000000..21e01810665 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/org.eclipse.papyrus.infra.types.tests.launch @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.properties b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.properties new file mode 100644 index 00000000000..596019605b9 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.properties @@ -0,0 +1,13 @@ +# 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: +# CEA LIST - Initial API and implementation + +pluginName = ElementTypesConfigurations Tests +providerName = Eclipse Modeling Project diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.xml b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.xml new file mode 100644 index 00000000000..f53483d7e6f --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/plugin.xml @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/pom.xml b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/pom.xml new file mode 100644 index 00000000000..6e1b56322a5 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus.tests.releng + 1.2.0-SNAPSHOT + ../../../../../../releng/main-tests + + org.eclipse.papyrus + org.eclipse.papyrus.infra.types.tests + 1.2.0-SNAPSHOT + eclipse-test-plugin + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AbstractElementTypeTests.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AbstractElementTypeTests.java new file mode 100644 index 00000000000..f33892a1024 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AbstractElementTypeTests.java @@ -0,0 +1,197 @@ +/***************************************************************************** + * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation + * Christian W. Damus - bug 485220 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.tests; + +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +import java.io.IOException; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.Platform; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.gmf.runtime.emf.type.core.IClientContext; +import org.eclipse.papyrus.infra.core.resource.ModelSet; +import org.eclipse.papyrus.infra.core.resource.ModelUtils; +import org.eclipse.papyrus.infra.core.resource.NotFoundException; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.EditorUtils; +import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; +import org.eclipse.papyrus.junit.utils.rules.HouseKeeper; +import org.eclipse.papyrus.uml.tools.model.UmlModel; +import org.eclipse.papyrus.uml.tools.model.UmlUtils; +import org.eclipse.swt.widgets.Display; +import org.eclipse.ui.PartInitException; +import org.eclipse.uml2.uml.Component; +import org.eclipse.uml2.uml.Model; +import org.eclipse.uml2.uml.Package; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.ClassRule; +import org.osgi.framework.Bundle; + +/** + * Abstract class for element types tests + */ +public abstract class AbstractElementTypeTests extends AbstractPapyrusTest implements ITestConstants { + + + @ClassRule + public static HouseKeeper.Static houseKeeper = new HouseKeeper.Static(); + + protected static IProject createProject; + + protected static IFile copyPapyrusModel; + + protected static IMultiDiagramEditor openPapyrusEditor; + + protected static ModelSet modelset; + + protected static UmlModel umlIModel; + + protected static Model rootModel; + + protected static TransactionalEditingDomain transactionalEditingDomain; + + protected static Package packageWithAllElements; + + protected static Package packageWithComponents; + + protected static IClientContext papyrusContext; + + protected static Package otherPackageWithComponents; + + protected static Component component1_packageWithComponents; + + protected static Component component1_otherPackageWithComponents; + + protected static Component component1_packageWithAllElements; + + + /** + * Init test class + */ + @SuppressWarnings("restriction") + @BeforeClass + public static void initCreateElementTest() { + + // create Project + createProject = houseKeeper.createProject("ElementTypes"); + + // import test model and profile + try { + Bundle bundle = Platform.getBundle("org.eclipse.papyrus.infra.types.tests"); + copyPapyrusModel = PapyrusProjectUtils.copyPapyrusModel(createProject, bundle, "/model/", "model"); + PapyrusProjectUtils.copyPapyrusModel(createProject, bundle, "/model/", "ElementTypesTestsProfile.profile"); + } catch (CoreException e) { + fail(e.getMessage()); + } catch (IOException e) { + fail(e.getMessage()); + } + + // open project + Display.getDefault().syncExec(new Runnable() { + + @Override + public void run() { + try { + openPapyrusEditor = houseKeeper.cleanUpLater(EditorUtils.openPapyrusEditor(copyPapyrusModel)); + } catch (PartInitException e) { + fail(e.getMessage()); + } + } + }); + + transactionalEditingDomain = openPapyrusEditor.getAdapter(TransactionalEditingDomain.class); + assertTrue("Impossible to init editing domain", transactionalEditingDomain instanceof TransactionalEditingDomain); + + // retrieve UML model from this editor + try { + modelset = ModelUtils.getModelSetChecked(openPapyrusEditor.getServicesRegistry()); + umlIModel = UmlUtils.getUmlModel(modelset); + rootModel = (Model) umlIModel.lookupRoot(); + + Assert.assertNotNull("root model should not be null", rootModel); + + } catch (ServiceException e) { + fail(e.getMessage()); + } catch (NotFoundException e) { + fail(e.getMessage()); + } catch (ClassCastException e) { + fail(e.getMessage()); + } + try { + initExistingElements(); + } catch (Exception e) { + fail(e.getMessage()); + } + + try { + papyrusContext = org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext.getContext(); + } catch (ServiceException e) { + fail(e.getMessage()); + } + + } + + /** + * Init fields corresponding to element in the test model + */ + protected static void initExistingElements() throws Exception { + packageWithComponents = rootModel.getNestedPackage(PACKAGE_WITH_COMPONENTS); + Assert.assertNotNull(PACKAGE_WITH_COMPONENTS + " should not be null", packageWithComponents); + Assert.assertTrue(PACKAGE_WITH_COMPONENTS + " should be a Package", packageWithComponents instanceof Package); + + packageWithAllElements = rootModel.getNestedPackage(PACKAGE_WITH_ALL_ELEMENTS); + Assert.assertNotNull(PACKAGE_WITH_ALL_ELEMENTS + " should not be null", packageWithAllElements); + Assert.assertTrue(PACKAGE_WITH_ALL_ELEMENTS + " should be a Package", packageWithAllElements instanceof Package); + + otherPackageWithComponents = rootModel.getNestedPackage(OTHER_PACKAGE_WITH_COMPONENTS); + Assert.assertNotNull(OTHER_PACKAGE_WITH_COMPONENTS + " should not be null", otherPackageWithComponents); + Assert.assertTrue(OTHER_PACKAGE_WITH_COMPONENTS + " should be a Package", otherPackageWithComponents instanceof Package); + + // init components + component1_packageWithComponents = (Component) packageWithComponents.getPackagedElement(COMPONENT_NAME); + Assert.assertNotNull(COMPONENT_NAME + " should not be null", component1_packageWithComponents); + + component1_otherPackageWithComponents = (Component) otherPackageWithComponents.getPackagedElement(COMPONENT_NAME); + Assert.assertNotNull(COMPONENT_NAME + " should not be null", component1_otherPackageWithComponents); + + component1_packageWithAllElements = (Component) packageWithAllElements.getPackagedElement(COMPONENT_NAME); + Assert.assertNotNull(COMPONENT_NAME + " should not be null", component1_packageWithAllElements); + + } + + /** + * @throws java.lang.Exception + */ + @Before + public void setUp() throws Exception { + } + + /** + * @throws java.lang.Exception + */ + @After + public void tearDown() throws Exception { + } + + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/Activator.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/Activator.java new file mode 100644 index 00000000000..8fc86220b59 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/Activator.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * 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: + * CEA LIST - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.tests; + +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.types.tests"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) + */ + 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/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AllTests.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AllTests.java new file mode 100644 index 00000000000..b532518c089 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/AllTests.java @@ -0,0 +1,26 @@ +/***************************************************************************** + * 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: + * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.tests; + +import org.junit.runner.RunWith; +import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; +import org.junit.runners.Suite.SuiteClasses; + + +/** + * All tests for this fragment + */ +@RunWith(ClassificationSuite.class) +@SuiteClasses({ ElementTypesRegistryTests.class, ElementEditHelperAdviceTests.class }) +public class AllTests { + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementEditHelperAdviceTests.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementEditHelperAdviceTests.java new file mode 100644 index 00000000000..6f910601feb --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementEditHelperAdviceTests.java @@ -0,0 +1,307 @@ +/***************************************************************************** + * 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: + * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.tests; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +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.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.papyrus.infra.types.core.utils.AdviceComparator; +import org.eclipse.uml2.uml.Component; +import org.eclipse.uml2.uml.Package; +import org.junit.Assert; +import org.junit.Test; + +/** + * Based upon ExtendedEditHelperAdviceTests + * Test class for element type edit helper advice + */ +public class ElementEditHelperAdviceTests extends AbstractElementTypeTests implements ITestConstants { + + @Test + // transcoded from extended types framework + public void testPACKAGE_WITH_COMPONENTSType() { + List elementTypes = Arrays.asList(ElementTypeRegistry.getInstance().getAllTypesMatching(packageWithComponents, papyrusContext)); + Assert.assertNotNull("list should not be null", elementTypes); + Assert.assertTrue("list should not be empty", elementTypes.size() > 0); + Assert.assertTrue(PACKAGE_WITH_COMPONENTS + " should be a Package With components only type", elementTypes.contains(ElementTypeRegistry.getInstance().getType(PACKAGE_WITH_COMPONENTS_TYPE_ID))); + } + + @Test + public void testPACKAGE_WITH_ALL_ELEMENTSType() { + List elementTypes = Arrays.asList(ElementTypeRegistry.getInstance().getAllTypesMatching(packageWithAllElements, papyrusContext)); + Assert.assertNotNull("list should not be null", elementTypes); + Assert.assertTrue("list should not be empty", elementTypes.size() > 0); + Assert.assertTrue(PACKAGE_WITH_ALL_ELEMENTS + " should not be a Package With components only type", !elementTypes.contains(ElementTypeRegistry.getInstance().getType(PACKAGE_WITH_COMPONENTS_TYPE_ID))); + } + + @Test + // transcoded from extended types framework + public void testSemanticCreateComponentInGoodPackage() throws ExecutionException { + testCreateComponent(packageWithComponents, true); + } + + @Test + // transcoded from extended types framework + public void testSemanticCreateComponentInWrongPackage() throws ExecutionException { + testCreateComponent(packageWithAllElements, false); + } + + protected void testCreateComponent(Package container, boolean canCreate) throws ExecutionException { + IProgressMonitor monitor = new NullProgressMonitor(); + // should be possible + IElementType type = ElementTypeRegistry.getInstance().getType(SPECIFICCOMPONENT_TYPE_ID); + CreateElementRequest request = new CreateElementRequest(transactionalEditingDomain, container, type); + IElementEditService service = ElementEditServiceUtils.getCommandProvider(container); + ICommand command = service.getEditCommand(request); + // get children before modification + List originalChildren = new ArrayList(container.getPackagedElements()); + if (canCreate) { + Assert.assertTrue("Command should be executable", command.canExecute()); + IStatus status = command.execute(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + // get result + List afterCreationChildren = new ArrayList(container.getPackagedElements()); + List delta = new ArrayList(afterCreationChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have only one more element", 1, delta.size()); + // check it does not impact undo + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + List afterUndoChildren = new ArrayList(container.getPackagedElements()); + delta = new ArrayList(afterUndoChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have no element", 0, delta.size()); + // should be redoable + Assert.assertTrue("Command should be redoable", command.canRedo()); + status = command.redo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + List afterRedoChildren = new ArrayList(container.getPackagedElements()); + delta = new ArrayList(afterRedoChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have one more element", 1, delta.size()); + // undo to revert state + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + } else { + Assert.assertTrue("Command should not be executable", command == null || !(command.canExecute())); + } + } + + @Test + public void testSemanticMoveComponentFromGoodPackageToGoodPackage() throws ExecutionException { + // should be possible (target = good package) + testMoveComponent(otherPackageWithComponents, component1_packageWithComponents, true); + } + + @Test + // transcoded from extended types framework + public void testSemanticMoveComponentFromGoodPackageToWrongPackage() throws ExecutionException { + // should be impossible (target = wrong package) + testMoveComponent(packageWithAllElements, component1_packageWithComponents, false); + } + + @Test + public void testSemanticMoveComponentFromWrongPackageToGoodPackage() throws ExecutionException { + // should be possible (target = good package) + testMoveComponent(packageWithComponents, component1_packageWithAllElements, true); + } + + @Test + public void testSemanticMoveComponentFromWrongPackageToWrongPackage() throws ExecutionException { + // should be impossible (target = wrong package) + testMoveComponent(packageWithAllElements, component1_packageWithAllElements, false); + } + + protected void testMoveComponent(Package targetContainer, Component sourceComponent, boolean canMove) throws ExecutionException { + IProgressMonitor monitor = new NullProgressMonitor(); + // should be possible + MoveRequest request = new MoveRequest(transactionalEditingDomain, targetContainer, sourceComponent); + IElementEditService service = ElementEditServiceUtils.getCommandProvider(targetContainer); + ICommand command = service.getEditCommand(request); + // get children before modification + List originalChildren = new ArrayList(targetContainer.getPackagedElements()); + if (canMove) { + Assert.assertTrue("Command should be executable", command.canExecute()); + IStatus status = command.execute(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + // get result + List afterCreationChildren = new ArrayList(targetContainer.getPackagedElements()); + List delta = new ArrayList(afterCreationChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have only one more element", 1, delta.size()); + // check it does not impact undo + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + List afterUndoChildren = new ArrayList(targetContainer.getPackagedElements()); + delta = new ArrayList(afterUndoChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have no element", 0, delta.size()); + // should be redoable + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + List afterRedoChildren = new ArrayList(targetContainer.getPackagedElements()); + delta = new ArrayList(afterRedoChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have one more element", 1, delta.size()); + // undo to revert state + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + } else { + Assert.assertTrue("Command should not be executable", command == null || !command.canExecute()); + } + } + + @Test + public void testDeleteComponentFromWrongPackage() throws ExecutionException { + // should be possible. no influence on deletion is expected + testDeleteComponent(component1_packageWithAllElements, true); + } + + @Test + public void testDeleteComponentFromGoodPackage() throws ExecutionException { + // should be possible. no influence on deletion is expected + testDeleteComponent(component1_packageWithComponents, true); + } + + protected void testDeleteComponent(EObject objectToDelete, boolean canDelete) throws ExecutionException { + IProgressMonitor monitor = new NullProgressMonitor(); + // should be possible + DestroyElementRequest request = new DestroyElementRequest(transactionalEditingDomain, objectToDelete, false); + IElementEditService service = ElementEditServiceUtils.getCommandProvider(objectToDelete); + ICommand command = service.getEditCommand(request); + // get children before modification + List originalChildren = new ArrayList((List) objectToDelete.eContainer().eGet(objectToDelete.eContainingFeature(), true)); + EObject container = objectToDelete.eContainer(); + EStructuralFeature containingFeature = objectToDelete.eContainingFeature(); + if (canDelete) { + Assert.assertTrue("Command should be executable", command.canExecute()); + IStatus status = command.execute(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + // get result + List afterDeletionChildren = new ArrayList((List) container.eGet(containingFeature, true)); + List delta = new ArrayList(originalChildren); + delta.removeAll(afterDeletionChildren); + Assert.assertEquals("List should have one element only", 1, delta.size()); + Assert.assertEquals("deleted element should be the specified one", objectToDelete, delta.get(0)); + // check it does not impact undo + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + List afterUndoChildren = new ArrayList((List) container.eGet(containingFeature, true)); + delta = new ArrayList(afterUndoChildren); + delta.removeAll(originalChildren); + Assert.assertEquals("List should have no element", 0, delta.size()); + // should be redoable + Assert.assertTrue("Command should be redoable", command.canRedo()); + status = command.redo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + List afterRedoChildren = new ArrayList((List) container.eGet(containingFeature, true)); + delta = new ArrayList(originalChildren); + delta.removeAll(afterRedoChildren); + Assert.assertEquals("List should have one more element", 1, delta.size()); + // undo to revert state + Assert.assertTrue("Command should be undoable", command.canUndo()); + status = command.undo(monitor, null); + Assert.assertTrue("Status should be OK", status.isOK()); + } else { + Assert.assertTrue("Command should not be executable", command == null || !command.canExecute()); + } + } + + @Test + public void testValidAdvicesOrder() { + IElementType classElementType = ElementTypeRegistry.getInstance().getType("org.eclipse.papyrus.uml.Class"); + ResourceSet resourceSet = new ResourceSetImpl(); + Resource validAdviesOrderConfigurationResource = resourceSet.getResource(URI.createURI(VALID_ADVICES_ORDER_CONFIGURATIONS), true); + EObject root = validAdviesOrderConfigurationResource.getContents().get(0); + if (root instanceof ElementTypeSetConfiguration) { + + try { + ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), (ElementTypeSetConfiguration) root); + } catch (ServiceException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + IEditHelperAdvice[] advicesAfterLoading = ElementTypeRegistry.getInstance().getEditHelperAdvice(classElementType); + Arrays.sort(advicesAfterLoading, new AdviceComparator()); + + int advice1Index = -1; + int advice2Index = -1; + int advice3Index = -1; + for (int i = 0; i < advicesAfterLoading.length; i++) { + IEditHelperAdvice iEditHelperAdvice = advicesAfterLoading[i]; + if (iEditHelperAdvice.getClass().getName().equals(ADVICES_ID_1)) { + advice1Index = i; + } else if (iEditHelperAdvice.getClass().getName().equals(ADVICES_ID_2)) { + advice2Index = i; + } else if (iEditHelperAdvice.getClass().getName().equals(ADVICES_ID_3)) { + advice3Index = i; + } + } + + Assert.assertTrue(ADVICES_ID_2 + " should be after " + ADVICES_ID_3, advice3Index < advice2Index); + Assert.assertTrue(ADVICES_ID_3 + " should be after " + ADVICES_ID_1, advice2Index < advice1Index); + } else { + Assert.fail("Failed to load test model: " + CYCLIC_ADVICES_CONFIGURATIONS); + } + } + + @Test + public void testCyclicAdvices() { + IElementType classElementType = ElementTypeRegistry.getInstance().getType("org.eclipse.papyrus.uml.Class"); + IEditHelperAdvice[] advicesBeforeLoading = ElementTypeRegistry.getInstance().getEditHelperAdvice(classElementType); + ResourceSet resourceSet = new ResourceSetImpl(); + Resource cyclicAdvicesConfigurationResource = resourceSet.getResource(URI.createURI(CYCLIC_ADVICES_CONFIGURATIONS), true); + org.eclipse.emf.ecore.EObject root = cyclicAdvicesConfigurationResource.getContents().get(0); + if (root instanceof ElementTypeSetConfiguration) { + try { + ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), (ElementTypeSetConfiguration) root); + } catch (ServiceException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + IEditHelperAdvice[] advicesAfterLoading = ElementTypeRegistry.getInstance().getEditHelperAdvice(classElementType); + Assert.assertArrayEquals("Advices for UML::Class should have not been changed: ", advicesBeforeLoading, advicesAfterLoading); + } else { + Assert.fail("Failed to load test model: " + CYCLIC_ADVICES_CONFIGURATIONS); + } + } +} \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementTypesRegistryTests.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementTypesRegistryTests.java new file mode 100644 index 00000000000..d5ca6eb5d05 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ElementTypesRegistryTests.java @@ -0,0 +1,41 @@ +/***************************************************************************** + * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation + * Christian W. Damus (CEA) - bug 431953 (fix test to prevent Model Repair dialog on unrecognized profile schema) + * Christian W. Damus (CEA) - bug 434993 + * Christian W. Damus - bug 485220 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.tests; + +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.junit.Assert; +import org.junit.Test; + +/** + * Tests for {@link ElementTypeSetConfigurationRegistry} + */ +public class ElementTypesRegistryTests extends AbstractElementTypeTests implements ITestConstants { + + /** + * Test registration based on plugin declaration + */ + @Test + // transcoded from extended types framework + public final void testGetTypeRegisteredInplugin() { + // check standard class + IElementType classType = ElementTypeRegistry.getInstance().getType(ORG_ECLIPSE_PAPYRUS_UML_CLASS); + Assert.assertNotNull("Element type should be registered", classType); + IElementType abstractClassType = ElementTypeRegistry.getInstance().getType(ABSTRACT_CLASS_TOOL); + Assert.assertNotNull("Element type should be registered", abstractClassType); + } +} \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ITestConstants.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ITestConstants.java new file mode 100644 index 00000000000..8ef9da8f4cc --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/ITestConstants.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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: + * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.tests; + + +/** + * Constants for test classes + */ +public interface ITestConstants { + static final String ORG_ECLIPSE_PAPYRUS_UML_CLASS = "org.eclipse.papyrus.uml.Class"; //$NON-NLS-1$ + + final static String ABSTRACT_CLASS_TOOL = "org.eclipse.papyrus.infra.types.tests.aspectabstractclass"; //$NON-NLS-1$ + + final static String ElementTypeConfigurationSetName_Test1 = "org.eclipse.papyrus.infra.types.tests.tests"; //$NON-NLS-1$ + + final static String WORKSPACE_ELEMENT_TYPE_ID = "org.eclipse.papyrus.infra.types.tests.workspacetype"; //$NON-NLS-1$ + + final static String WORKSPACE_ELEMENT_TYPE_TOOL = "org.eclipse.papyrus.infra.types.tests.tool"; //$NON-NLS-1$ + + static final String PACKAGE_WITH_COMPONENTS = "PackageWithComponents"; //$NON-NLS-1$ + + static final String PACKAGE_WITH_ALL_ELEMENTS = "PackageWithAllElements"; //$NON-NLS-1$ + + static final String OTHER_PACKAGE_WITH_COMPONENTS = "OtherPackageWithComponents"; //$NON-NLS-1$ + + static final String PACKAGE_WITH_COMPONENTS_TYPE_ID = "org.eclipse.papyrus.infra.types.tests.packagewithcomponentsonly"; //$NON-NLS-1$ + + static final String SPECIFICCOMPONENT_TYPE_ID = "org.eclipse.papyrus.infra.types.tests.specificcomponent"; //$NON-NLS-1$ + + static final String COMPONENT_NAME = "Component1"; //$NON-NLS-1$ + + static final String CYCLIC_ADVICES_CONFIGURATIONS = "platform:/plugin/org.eclipse.papyrus.infra.types.tests/model/cyclicAdvices.elementtypesconfigurations"; + + static final String VALID_ADVICES_ORDER_CONFIGURATIONS = "platform:/plugin/org.eclipse.papyrus.infra.types.tests/model/validAdvicesOrder.elementtypesconfigurations"; + + static final String ADVICES_ID_1 = "org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice1"; + static final String ADVICES_ID_2 = "org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice2"; + static final String ADVICES_ID_3 = "org.eclipse.papyrus.infra.types.tests.TestEditHelperAdvice3"; + + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice1.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice1.java new file mode 100644 index 00000000000..76d0db027aa --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice1.java @@ -0,0 +1,20 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.tests; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; + +public class TestEditHelperAdvice1 extends AbstractEditHelperAdvice { + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice2.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice2.java new file mode 100644 index 00000000000..eabffd14ef8 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice2.java @@ -0,0 +1,20 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.tests; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; + +public class TestEditHelperAdvice2 extends AbstractEditHelperAdvice { + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice3.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice3.java new file mode 100644 index 00000000000..c0bd8596c23 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.tests/src/org/eclipse/papyrus/infra/types/tests/TestEditHelperAdvice3.java @@ -0,0 +1,20 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.types.tests; + +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; + +public class TestEditHelperAdvice3 extends AbstractEditHelperAdvice { + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.classpath b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.classpath new file mode 100644 index 00000000000..098194ca4b7 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.project b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.project new file mode 100644 index 00000000000..4b28f07d54e --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.infra.types.ui.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..eb9bfba9949 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,296 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..f9da5fb49f8 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/META-INF/MANIFEST.MF @@ -0,0 +1,21 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.junit;bundle-version="4.10.0", + org.eclipse.papyrus.junit.framework;bundle-version="1.2.0", + org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", + org.eclipse.papyrus.infra.types;bundle-version="1.2.0", + org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.ui;bundle-version="1.2.0", + org.eclipse.papyrus.infra.types.tests;bundle-version="1.2.0", + org.eclipse.papyrus.infra.services.edit, + org.eclipse.gmf.runtime.emf.type.core, + org.eclipse.papyrus.infra.core +Export-Package: org.eclipse.papyrus.infra.types.ui.tests +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-Version: 1.2.0.qualifier +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.papyrus.infra.types.ui.tests;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/about.html b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/build.properties b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/build.properties new file mode 100644 index 00000000000..dbbbb2abde7 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/build.properties @@ -0,0 +1,21 @@ +# 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: +# CEA LIST - Initial API and implementation + +bin.includes = .,\ + META-INF/,\ + plugin.properties,\ + plugin.xml,\ + about.html,\ + model/ +jars.compile.order = . +source.. = src/ +output.. = bin/ +src.includes = about.html diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesMenu.xmi b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesMenu.xmi new file mode 100644 index 00000000000..8b806ee99e6 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesMenu.xmi @@ -0,0 +1,33 @@ + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesTestsProfile.ctx b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesTestsProfile.ctx new file mode 100644 index 00000000000..53530aadcbb --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ElementTypesTestsProfile.ctx @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/MyPalette.palette b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/MyPalette.palette new file mode 100644 index 00000000000..6fe86de2535 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/MyPalette.palette @@ -0,0 +1,22 @@ + + + + + + + + + + Electrical + + + + + + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/WorkspaceTest.elementtypesconfigurations b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/WorkspaceTest.elementtypesconfigurations new file mode 100644 index 00000000000..8ee9c548799 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/WorkspaceTest.elementtypesconfigurations @@ -0,0 +1,12 @@ + + + org.eclipse.papyrus.uml.Class + + + + + + + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/elementtypetestui.elementtypesconfigurations b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/elementtypetestui.elementtypesconfigurations new file mode 100644 index 00000000000..50bbb08ba4e --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/elementtypetestui.elementtypesconfigurations @@ -0,0 +1,11 @@ + + + org.eclipse.papyrus.infra.elementtypesconfigurations.tests.classSimpleStereotypeRename + + + + + + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ui/SingleStereotypeWithFeaturesToSet.xwt b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ui/SingleStereotypeWithFeaturesToSet.xwt new file mode 100644 index 00000000000..deea76ec25f --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/model/ui/SingleStereotypeWithFeaturesToSet.xwt @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/org.eclipse.papyrus.infra.types.ui.tests.launch b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/org.eclipse.papyrus.infra.types.ui.tests.launch new file mode 100644 index 00000000000..3d903a6efa1 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/org.eclipse.papyrus.infra.types.ui.tests.launch @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.properties b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.properties new file mode 100644 index 00000000000..596019605b9 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.properties @@ -0,0 +1,13 @@ +# 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: +# CEA LIST - Initial API and implementation + +pluginName = ElementTypesConfigurations Tests +providerName = Eclipse Modeling Project diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.xml b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.xml new file mode 100644 index 00000000000..ab22b6f908a --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/plugin.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/pom.xml b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/pom.xml new file mode 100644 index 00000000000..0e8da87fe00 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus.tests.releng + 1.2.0-SNAPSHOT + ../../../../../../releng/main-tests + + org.eclipse.papyrus + org.eclipse.papyrus.infra.types.ui.tests + 1.2.0-SNAPSHOT + eclipse-test-plugin + diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/AllTests.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/AllTests.java new file mode 100644 index 00000000000..40333205ea6 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/AllTests.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation + * Christian W. Damus - bug 485220 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.ui.tests; + +import org.eclipse.papyrus.infra.types.tests.ElementTypesRegistryTests; +import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; +import org.junit.runner.RunWith; +import org.junit.runners.Suite.SuiteClasses; + + +/** + * All tests for this fragment + */ +@RunWith(ClassificationSuite.class) +@SuiteClasses({ ElementTypesRegistryTests.class }) +public class AllTests { + +} diff --git a/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/ElementTypesRegistryTests.java b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/ElementTypesRegistryTests.java new file mode 100644 index 00000000000..44389ddab78 --- /dev/null +++ b/tests/junit/plugins/infra/types/org.eclipse.papyrus.infra.types.ui.tests/src/org/eclipse/papyrus/infra/types/ui/tests/ElementTypesRegistryTests.java @@ -0,0 +1,127 @@ +/***************************************************************************** + * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation + * Christian W. Damus (CEA) - bug 431953 (fix test to prevent Model Repair dialog on unrecognized profile schema) + * Christian W. Damus (CEA) - bug 434993 + * Christian W. Damus - bug 485220 + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.ui.tests; + +import static org.junit.Assert.fail; + +import java.io.IOException; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; +import org.eclipse.gmf.runtime.emf.type.core.IElementType; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.papyrus.infra.types.tests.AbstractElementTypeTests; +import org.eclipse.papyrus.infra.types.tests.ITestConstants; +import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; +import org.osgi.framework.Bundle; +import org.osgi.framework.FrameworkUtil; + +/** + * Tests for {@link ElementTypeSetConfigurationRegistry} + */ +public class ElementTypesRegistryTests extends AbstractElementTypeTests implements ITestConstants { + + protected static IFile workspaceTestFile; + + /** + * Init test class + */ + @BeforeClass + public static void initCreateElementTest() { + // import user-defined element types model + try { + Bundle bundle = FrameworkUtil.getBundle(ElementTypesRegistryTests.class); + workspaceTestFile = PapyrusProjectUtils.copyIFile("/model/WorkspaceTest.typesconfigurations", bundle, createProject, "/model/WorkspaceTest.typesconfigurations"); + Assert.assertTrue(workspaceTestFile.isAccessible()); + } catch (CoreException e) { + fail(e.getMessage()); + } catch (IOException e) { + fail(e.getMessage()); + } + } + + /** + * Test registration based on plugin declaration + */ + @Test + // transcoded from extended types framework + public final void testGetTypeRegisteredInplugin() { + // check standard class + IElementType classType = ElementTypeRegistry.getInstance().getType(ORG_ECLIPSE_PAPYRUS_UML_CLASS); + Assert.assertNotNull("Element type should be registered", classType); + IElementType abstractClassType = ElementTypeRegistry.getInstance().getType(ABSTRACT_CLASS_TOOL); + Assert.assertNotNull("Element type should be registered", abstractClassType); + } + + /** + * Test workspace registration. Element type in the workspace, but element type set is not loaded + */ + @Test + // transcoded from extended types framework + public final void testGetTypeRegisteredInWorkspaceNotLoaded() { + checkPluginTypes(); + // this should not be defined yet + IElementType workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); + Assert.assertNull("Element type should not be registered yet", workspaceType); + } + + /** + * Test workspace registration. Element type in the workspace, but element type set is not loaded + */ + @Test + // transcoded from extended types framework + public final void testLoadUnloadWorkspaceSet() { + // this should not be defined yet + IElementType workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); + Assert.assertNull("Element type should not be registered yet", workspaceType); + checkPluginTypes(); + // register + try { + ElementTypeSetConfigurationRegistry.getInstance().loadElementTypeSetConfiguration(TypeContext.getContext().getId(), workspaceTestFile.getFullPath().toString()); + + // + workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); + Assert.assertNotNull("Element type should be registered", workspaceType); + checkPluginTypes(); + // unregister + ElementTypeSetConfigurationRegistry.getInstance().unload(TypeContext.getContext().getId(), WORKSPACE_ELEMENT_TYPE_ID); + workspaceType = ElementTypeRegistry.getInstance().getType(WORKSPACE_ELEMENT_TYPE_TOOL); + Assert.assertNull("Element type should not be registered anymore", workspaceType); + checkPluginTypes(); + } catch (ServiceException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + /** + * Check always present element types are registered + */ + private void checkPluginTypes() { + IElementType classType = ElementTypeRegistry.getInstance().getType(ORG_ECLIPSE_PAPYRUS_UML_CLASS); + Assert.assertNotNull("Element type should be registered", classType); + IElementType abstractClassType = ElementTypeRegistry.getInstance().getType(ABSTRACT_CLASS_TOOL); + Assert.assertNotNull("Element type should be registered", abstractClassType); + } + + +} diff --git a/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/META-INF/MANIFEST.MF b/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/META-INF/MANIFEST.MF index e0f37842509..6b1e3a8d35a 100644 --- a/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/META-INF/MANIFEST.MF @@ -8,7 +8,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.infra.filters.tests;bundle-version="1.2.0", org.eclipse.papyrus.uml.filters.tests;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.assistant.tests;bundle-version="1.2.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator.tests;bundle-version="1.2.0", org.eclipse.papyrus.uml.profile.assistants.generator.tests;bundle-version="1.2.0" Export-Package: org.eclipse.papyrus.tests.diagramassistants Bundle-Vendor: %providerName diff --git a/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/Papyrus Diagram Assistants tests.launch b/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/Papyrus Diagram Assistants tests.launch index d3d9b3eb4e0..8bf0f4d60a0 100644 --- a/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/Papyrus Diagram Assistants tests.launch +++ b/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/Papyrus Diagram Assistants tests.launch @@ -12,7 +12,7 @@ - + @@ -21,7 +21,7 @@ - + diff --git a/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/src/org/eclipse/papyrus/tests/diagramassistants/AllTests.java b/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/src/org/eclipse/papyrus/tests/diagramassistants/AllTests.java index 8bd6072a60d..9ca38bb8ff8 100644 --- a/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/src/org/eclipse/papyrus/tests/diagramassistants/AllTests.java +++ b/tests/junit/plugins/suites/org.eclipse.papyrus.tests.diagramassistants/src/org/eclipse/papyrus/tests/diagramassistants/AllTests.java @@ -45,7 +45,7 @@ public class AllTests { // UML layer suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.uml.filters.tests.AllTests.class)); suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.uml.profile.assistants.generator.tests.AllTests.class)); - suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.AllTests.class)); + suiteClasses.add(new PluginTestSuiteClass(org.eclipse.papyrus.uml.profile.types.generator.tests.AllTests.class)); } public static void appendTo(Collection suite) { diff --git a/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/META-INF/MANIFEST.MF index c34fb6f36eb..3142eb61b4b 100644 --- a/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/META-INF/MANIFEST.MF @@ -1,5 +1,6 @@ Manifest-Version: 1.0 Require-Bundle: org.junit;bundle-version="4.10.0", + org.eclipse.papyrus.infra.types.core;bundle-version="1.2.0", org.eclipse.papyrus.junit.framework;bundle-version="1.2.0" Export-Package: org.eclipse.papyrus.sysml.service.types.tests.suites Bundle-Vendor: %providerName diff --git a/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/src/org/eclipse/papyrus/sysml/service/types/tests/registry/TestElementTypeRegistryContent.java b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/src/org/eclipse/papyrus/sysml/service/types/tests/registry/TestElementTypeRegistryContent.java index 855fc82e83e..3723ecabe22 100644 --- a/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/src/org/eclipse/papyrus/sysml/service/types/tests/registry/TestElementTypeRegistryContent.java +++ b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.service.types.tests/src/org/eclipse/papyrus/sysml/service/types/tests/registry/TestElementTypeRegistryContent.java @@ -10,9 +10,9 @@ import org.eclipse.emf.ecore.EObject; import org.eclipse.gmf.runtime.emf.type.core.ClientContextManager; import org.eclipse.gmf.runtime.emf.type.core.IClientContext; import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; import org.eclipse.papyrus.infra.services.edit.service.IElementEditServiceProvider; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.sysml.activities.ActivitiesPackage; import org.eclipse.papyrus.sysml.allocations.AllocationsPackage; @@ -51,11 +51,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML ModelElements sub-profile contents Iterator it = ModelelementsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ELEMENT_TYPE_PREFIX + eClass.getName())); } } @@ -66,11 +66,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML ModelElements sub-profile contents Iterator it = ModelelementsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } } @@ -81,37 +81,37 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Blocks sub-profile contents Iterator it = BlocksPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + if (eObject instanceof EClass) { + EClass eClass = (EClass) eObject; - if("DistributedProperty".equals(eClass.getName())) { + if ("DistributedProperty".equals(eClass.getName())) { // Not implemented continue; } - if("NestedConnectorEnd".equals(eClass.getName())) { + if ("NestedConnectorEnd".equals(eClass.getName())) { // Not implemented continue; } - if("ParticipantProperty".equals(eClass.getName())) { + if ("ParticipantProperty".equals(eClass.getName())) { // Not implemented continue; } - if("ConnectorProperty".equals(eClass.getName())) { + if ("ConnectorProperty".equals(eClass.getName())) { // Not implemented continue; } - if("BindingConnector".equals(eClass.getName())) { + if ("BindingConnector".equals(eClass.getName())) { // Not implemented continue; } - if("PropertySpecificType".equals(eClass.getName())) { + if ("PropertySpecificType".equals(eClass.getName())) { // Not implemented continue; } @@ -126,10 +126,10 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Blocks sub-profile contents Iterator it = BlocksPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + if (eObject instanceof EClass) { + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } @@ -141,11 +141,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Constraints sub-profile contents Iterator it = ConstraintsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ELEMENT_TYPE_PREFIX + eClass.getName())); } } @@ -156,11 +156,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Constraints sub-profile contents Iterator it = ConstraintsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } } @@ -171,11 +171,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Activities sub-profile contents Iterator it = ActivitiesPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } } @@ -186,17 +186,17 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Requirements sub-profile contents Iterator it = RequirementsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + if (eObject instanceof EClass) { + EClass eClass = (EClass) eObject; - if("TestCase".equals(eClass.getName())) { + if ("TestCase".equals(eClass.getName())) { // Not implemented continue; } - if("RequirementRelated".equals(eClass.getName())) { + if ("RequirementRelated".equals(eClass.getName())) { // Not implemented continue; } @@ -211,10 +211,10 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Requirements sub-profile contents Iterator it = RequirementsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + if (eObject instanceof EClass) { + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } @@ -226,17 +226,17 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Allocations sub-profile contents Iterator it = AllocationsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + if (eObject instanceof EClass) { + EClass eClass = (EClass) eObject; - if("Allocated".equals(eClass.getName())) { + if ("Allocated".equals(eClass.getName())) { // Not implemented continue; } - if("AllocateActivityPartition".equals(eClass.getName())) { + if ("AllocateActivityPartition".equals(eClass.getName())) { // Not implemented continue; } @@ -251,10 +251,10 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML Allocations sub-profile contents Iterator it = AllocationsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + if (eObject instanceof EClass) { + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } @@ -266,11 +266,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML PortAndFlows sub-profile contents Iterator it = PortandflowsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ELEMENT_TYPE_PREFIX + eClass.getName())); } } @@ -281,11 +281,11 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { // Iterate over SysML PortAndFlows sub-profile contents Iterator it = PortandflowsPackage.eINSTANCE.eAllContents(); - while(it.hasNext()) { + while (it.hasNext()) { EObject eObject = it.next(); - if(eObject instanceof EClass) { + if (eObject instanceof EClass) { - EClass eClass = (EClass)eObject; + EClass eClass = (EClass) eObject; assertTrue("No type found in Papyrus context for " + eClass.getName(), ElementEditServiceUtils.getEditServiceProvider().isKnownElementType(PAPYRUS_ST_APPLICATION_TYPE_PREFIX + eClass.getName())); } } @@ -295,7 +295,7 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { public void testRegistryContentForSysMLAssociations() { IClientContext context = ClientContextManager.getInstance().getClientContext(PAPYRUS_CONTEXT_ID); - if(context == null) { + if (context == null) { fail("Papyrus IClientContext could not be found."); } @@ -327,13 +327,13 @@ public class TestElementTypeRegistryContent extends AbstractPapyrusTest { assertTrue("Incorrect kind of ElementType (ISpecializationType expected for " + SysMLElementTypes.ASSOCIATION_SHARED.getId() + ")", SysMLElementTypes.ASSOCIATION_SHARED instanceof ISpecializationType); assertTrue("Incorrect kind of ElementType (ISpecializationType expected for " + SysMLElementTypes.ASSOCIATION_SHARED_DIRECTED.getId() + ")", SysMLElementTypes.ASSOCIATION_SHARED_DIRECTED instanceof ISpecializationType); - ISpecializationType association = (ISpecializationType)SysMLElementTypes.ASSOCIATION; - ISpecializationType associationComposite = (ISpecializationType)SysMLElementTypes.ASSOCIATION_COMPOSITE; - ISpecializationType associationCompositeDirected = (ISpecializationType)SysMLElementTypes.ASSOCIATION_COMPOSITE_DIRECTED; - ISpecializationType associationNone = (ISpecializationType)SysMLElementTypes.ASSOCIATION_NONE; - ISpecializationType associationNoneDirected = (ISpecializationType)SysMLElementTypes.ASSOCIATION_NONE_DIRECTED; - ISpecializationType associationShared = (ISpecializationType)SysMLElementTypes.ASSOCIATION_SHARED; - ISpecializationType associationSharedDirected = (ISpecializationType)SysMLElementTypes.ASSOCIATION_SHARED_DIRECTED; + ISpecializationType association = (ISpecializationType) SysMLElementTypes.ASSOCIATION; + ISpecializationType associationComposite = (ISpecializationType) SysMLElementTypes.ASSOCIATION_COMPOSITE; + ISpecializationType associationCompositeDirected = (ISpecializationType) SysMLElementTypes.ASSOCIATION_COMPOSITE_DIRECTED; + ISpecializationType associationNone = (ISpecializationType) SysMLElementTypes.ASSOCIATION_NONE; + ISpecializationType associationNoneDirected = (ISpecializationType) SysMLElementTypes.ASSOCIATION_NONE_DIRECTED; + ISpecializationType associationShared = (ISpecializationType) SysMLElementTypes.ASSOCIATION_SHARED; + ISpecializationType associationSharedDirected = (ISpecializationType) SysMLElementTypes.ASSOCIATION_SHARED_DIRECTED; assertTrue("Incorrect specialization type hierarchy for " + SysMLElementTypes.ASSOCIATION.getId(), association.isSpecializationOf(UMLElementTypes.ASSOCIATION_BASE)); assertTrue("Incorrect specialization type hierarchy for " + SysMLElementTypes.ASSOCIATION_COMPOSITE.getId(), associationComposite.isSpecializationOf(association)); diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/META-INF/MANIFEST.MF index 39dd8048097..9f402b3321d 100644 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/META-INF/MANIFEST.MF @@ -5,18 +5,18 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", org.eclipse.emf.ecore;bundle-version="2.11.0", org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0", org.eclipse.uml2.uml;bundle-version="5.1.0", org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator;bundle-version="1.2.0", org.eclipse.papyrus.uml.profile.assistants.generator;bundle-version="1.2.0", org.eclipse.papyrus.infra.gmfdiag.assistant;bundle-version="1.2.0", com.google.inject;bundle-version="3.0.0", com.google.guava;bundle-version="11.0.0", org.eclipse.xtext.xbase.lib;bundle-version="2.8.0", - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator.tests;bundle-version="1.2.0", org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0" Export-Package: org.eclipse.papyrus.uml.profile.assistants.generator.tests Bundle-Vendor: %providerName diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/org.eclipse.papyrus.uml.profile.assistants.generator.tests.launch b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/org.eclipse.papyrus.uml.profile.assistants.generator.tests.launch deleted file mode 100644 index 5ec60cd22ad..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/org.eclipse.papyrus.uml.profile.assistants.generator.tests.launch +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/DiagramSpecificAssistantsGenerationTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/DiagramSpecificAssistantsGenerationTest.java index 976d83fc85e..a40cb5933de 100644 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/DiagramSpecificAssistantsGenerationTest.java +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/DiagramSpecificAssistantsGenerationTest.java @@ -33,7 +33,7 @@ import org.eclipse.papyrus.infra.gmfdiag.assistant.ElementTypeFilter; import org.eclipse.papyrus.infra.gmfdiag.assistant.PopupAssistant; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.junit.utils.rules.PluginResource; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.BaseElementTypes; +import org.eclipse.papyrus.uml.profile.types.generator.tests.BaseElementTypes; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.Stereotype; import org.eclipse.xtext.xbase.lib.Pair; diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/ModelGenFixture.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/ModelGenFixture.java index 48c459414cd..96dba9a6eee 100644 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/ModelGenFixture.java +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.tests/src/org/eclipse/papyrus/uml/profile/assistants/generator/tests/ModelGenFixture.java @@ -35,7 +35,7 @@ import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider; import org.eclipse.papyrus.infra.gmfdiag.assistant.PopupAssistant; import org.eclipse.papyrus.infra.gmfdiag.assistant.util.AssistantResource; import org.eclipse.papyrus.uml.profile.assistants.generator.ModelingAssistantsGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.Stereotype; import org.eclipse.xtext.xbase.lib.Pair; @@ -46,7 +46,7 @@ import com.google.common.collect.Lists; /** * A specialization of the element types generation fixture that additionally generates the Diagram Assistants model. */ -public class ModelGenFixture extends org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.ModelGenFixture { +public class ModelGenFixture extends org.eclipse.papyrus.uml.profile.types.generator.tests.ModelGenFixture { public ModelGenFixture() { super(); } diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.classpath b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.classpath deleted file mode 100644 index 098194ca4b7..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.project b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.project deleted file mode 100644 index 99c0099f8e6..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f08be2b06c4..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,291 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=260 -org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true -org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true -org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off -org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=false -org.eclipse.jdt.core.formatter.join_wrapped_lines=false -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=260 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 954281dbc31..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,68 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_type_arguments=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup.use_type_arguments=false -cleanup_profile=_Papyrus -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_Papyrus -formatter_settings_version=12 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/about.html b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/about.html deleted file mode 100644 index d35d5aed64c..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

- - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/build.properties b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/build.properties deleted file mode 100644 index e6ac66d4daf..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/build.properties +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2015 Christian W. Damus and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Christian W. Damus - Initial API and implementation - -bin.includes = .,\ - META-INF/,\ - plugin.properties,\ - about.html,\ - resources/ -jars.compile.order = . -source.. = src/ -output.. = bin/ -src.includes = about.html diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.launch b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.launch deleted file mode 100644 index 5ec60cd22ad..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.launch +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/plugin.properties b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/plugin.properties deleted file mode 100644 index 0e75fec33b0..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/plugin.properties +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2015 Christian W. Damus and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Christian W. Damus - Initial API and implementation - -pluginName = Automated Tests for Papyrus Element Types Configuration Generator for UML Profiles -providerName = Eclipse Modeling Project -pluginDescription = JUnit tests for element types model generation for UML profiles diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/pom.xml b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/pom.xml deleted file mode 100644 index fab3f51e486..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - 4.0.0 - - org.eclipse.papyrus.tests.releng - org.eclipse.papyrus - 1.2.0-SNAPSHOT - ../../../../../../releng/main-tests - - org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests - org.eclipse.papyrus - 1.2.0-SNAPSHOT - eclipse-test-plugin - \ No newline at end of file diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.di b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.di deleted file mode 100644 index 24bc988cd5f..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.di +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.notation b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.notation deleted file mode 100644 index 3b5f2260540..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.notation +++ /dev/null @@ -1,437 +0,0 @@ - - - - -
-
-
-
-
- - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.uml b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.uml deleted file mode 100644 index e63302b1f11..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/j2ee.profile.uml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.di b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.di deleted file mode 100644 index bf9abab340f..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.di +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.notation b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.notation deleted file mode 100644 index febce5398f0..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.notation +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.uml b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.uml deleted file mode 100644 index 7cd07408209..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/resources/nesting.profile.uml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/AllTests.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/AllTests.java deleted file mode 100644 index 98ebd5980b1..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/AllTests.java +++ /dev/null @@ -1,30 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import org.junit.runner.RunWith; -import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; -import org.junit.runners.Suite.SuiteClasses; - -/** - * The master test suite for the plug-in. - */ -@RunWith(ClassificationSuite.class) -@SuiteClasses({ - BasicElementTypesGenerationTest.class, DiagramSpecificElementTypesGenerationTest.class, - ProfilesWithPackageNestingTest.class, - DiagramSpecificElementTypesGenerationBug461717Test.class }) -public class AllTests { - // Nothing required -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BaseElementTypes.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BaseElementTypes.java deleted file mode 100644 index cb36f5b6f7c..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BaseElementTypes.java +++ /dev/null @@ -1,31 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * Annotates a test case or suite class with the ID of the base element types set for model generation. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.METHOD, ElementType.TYPE }) -public @interface BaseElementTypes { - /** - * The ID of the base element types set configuration model. - */ - String value(); -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BasicElementTypesGenerationTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BasicElementTypesGenerationTest.java deleted file mode 100644 index 8d7c6a4de9e..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/BasicElementTypesGenerationTest.java +++ /dev/null @@ -1,110 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; -import static org.hamcrest.CoreMatchers.containsString; -import static org.hamcrest.CoreMatchers.hasItem; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.not; -import static org.hamcrest.MatcherAssert.assertThat; - -import java.util.List; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; -import org.eclipse.papyrus.junit.utils.rules.PluginResource; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes; -import org.eclipse.uml2.uml.Class; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.uml2.uml.UMLPackage; -import org.eclipse.uml2.uml.edit.UMLEditPlugin; -import org.eclipse.xtext.xbase.lib.Pair; -import org.junit.ClassRule; -import org.junit.Test; - -/** - * Test cases for the basics of element types generation for UML profiles. - */ -@PluginResource("/resources/j2ee.profile.uml") -public class BasicElementTypesGenerationTest extends AbstractPapyrusTest { - - @ClassRule - public static final ModelGenFixture fixture = new ModelGenFixture(); - - public BasicElementTypesGenerationTest() { - super(); - } - - @Test - public void elementTypesGenerated() { - Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); - fixture.assertSpecializationType(beanClass); - assertThat(fixture.getElementTypeSet().getMetamodelNsURI(), is(UMLPackage.eNS_URI)); - } - - /** - * Verifies that non-diagram-specific element types are generated with only a semantic parent (no visual parent). - * - * @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=461717 - */ - @Test - public void elementTypeSpecializedTypes_bug461717() { - Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); - SpecializationTypeConfiguration specialization = fixture.assertSpecializationType(beanClass); - - assertThat(specialization.getIdentifier(), is(fixture.prefix + ".Bean")); - - List specializedTypeIDs = specialization.getSpecializedTypesID(); - assertThat(specializedTypeIDs.size(), is(1)); - assertThat(specializedTypeIDs.get(0), is(UMLElementTypes.CLASS.getId())); - } - - @Test - public void multipleElementTypesForOneStereotypeGenerated() { - Pair accessClass = fixture.getMetaclassExtension("AccessControlled", "Class"); - Pair accessProperty = fixture.getMetaclassExtension("AccessControlled", "Property"); - assertThat(fixture.assertSpecializationType(accessClass), not(fixture.assertSpecializationType(accessProperty))); - } - - @Test - public void iconGenerated() { - Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); - SpecializationTypeConfiguration type = fixture.assertSpecializationType(beanClass); - IconEntry icon = type.getIconEntry(); - assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); - assertThat(icon.getIconPath(), containsString("obj16/Class.gif")); - } - - @Test - public void stereotypeMatcherGenerated() { - Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); - SpecializationTypeConfiguration type = fixture.assertSpecializationType(beanClass); - StereotypeApplicationMatcherConfiguration matcher = fixture.assertStereotypeMatcher(type); - assertThat(matcher.getStereotypesQualifiedNames(), hasItem("j2ee::Bean")); - } - - @Test - public void stereotypeAdviceGenerated() { - Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); - ApplyStereotypeAdviceConfiguration advice = fixture.assertApplyStereotypeAdvice(beanClass); - assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(beanClass))); - assertThat(advice.getStereotypesToApply(), not(isEmpty())); - assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("j2ee")); - assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("j2ee::Bean")); - } -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java deleted file mode 100644 index f0ee138045e..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java +++ /dev/null @@ -1,107 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.regexContains; -import static org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.GenOption.SUPPRESS_SEMANTIC_SUPERTYPE; -import static org.hamcrest.CoreMatchers.hasItem; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.not; -import static org.hamcrest.CoreMatchers.startsWith; -import static org.hamcrest.MatcherAssert.assertThat; - -import java.util.List; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; -import org.eclipse.papyrus.junit.utils.rules.PluginResource; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.uml2.uml.Class; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.xtext.xbase.lib.Pair; -import org.junit.ClassRule; -import org.junit.Test; - -/** - * Test cases for diagram-specific element types generation for UML profiles with the option to suppress the generation - * of the semantic supertype reference. - * - * @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=461717 - */ -@PluginResource("/resources/j2ee.profile.uml") -@BaseElementTypes("org.eclipse.papyrus.uml.diagram.usecase.elementTypeSet") -@GenOptions(SUPPRESS_SEMANTIC_SUPERTYPE) -public class DiagramSpecificElementTypesGenerationBug461717Test extends AbstractPapyrusTest { - - @ClassRule - public static final ModelGenFixture fixture = new ModelGenFixture(); - - public DiagramSpecificElementTypesGenerationBug461717Test() { - super(); - } - - /** - * Verifies that diagram-specific element types are generated with only the visual parent - * when the semantic parent is suppressed. - */ - @Test - public void elementTypeSpecializedTypes() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List specializationTypes = fixture.assertAllSpecializationTypes(userActor); - assertThat("No specialization types generated", specializationTypes, not(isEmpty())); - - String idPrefix = fixture.prefix + ".User_"; - - for (SpecializationTypeConfiguration next : specializationTypes) { - assertThat(next.getIdentifier(), startsWith(idPrefix)); - - List specializedTypeIDs = next.getSpecializedTypesID(); - assertThat(specializedTypeIDs.size(), is(1)); - assertThat(specializedTypeIDs.get(0), regexContains("Actor_\\d{4}$")); // a visual ID - } - } - - /** - * Verifies that diagram-specific element types are generated with stereotype matchers - * when the semantic parent is suppressed. - */ - @Test - public void stereotypeMatcherGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List types = fixture.assertAllSpecializationTypes(userActor); - for (SpecializationTypeConfiguration type : types) { - StereotypeApplicationMatcherConfiguration matcher = fixture.assertStereotypeMatcher(type); - assertThat(matcher.getStereotypesQualifiedNames(), hasItem("j2ee::User")); - } - } - - /** - * Verifies that diagram-specific element types are generated with apply-stereotype advice - * when the semantic parent is suppressed. - */ - @Test - public void stereotypeAdviceGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List advices = fixture.assertAllApplyStereotypeAdvices(userActor); - for (ApplyStereotypeAdviceConfiguration advice : advices) { - String visualID = advice.getIdentifier().substring(advice.getIdentifier().lastIndexOf('_') + 1); - assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(userActor, visualID))); - assertThat(advice.getStereotypesToApply(), not(isEmpty())); - assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("j2ee")); - assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("j2ee::User")); - } - } -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationTest.java deleted file mode 100644 index d6ea3489e99..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/DiagramSpecificElementTypesGenerationTest.java +++ /dev/null @@ -1,125 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import static com.google.common.collect.Iterables.transform; -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.regexContains; -import static org.hamcrest.CoreMatchers.containsString; -import static org.hamcrest.CoreMatchers.hasItems; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.not; -import static org.hamcrest.CoreMatchers.startsWith; -import static org.hamcrest.MatcherAssert.assertThat; - -import java.util.List; -import java.util.Set; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementtypesconfigurationsPackage; -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.emf.utils.EMFFunctions; -import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; -import org.eclipse.papyrus.junit.utils.rules.PluginResource; -import org.eclipse.uml2.uml.Class; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.uml2.uml.UMLPackage; -import org.eclipse.uml2.uml.edit.UMLEditPlugin; -import org.eclipse.xtext.xbase.lib.Pair; -import org.junit.ClassRule; -import org.junit.Test; - -import com.google.common.collect.ImmutableSet; - -/** - * Test cases for diagram-specific element types generation for UML profiles. - */ -@PluginResource("/resources/j2ee.profile.uml") -@BaseElementTypes("org.eclipse.papyrus.uml.diagram.usecase.elementTypeSet") -public class DiagramSpecificElementTypesGenerationTest extends AbstractPapyrusTest { - - @ClassRule - public static final ModelGenFixture fixture = new ModelGenFixture(); - - public DiagramSpecificElementTypesGenerationTest() { - super(); - } - - @Test - public void elementTypesGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - fixture.assertAllSpecializationTypes(userActor); - assertThat(fixture.getElementTypeSet().getMetamodelNsURI(), is(UMLPackage.eNS_URI)); - } - - /** - * Verifies that diagram-specific element types are generated with both a semantic parent and a visual parent. - * - * @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=461717 - */ - @Test - public void elementTypeSpecializedTypes_bug461717() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List specializationTypes = fixture.assertAllSpecializationTypes(userActor); - assertThat("No specialization types generated", specializationTypes, not(isEmpty())); - - String semanticParentID = fixture.prefix + ".User"; - String idPrefix = semanticParentID + "_"; - - for (SpecializationTypeConfiguration next : specializationTypes) { - assertThat(next.getIdentifier(), startsWith(idPrefix)); - - List specializedTypeIDs = next.getSpecializedTypesID(); - assertThat(specializedTypeIDs.size(), is(2)); - assertThat(specializedTypeIDs.get(0), is(semanticParentID)); - assertThat(specializedTypeIDs.get(1), regexContains("Actor_\\d{4}$")); // a visual ID - } - } - - @Test - public void distinctHintsGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List types = fixture.assertAllSpecializationTypes(userActor); - Set hints = ImmutableSet.copyOf(transform(types, EMFFunctions.getFeature(ElementtypesconfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__HINT, String.class))); - assertThat(hints, hasItems("2011", "2012")); - } - - @Test - public void iconGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List types = fixture.assertAllSpecializationTypes(userActor); - for (SpecializationTypeConfiguration type : types) { - IconEntry icon = type.getIconEntry(); - assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); - assertThat(icon.getIconPath(), containsString("obj16/Actor.gif")); - } - } - - @Test - public void stereotypeMatcherNotGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - List types = fixture.assertAllSpecializationTypes(userActor); - for (SpecializationTypeConfiguration type : types) { - // Stereotype matchers are not required where they are inherited from semantic supertype - fixture.assertNoStereotypeMatcher(type); - } - } - - @Test - public void stereotypeAdviceNotGenerated() { - Pair userActor = fixture.getMetaclassExtension("User", "Actor"); - // Apply-stereotype advice is not required where it is inherited from semantic supertype - fixture.assertNoApplyStereotypeAdvice(userActor); - } -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOption.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOption.java deleted file mode 100644 index 5a610f3cb98..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOption.java +++ /dev/null @@ -1,21 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -/** - * Test fixture model generation options. - */ -public enum GenOption { - SUPPRESS_SEMANTIC_SUPERTYPE; -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOptions.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOptions.java deleted file mode 100644 index 560e0983536..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/GenOptions.java +++ /dev/null @@ -1,31 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * Annotates a test case or suite class with model generation options. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.METHOD, ElementType.TYPE }) -public @interface GenOptions { - /** - * The model generation options. - */ - GenOption[] value(); -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ModelGenFixture.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ModelGenFixture.java deleted file mode 100644 index dc71c2f8e65..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ModelGenFixture.java +++ /dev/null @@ -1,314 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.lessThan; -import static org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests.GenOption.SUPPRESS_SEMANTIC_SUPERTYPE; -import static org.eclipse.uml2.common.util.UML2Util.getValidJavaIdentifier; -import static org.hamcrest.CoreMatchers.everyItem; -import static org.hamcrest.CoreMatchers.instanceOf; -import static org.hamcrest.CoreMatchers.not; -import static org.hamcrest.MatcherAssert.assertThat; - -import java.util.Arrays; -import java.util.EnumSet; -import java.util.List; -import java.util.Set; -import java.util.regex.Pattern; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractAdviceBindingConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.AbstractMatcherConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.ElementTypeSetConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; -import org.eclipse.papyrus.junit.utils.JUnitUtils; -import org.eclipse.papyrus.junit.utils.rules.ResourceSetFixture; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ElementTypesGenerator; -import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers; -import org.eclipse.uml2.uml.NamedElement; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.xtext.xbase.lib.Pair; -import org.eclipse.xtext.xbase.lib.StringExtensions; -import org.hamcrest.CoreMatchers; -import org.junit.runner.Description; - -import com.google.common.base.Objects; -import com.google.common.base.Predicate; -import com.google.common.collect.Iterables; -import com.google.common.collect.Iterators; -import com.google.common.collect.Lists; - -/** - * A test fixture for orchestration of model transformations and verification of transformation results. - */ -public class ModelGenFixture extends ResourceSetFixture { - private static final String UML_ELEMENT_TYPES = "org.eclipse.papyrus.uml.service.types.UMLElementTypeSet"; - - protected final String prefix = "org.eclipse.papyrus.test"; - - private String baseElementTypesSet = UML_ELEMENT_TYPES; - - private Set genOptions = EnumSet.noneOf(GenOption.class); - - public ModelGenFixture() { - super(); - } - - public URI getElementTypesResourceURI() { - URI inputURI = getModelResourceURI(); - String basename = inputURI.lastSegment(); - basename = basename.substring(0, basename.indexOf('.')); - - return inputURI.trimSegments(1).appendSegment(basename).appendFileExtension("elementtypesconfiguration"); - } - - public ElementTypeSetConfiguration getElementTypeSet() { - Resource resource = getResourceSet().getResource(getElementTypesResourceURI(), true); - return (ElementTypeSetConfiguration) resource.getContents().get(0); - } - - static Predicate named(final String name) { - return new Predicate() { - @Override - public boolean apply(NamedElement input) { - return Objects.equal(name, input.getName()); - } - }; - } - - public Pair getMetaclassExtension(final String stereotypeName, final String metaclassName) { - Pair result = null; - Stereotype stereotype = Iterators.find(Iterators.filter(getModel().eAllContents(), Stereotype.class), named(stereotypeName)); - if (stereotype != null) { - org.eclipse.uml2.uml.Class metaclass = Iterables.find(stereotype.getAllExtendedMetaclasses(), named(metaclassName)); - if (metaclass != null) { - result = Pair.of(stereotype, metaclass); - } - } - - return result; - } - - public C getElementTypeConfiguration(Pair metaclassExtension, Class type) { - ElementTypeConfiguration result = getElementTypeConfiguration(metaclassExtension); - assertThat("not a " + type.getSimpleName(), result, instanceOf(type)); - return type.cast(result); - } - - public ElementTypeConfiguration getElementTypeConfiguration(Pair metaclassExtension) { - return getElementTypeConfiguration(getElementTypeID(metaclassExtension, false)); - } - - public ElementTypeConfiguration getElementTypeConfiguration(Pair metaclassExtension, String visualID) { - return getElementTypeConfiguration(String.format("%s_%s", getElementTypeID(metaclassExtension, false), visualID)); - } - - protected String getElementTypeID(Pair metaclassExtension, boolean initialLower) { - String metaclassName = getValidJavaIdentifier(metaclassExtension.getValue().getName()); - if (initialLower) { - metaclassName = StringExtensions.toFirstLower(metaclassName); - } - String stereotypeName = getValidJavaIdentifier(metaclassExtension.getKey().getName()); - if (initialLower) { - stereotypeName = StringExtensions.toFirstLower(stereotypeName); - } - - return (metaclassExtension.getKey().getExtendedMetaclasses().size() > 1) - ? String.format("%s.%s_%s", prefix, stereotypeName, metaclassName) - : String.format("%s.%s", prefix, stereotypeName); - } - - protected String getElementTypeID(org.eclipse.uml2.uml.Class metaclass) { - String metaclassName = getValidJavaIdentifier(metaclass.getName()); - return baseElementTypesSet.equals(UML_ELEMENT_TYPES) ? "org.eclipse.papyrus.uml." + metaclassName : baseElementTypesSet.replaceFirst("\\w+$", metaclassName); - } - - public ElementTypeConfiguration getElementTypeConfiguration(String id) { - ElementTypeConfiguration result = null; - - for (ElementTypeConfiguration next : getElementTypeSet().getElementTypeConfigurations()) { - if (id.equals(next.getIdentifier())) { - result = next; - break; - } - } - - return result; - } - - public List getAllElementTypeConfigurations(Pair metaclassExtension, Class type) { - List result = getAllElementTypeConfigurations(metaclassExtension); - assertThat("not " + type.getSimpleName(), result, everyItem(CoreMatchers. instanceOf(type))); - - @SuppressWarnings("unchecked") - List resultAsC = (List) result; - return resultAsC; - } - - public List getAllElementTypeConfigurations(Pair metaclassExtension) { - return getAllElementTypeConfigurations(Pattern.compile(String.format("%s($|_\\w+)", Pattern.quote(getElementTypeID(metaclassExtension, false))))); - } - - public List getAllElementTypeConfigurations(Pattern idPattern) { - List result = Lists.newArrayListWithExpectedSize(3); - - for (ElementTypeConfiguration next : getElementTypeSet().getElementTypeConfigurations()) { - if (idPattern.matcher(next.getIdentifier()).find()) { - result.add(next); - } - } - - return result; - } - - public SpecializationTypeConfiguration assertSpecializationType(Pair metaclassExtension) { - SpecializationTypeConfiguration result = getElementTypeConfiguration(metaclassExtension, SpecializationTypeConfiguration.class); - return result; - } - - public List assertAllSpecializationTypes(Pair metaclassExtension) { - List result = getAllElementTypeConfigurations(metaclassExtension, SpecializationTypeConfiguration.class); - return result; - } - - public StereotypeApplicationMatcherConfiguration assertStereotypeMatcher(SpecializationTypeConfiguration specializationType) { - AbstractMatcherConfiguration result = specializationType.getMatcherConfiguration(); - assertThat("not a stereotype matcher", result, instanceOf(StereotypeApplicationMatcherConfiguration.class)); - return (StereotypeApplicationMatcherConfiguration) result; - } - - public void assertNoStereotypeMatcher(SpecializationTypeConfiguration specializationType) { - AbstractMatcherConfiguration matcher = specializationType.getMatcherConfiguration(); - assertThat("has a stereotype matcher", matcher, not(instanceOf(StereotypeApplicationMatcherConfiguration.class))); - } - - public C getAdviceBindingConfiguration(Pair metaclassExtension, Class type) { - AbstractAdviceBindingConfiguration result = getAdviceBindingConfiguration(metaclassExtension); - assertThat("not a " + type.getSimpleName(), result, instanceOf(type)); - return type.cast(result); - } - - public AbstractAdviceBindingConfiguration getAdviceBindingConfiguration(Pair metaclassExtension) { - return getAdviceBindingConfiguration(getElementTypeID(metaclassExtension, true)); - } - - public AbstractAdviceBindingConfiguration getAdviceBindingConfiguration(String id) { - AbstractAdviceBindingConfiguration result = null; - - for (AbstractAdviceBindingConfiguration next : getElementTypeSet().getAdviceBindingsConfigurations()) { - if (id.equals(next.getIdentifier())) { - result = next; - break; - } - } - - return result; - } - - public List getAllAdviceBindingConfigurations(Pair metaclassExtension, Class type) { - List result = getAllAdviceBindingConfigurations(metaclassExtension); - assertThat("not " + type.getSimpleName(), result, everyItem(CoreMatchers. instanceOf(type))); - - @SuppressWarnings("unchecked") - List resultAsC = (List) result; - return resultAsC; - } - - public List getAllAdviceBindingConfigurations(Pair metaclassExtension) { - return getAllAdviceBindingConfigurations(Pattern.compile(String.format("%s($|_\\w+)", Pattern.quote(getElementTypeID(metaclassExtension, true))))); - } - - public List getAllAdviceBindingConfigurations(Pattern idPattern) { - List result = Lists.newArrayListWithExpectedSize(3); - - for (AbstractAdviceBindingConfiguration next : getElementTypeSet().getAdviceBindingsConfigurations()) { - if (idPattern.matcher(next.getIdentifier()).find()) { - result.add(next); - } - } - - return result; - } - - public ApplyStereotypeAdviceConfiguration assertApplyStereotypeAdvice(Pair metaclassExtension) { - ApplyStereotypeAdviceConfiguration result = getAdviceBindingConfiguration(metaclassExtension, ApplyStereotypeAdviceConfiguration.class); - return result; - } - - public List assertAllApplyStereotypeAdvices(Pair metaclassExtension) { - List result = getAllAdviceBindingConfigurations(metaclassExtension, ApplyStereotypeAdviceConfiguration.class); - return result; - } - - public void assertNoApplyStereotypeAdvice(Pair metaclassExtension) { - List advice = getAllAdviceBindingConfigurations(metaclassExtension, ApplyStereotypeAdviceConfiguration.class); - assertThat("has apply-stereotype advice", advice, isEmpty()); - } - - /** - * Extends the inherited method to run the profile-to-elementtypes transformation. - * - * @see #generateElementTypesConfiguration() - */ - @Override - protected void starting(Description description) { - super.starting(description); - - // Get some configuration details - BaseElementTypes basedOn = JUnitUtils.getAnnotation(description, BaseElementTypes.class); - if (basedOn != null) { - baseElementTypesSet = basedOn.value(); - } - - GenOptions options = JUnitUtils.getAnnotation(description, GenOptions.class); - if (options != null) { - genOptions = EnumSet.copyOf(Arrays.asList(options.value())); - } - - // Ensure the registration of the element types that we need - ElementTypeSetConfigurationRegistry.getInstance(); - - generateModel(); - } - - private void generateModel() { - Identifiers identifiers = new Identifiers(); - identifiers.setPrefix(prefix); - identifiers.setBaseElementTypesSet(getBaseElementTypesSet()); - identifiers.setSuppressSemanticSuperElementTypes(genOptions.contains(SUPPRESS_SEMANTIC_SUPERTYPE)); - - generateModel(identifiers); - } - - protected void generateModel(Identifiers identifiers) { - generateElementTypesConfiguration(identifiers); - } - - protected String getBaseElementTypesSet() { - return baseElementTypesSet; - } - - private void generateElementTypesConfiguration(Identifiers identifiers) { - ElementTypesGenerator elementTypesGenerator = new ElementTypesGenerator(identifiers); - IStatus status = elementTypesGenerator.generate(getModelURI(), getElementTypesResourceURI()); - assertThat(status.getMessage(), status.getSeverity(), lessThan(IStatus.ERROR)); - } -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ProfilesWithPackageNestingTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ProfilesWithPackageNestingTest.java deleted file mode 100644 index f155f9d8f1a..00000000000 --- a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests/src/org/eclipse/papyrus/uml/profile/elementtypesconfigurations/generator/tests/ProfilesWithPackageNestingTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2015 Christian W. Damus and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Christian W. Damus - Initial API and implementation - * - *****************************************************************************/ - -package org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests; - -import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; -import static org.hamcrest.CoreMatchers.containsString; -import static org.hamcrest.CoreMatchers.hasItem; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.not; -import static org.hamcrest.MatcherAssert.assertThat; - -import org.eclipse.papyrus.infra.elementtypesconfigurations.IconEntry; -import org.eclipse.papyrus.infra.elementtypesconfigurations.SpecializationTypeConfiguration; -import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; -import org.eclipse.papyrus.junit.utils.rules.PluginResource; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfiguration; -import org.eclipse.papyrus.uml.elementtypesconfigurations.stereotypeapplicationmatcherconfiguration.StereotypeApplicationMatcherConfiguration; -import org.eclipse.uml2.uml.Class; -import org.eclipse.uml2.uml.Stereotype; -import org.eclipse.uml2.uml.edit.UMLEditPlugin; -import org.eclipse.xtext.xbase.lib.Pair; -import org.junit.ClassRule; -import org.junit.Test; - -/** - * Test cases for element types generation for UML profiles that have nested packages and profiles. - */ -@PluginResource("/resources/nesting.profile.uml") -public class ProfilesWithPackageNestingTest extends AbstractPapyrusTest { - - @ClassRule - public static final ModelGenFixture fixture = new ModelGenFixture(); - - public ProfilesWithPackageNestingTest() { - super(); - } - - @Test - public void elementTypesGenerated() { - Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); - Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); - Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); - Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); - fixture.assertSpecializationType(s11Class); - fixture.assertSpecializationType(s21Class); - fixture.assertSpecializationType(s12Generalization); - fixture.assertSpecializationType(s22Generalization); - } - - @Test - public void iconGenerated() { - Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); - Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); - Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); - Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); - - SpecializationTypeConfiguration type = fixture.assertSpecializationType(s11Class); - IconEntry icon = type.getIconEntry(); - assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); - assertThat(icon.getIconPath(), containsString("obj16/Class.gif")); - - type = fixture.assertSpecializationType(s21Class); - icon = type.getIconEntry(); - assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); - assertThat(icon.getIconPath(), containsString("obj16/Class.gif")); - - type = fixture.assertSpecializationType(s12Generalization); - icon = type.getIconEntry(); - assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); - assertThat(icon.getIconPath(), containsString("obj16/Generalization.gif")); - - type = fixture.assertSpecializationType(s22Generalization); - icon = type.getIconEntry(); - assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); - assertThat(icon.getIconPath(), containsString("obj16/Generalization.gif")); - } - - @Test - public void stereotypeMatcherGenerated() { - Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); - Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); - Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); - Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); - - SpecializationTypeConfiguration type = fixture.assertSpecializationType(s11Class); - StereotypeApplicationMatcherConfiguration matcher = fixture.assertStereotypeMatcher(type); - assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedProfile::S1_1")); - - type = fixture.assertSpecializationType(s21Class); - matcher = fixture.assertStereotypeMatcher(type); - assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedPackage::S2_1")); - - type = fixture.assertSpecializationType(s12Generalization); - matcher = fixture.assertStereotypeMatcher(type); - assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedProfile::S1_2")); - - type = fixture.assertSpecializationType(s22Generalization); - matcher = fixture.assertStereotypeMatcher(type); - assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedPackage::S2_2")); - } - - @Test - public void stereotypeAdviceGenerated() { - Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); - Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); - Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); - Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); - - ApplyStereotypeAdviceConfiguration advice = fixture.assertApplyStereotypeAdvice(s11Class); - assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s11Class))); - assertThat(advice.getStereotypesToApply(), not(isEmpty())); - assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root::nestedProfile")); - assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedProfile::S1_1")); - - advice = fixture.assertApplyStereotypeAdvice(s12Generalization); - assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s12Generalization))); - assertThat(advice.getStereotypesToApply(), not(isEmpty())); - assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root::nestedProfile")); - assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedProfile::S1_2")); - - advice = fixture.assertApplyStereotypeAdvice(s21Class); - assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s21Class))); - assertThat(advice.getStereotypesToApply(), not(isEmpty())); - assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root")); - assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedPackage::S2_1")); - - advice = fixture.assertApplyStereotypeAdvice(s22Generalization); - assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s22Generalization))); - assertThat(advice.getStereotypesToApply(), not(isEmpty())); - assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root")); - assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedPackage::S2_2")); - } -} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.classpath b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.classpath new file mode 100644 index 00000000000..098194ca4b7 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.project b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.project new file mode 100644 index 00000000000..90676cebade --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.uml.profile.types.generator.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f08be2b06c4 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,291 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=260 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..954281dbc31 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,68 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_type_arguments=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup.use_type_arguments=false +cleanup_profile=_Papyrus +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Papyrus +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..42646bfadd3 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/META-INF/MANIFEST.MF @@ -0,0 +1,27 @@ +Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.junit;bundle-version="4.11.0", + org.eclipse.papyrus.junit.framework;bundle-version="1.2.0", + org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", + org.eclipse.emf.ecore;bundle-version="2.11.0", + org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0", + org.eclipse.uml2.uml;bundle-version="5.1.0", + org.eclipse.papyrus.uml.service.types;bundle-version="1.2.0", + org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0", + org.eclipse.papyrus.infra.emf;bundle-version="1.2.0", + org.eclipse.papyrus.uml.profile.types.generator;bundle-version="1.2.0", + com.google.inject;bundle-version="3.0.0", + com.google.guava;bundle-version="11.0.0", + org.eclipse.xtext.xbase.lib;bundle-version="2.8.0" +Export-Package: org.eclipse.papyrus.uml.profile.types.generator.tests +Bundle-Vendor: %providerName +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: . +Bundle-Version: 1.2.0.qualifier +Bundle-Localization: plugin +Bundle-Name: %pluginName +Bundle-ManifestVersion: 2 +Bundle-Description: %pluginDescription +Bundle-SymbolicName: org.eclipse.papyrus.uml.profile.types.generator.tests;singleton:=true +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/about.html b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/build.properties b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/build.properties new file mode 100644 index 00000000000..e6ac66d4daf --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/build.properties @@ -0,0 +1,19 @@ +# Copyright (c) 2015 Christian W. Damus and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Christian W. Damus - Initial API and implementation + +bin.includes = .,\ + META-INF/,\ + plugin.properties,\ + about.html,\ + resources/ +jars.compile.order = . +source.. = src/ +output.. = bin/ +src.includes = about.html diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/org.eclipse.papyrus.uml.profile.types.generator.tests.launch b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/org.eclipse.papyrus.uml.profile.types.generator.tests.launch new file mode 100644 index 00000000000..10eca5b82fe --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/org.eclipse.papyrus.uml.profile.types.generator.tests.launch @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/plugin.properties b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/plugin.properties new file mode 100644 index 00000000000..0e75fec33b0 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/plugin.properties @@ -0,0 +1,13 @@ +# Copyright (c) 2015 Christian W. Damus and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Christian W. Damus - Initial API and implementation + +pluginName = Automated Tests for Papyrus Element Types Configuration Generator for UML Profiles +providerName = Eclipse Modeling Project +pluginDescription = JUnit tests for element types model generation for UML profiles diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/pom.xml b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/pom.xml new file mode 100644 index 00000000000..fe5559dade5 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + + org.eclipse.papyrus.tests.releng + org.eclipse.papyrus + 1.2.0-SNAPSHOT + ../../../../../../releng/main-tests + + org.eclipse.papyrus.uml.profile.types.generator.tests + org.eclipse.papyrus + 1.2.0-SNAPSHOT + eclipse-test-plugin + \ No newline at end of file diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.di b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.di new file mode 100644 index 00000000000..24bc988cd5f --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.di @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.notation b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.notation new file mode 100644 index 00000000000..3b5f2260540 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.notation @@ -0,0 +1,437 @@ + + + + +
+
+
+
+
+ + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.uml b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.uml new file mode 100644 index 00000000000..e63302b1f11 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/j2ee.profile.uml @@ -0,0 +1,228 @@ + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.di b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.di new file mode 100644 index 00000000000..bf9abab340f --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.di @@ -0,0 +1,2 @@ + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.notation b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.notation new file mode 100644 index 00000000000..febce5398f0 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.notation @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.uml b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.uml new file mode 100644 index 00000000000..7cd07408209 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/resources/nesting.profile.uml @@ -0,0 +1,117 @@ + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/AllTests.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/AllTests.java new file mode 100644 index 00000000000..d792480bba0 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/AllTests.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import org.junit.runner.RunWith; +import org.eclipse.papyrus.junit.framework.classification.ClassificationSuite; +import org.junit.runners.Suite.SuiteClasses; + +/** + * The master test suite for the plug-in. + */ +@RunWith(ClassificationSuite.class) +@SuiteClasses({ + BasicElementTypesGenerationTest.class, DiagramSpecificElementTypesGenerationTest.class, + ProfilesWithPackageNestingTest.class, + DiagramSpecificElementTypesGenerationBug461717Test.class }) +public class AllTests { + // Nothing required +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BaseElementTypes.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BaseElementTypes.java new file mode 100644 index 00000000000..491af910aaa --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BaseElementTypes.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Annotates a test case or suite class with the ID of the base element types set for model generation. + */ +@Retention(RetentionPolicy.RUNTIME) +@Target({ ElementType.METHOD, ElementType.TYPE }) +public @interface BaseElementTypes { + /** + * The ID of the base element types set configuration model. + */ + String value(); +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BasicElementTypesGenerationTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BasicElementTypesGenerationTest.java new file mode 100644 index 00000000000..ff95df9d1ab --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/BasicElementTypesGenerationTest.java @@ -0,0 +1,110 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; +import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.CoreMatchers.hasItem; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.MatcherAssert.assertThat; + +import java.util.List; + +import org.eclipse.papyrus.infra.types.IconEntry; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.UMLPackage; +import org.eclipse.uml2.uml.edit.UMLEditPlugin; +import org.eclipse.xtext.xbase.lib.Pair; +import org.junit.ClassRule; +import org.junit.Test; + +/** + * Test cases for the basics of element types generation for UML profiles. + */ +@PluginResource("/resources/j2ee.profile.uml") +public class BasicElementTypesGenerationTest extends AbstractPapyrusTest { + + @ClassRule + public static final ModelGenFixture fixture = new ModelGenFixture(); + + public BasicElementTypesGenerationTest() { + super(); + } + + @Test + public void elementTypesGenerated() { + Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); + fixture.assertSpecializationType(beanClass); + assertThat(fixture.getElementTypeSet().getMetamodelNsURI(), is(UMLPackage.eNS_URI)); + } + + /** + * Verifies that non-diagram-specific element types are generated with only a semantic parent (no visual parent). + * + * @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=461717 + */ + @Test + public void elementTypeSpecializedTypes_bug461717() { + Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); + SpecializationTypeConfiguration specialization = fixture.assertSpecializationType(beanClass); + + assertThat(specialization.getIdentifier(), is(fixture.prefix + ".Bean")); + + List specializedTypeIDs = specialization.getSpecializedTypesID(); + assertThat(specializedTypeIDs.size(), is(1)); + assertThat(specializedTypeIDs.get(0), is(UMLElementTypes.CLASS.getId())); + } + + @Test + public void multipleElementTypesForOneStereotypeGenerated() { + Pair accessClass = fixture.getMetaclassExtension("AccessControlled", "Class"); + Pair accessProperty = fixture.getMetaclassExtension("AccessControlled", "Property"); + assertThat(fixture.assertSpecializationType(accessClass), not(fixture.assertSpecializationType(accessProperty))); + } + + @Test + public void iconGenerated() { + Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); + SpecializationTypeConfiguration type = fixture.assertSpecializationType(beanClass); + IconEntry icon = type.getIconEntry(); + assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); + assertThat(icon.getIconPath(), containsString("obj16/Class.gif")); + } + + @Test + public void stereotypeMatcherGenerated() { + Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); + SpecializationTypeConfiguration type = fixture.assertSpecializationType(beanClass); + StereotypeApplicationMatcherConfiguration matcher = fixture.assertStereotypeMatcher(type); + assertThat(matcher.getStereotypesQualifiedNames(), hasItem("j2ee::Bean")); + } + + @Test + public void stereotypeAdviceGenerated() { + Pair beanClass = fixture.getMetaclassExtension("Bean", "Class"); + ApplyStereotypeAdviceConfiguration advice = fixture.assertApplyStereotypeAdvice(beanClass); + assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(beanClass))); + assertThat(advice.getStereotypesToApply(), not(isEmpty())); + assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("j2ee")); + assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("j2ee::Bean")); + } +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java new file mode 100644 index 00000000000..6f1d6c1bc2e --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationBug461717Test.java @@ -0,0 +1,107 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.regexContains; +import static org.eclipse.papyrus.uml.profile.types.generator.tests.GenOption.SUPPRESS_SEMANTIC_SUPERTYPE; +import static org.hamcrest.CoreMatchers.hasItem; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.CoreMatchers.startsWith; +import static org.hamcrest.MatcherAssert.assertThat; + +import java.util.List; + +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.xtext.xbase.lib.Pair; +import org.junit.ClassRule; +import org.junit.Test; + +/** + * Test cases for diagram-specific element types generation for UML profiles with the option to suppress the generation + * of the semantic supertype reference. + * + * @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=461717 + */ +@PluginResource("/resources/j2ee.profile.uml") +@BaseElementTypes("org.eclipse.papyrus.uml.diagram.usecase.elementTypeSet") +@GenOptions(SUPPRESS_SEMANTIC_SUPERTYPE) +public class DiagramSpecificElementTypesGenerationBug461717Test extends AbstractPapyrusTest { + + @ClassRule + public static final ModelGenFixture fixture = new ModelGenFixture(); + + public DiagramSpecificElementTypesGenerationBug461717Test() { + super(); + } + + /** + * Verifies that diagram-specific element types are generated with only the visual parent + * when the semantic parent is suppressed. + */ + @Test + public void elementTypeSpecializedTypes() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List specializationTypes = fixture.assertAllSpecializationTypes(userActor); + assertThat("No specialization types generated", specializationTypes, not(isEmpty())); + + String idPrefix = fixture.prefix + ".User_"; + + for (SpecializationTypeConfiguration next : specializationTypes) { + assertThat(next.getIdentifier(), startsWith(idPrefix)); + + List specializedTypeIDs = next.getSpecializedTypesID(); + assertThat(specializedTypeIDs.size(), is(1)); + assertThat(specializedTypeIDs.get(0), regexContains("Actor_\\d{4}$")); // a visual ID + } + } + + /** + * Verifies that diagram-specific element types are generated with stereotype matchers + * when the semantic parent is suppressed. + */ + @Test + public void stereotypeMatcherGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List types = fixture.assertAllSpecializationTypes(userActor); + for (SpecializationTypeConfiguration type : types) { + StereotypeApplicationMatcherConfiguration matcher = fixture.assertStereotypeMatcher(type); + assertThat(matcher.getStereotypesQualifiedNames(), hasItem("j2ee::User")); + } + } + + /** + * Verifies that diagram-specific element types are generated with apply-stereotype advice + * when the semantic parent is suppressed. + */ + @Test + public void stereotypeAdviceGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List advices = fixture.assertAllApplyStereotypeAdvices(userActor); + for (ApplyStereotypeAdviceConfiguration advice : advices) { + String visualID = advice.getIdentifier().substring(advice.getIdentifier().lastIndexOf('_') + 1); + assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(userActor, visualID))); + assertThat(advice.getStereotypesToApply(), not(isEmpty())); + assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("j2ee")); + assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("j2ee::User")); + } + } +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationTest.java new file mode 100644 index 00000000000..5abfb7028de --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/DiagramSpecificElementTypesGenerationTest.java @@ -0,0 +1,125 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import static com.google.common.collect.Iterables.transform; +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.regexContains; +import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.CoreMatchers.hasItems; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.CoreMatchers.startsWith; +import static org.hamcrest.MatcherAssert.assertThat; + +import java.util.List; +import java.util.Set; + +import org.eclipse.papyrus.infra.emf.utils.EMFFunctions; +import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage; +import org.eclipse.papyrus.infra.types.IconEntry; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.UMLPackage; +import org.eclipse.uml2.uml.edit.UMLEditPlugin; +import org.eclipse.xtext.xbase.lib.Pair; +import org.junit.ClassRule; +import org.junit.Test; + +import com.google.common.collect.ImmutableSet; + +/** + * Test cases for diagram-specific element types generation for UML profiles. + */ +@PluginResource("/resources/j2ee.profile.uml") +@BaseElementTypes("org.eclipse.papyrus.uml.diagram.usecase.elementTypeSet") +public class DiagramSpecificElementTypesGenerationTest extends AbstractPapyrusTest { + + @ClassRule + public static final ModelGenFixture fixture = new ModelGenFixture(); + + public DiagramSpecificElementTypesGenerationTest() { + super(); + } + + @Test + public void elementTypesGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + fixture.assertAllSpecializationTypes(userActor); + assertThat(fixture.getElementTypeSet().getMetamodelNsURI(), is(UMLPackage.eNS_URI)); + } + + /** + * Verifies that diagram-specific element types are generated with both a semantic parent and a visual parent. + * + * @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=461717 + */ + @Test + public void elementTypeSpecializedTypes_bug461717() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List specializationTypes = fixture.assertAllSpecializationTypes(userActor); + assertThat("No specialization types generated", specializationTypes, not(isEmpty())); + + String semanticParentID = fixture.prefix + ".User"; + String idPrefix = semanticParentID + "_"; + + for (SpecializationTypeConfiguration next : specializationTypes) { + assertThat(next.getIdentifier(), startsWith(idPrefix)); + + List specializedTypeIDs = next.getSpecializedTypesID(); + assertThat(specializedTypeIDs.size(), is(2)); + assertThat(specializedTypeIDs.get(0), is(semanticParentID)); + assertThat(specializedTypeIDs.get(1), regexContains("Actor_\\d{4}$")); // a visual ID + } + } + + @Test + public void distinctHintsGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List types = fixture.assertAllSpecializationTypes(userActor); + Set hints = ImmutableSet.copyOf(transform(types, EMFFunctions.getFeature(ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_CONFIGURATION__HINT, String.class))); + assertThat(hints, hasItems("2011", "2012")); + } + + @Test + public void iconGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List types = fixture.assertAllSpecializationTypes(userActor); + for (SpecializationTypeConfiguration type : types) { + IconEntry icon = type.getIconEntry(); + assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); + assertThat(icon.getIconPath(), containsString("obj16/Actor.gif")); + } + } + + @Test + public void stereotypeMatcherNotGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + List types = fixture.assertAllSpecializationTypes(userActor); + for (SpecializationTypeConfiguration type : types) { + // Stereotype matchers are not required where they are inherited from semantic supertype + fixture.assertNoStereotypeMatcher(type); + } + } + + @Test + public void stereotypeAdviceNotGenerated() { + Pair userActor = fixture.getMetaclassExtension("User", "Actor"); + // Apply-stereotype advice is not required where it is inherited from semantic supertype + fixture.assertNoApplyStereotypeAdvice(userActor); + } +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOption.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOption.java new file mode 100644 index 00000000000..a0bb865c9f9 --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOption.java @@ -0,0 +1,21 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +/** + * Test fixture model generation options. + */ +public enum GenOption { + SUPPRESS_SEMANTIC_SUPERTYPE; +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOptions.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOptions.java new file mode 100644 index 00000000000..7b2cc26335e --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/GenOptions.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Annotates a test case or suite class with model generation options. + */ +@Retention(RetentionPolicy.RUNTIME) +@Target({ ElementType.METHOD, ElementType.TYPE }) +public @interface GenOptions { + /** + * The model generation options. + */ + GenOption[] value(); +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ModelGenFixture.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ModelGenFixture.java new file mode 100644 index 00000000000..1161cfdb57a --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ModelGenFixture.java @@ -0,0 +1,314 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.lessThan; +import static org.eclipse.papyrus.uml.profile.types.generator.tests.GenOption.SUPPRESS_SEMANTIC_SUPERTYPE; +import static org.eclipse.uml2.common.util.UML2Util.getValidJavaIdentifier; +import static org.hamcrest.CoreMatchers.everyItem; +import static org.hamcrest.CoreMatchers.instanceOf; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.MatcherAssert.assertThat; + +import java.util.Arrays; +import java.util.EnumSet; +import java.util.List; +import java.util.Set; +import java.util.regex.Pattern; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration; +import org.eclipse.papyrus.infra.types.AbstractMatcherConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeConfiguration; +import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; +import org.eclipse.papyrus.junit.utils.JUnitUtils; +import org.eclipse.papyrus.junit.utils.rules.ResourceSetFixture; +import org.eclipse.papyrus.uml.profile.types.generator.ElementTypesGenerator; +import org.eclipse.papyrus.uml.profile.types.generator.Identifiers; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.xtext.xbase.lib.Pair; +import org.eclipse.xtext.xbase.lib.StringExtensions; +import org.hamcrest.CoreMatchers; +import org.junit.runner.Description; + +import com.google.common.base.Objects; +import com.google.common.base.Predicate; +import com.google.common.collect.Iterables; +import com.google.common.collect.Iterators; +import com.google.common.collect.Lists; + +/** + * A test fixture for orchestration of model transformations and verification of transformation results. + */ +public class ModelGenFixture extends ResourceSetFixture { + private static final String UML_ELEMENT_TYPES = "org.eclipse.papyrus.uml.service.types.UMLElementTypeSet"; + + protected final String prefix = "org.eclipse.papyrus.test"; + + private String baseElementTypesSet = UML_ELEMENT_TYPES; + + private Set genOptions = EnumSet.noneOf(GenOption.class); + + public ModelGenFixture() { + super(); + } + + public URI getElementTypesResourceURI() { + URI inputURI = getModelResourceURI(); + String basename = inputURI.lastSegment(); + basename = basename.substring(0, basename.indexOf('.')); + + return inputURI.trimSegments(1).appendSegment(basename).appendFileExtension("elementtypesconfiguration"); + } + + public ElementTypeSetConfiguration getElementTypeSet() { + Resource resource = getResourceSet().getResource(getElementTypesResourceURI(), true); + return (ElementTypeSetConfiguration) resource.getContents().get(0); + } + + static Predicate named(final String name) { + return new Predicate() { + @Override + public boolean apply(NamedElement input) { + return Objects.equal(name, input.getName()); + } + }; + } + + public Pair getMetaclassExtension(final String stereotypeName, final String metaclassName) { + Pair result = null; + Stereotype stereotype = Iterators.find(Iterators.filter(getModel().eAllContents(), Stereotype.class), named(stereotypeName)); + if (stereotype != null) { + org.eclipse.uml2.uml.Class metaclass = Iterables.find(stereotype.getAllExtendedMetaclasses(), named(metaclassName)); + if (metaclass != null) { + result = Pair.of(stereotype, metaclass); + } + } + + return result; + } + + public C getElementTypeConfiguration(Pair metaclassExtension, Class type) { + ElementTypeConfiguration result = getElementTypeConfiguration(metaclassExtension); + assertThat("not a " + type.getSimpleName(), result, instanceOf(type)); + return type.cast(result); + } + + public ElementTypeConfiguration getElementTypeConfiguration(Pair metaclassExtension) { + return getElementTypeConfiguration(getElementTypeID(metaclassExtension, false)); + } + + public ElementTypeConfiguration getElementTypeConfiguration(Pair metaclassExtension, String visualID) { + return getElementTypeConfiguration(String.format("%s_%s", getElementTypeID(metaclassExtension, false), visualID)); + } + + protected String getElementTypeID(Pair metaclassExtension, boolean initialLower) { + String metaclassName = getValidJavaIdentifier(metaclassExtension.getValue().getName()); + if (initialLower) { + metaclassName = StringExtensions.toFirstLower(metaclassName); + } + String stereotypeName = getValidJavaIdentifier(metaclassExtension.getKey().getName()); + if (initialLower) { + stereotypeName = StringExtensions.toFirstLower(stereotypeName); + } + + return (metaclassExtension.getKey().getExtendedMetaclasses().size() > 1) + ? String.format("%s.%s_%s", prefix, stereotypeName, metaclassName) + : String.format("%s.%s", prefix, stereotypeName); + } + + protected String getElementTypeID(org.eclipse.uml2.uml.Class metaclass) { + String metaclassName = getValidJavaIdentifier(metaclass.getName()); + return baseElementTypesSet.equals(UML_ELEMENT_TYPES) ? "org.eclipse.papyrus.uml." + metaclassName : baseElementTypesSet.replaceFirst("\\w+$", metaclassName); + } + + public ElementTypeConfiguration getElementTypeConfiguration(String id) { + ElementTypeConfiguration result = null; + + for (ElementTypeConfiguration next : getElementTypeSet().getElementTypeConfigurations()) { + if (id.equals(next.getIdentifier())) { + result = next; + break; + } + } + + return result; + } + + public List getAllElementTypeConfigurations(Pair metaclassExtension, Class type) { + List result = getAllElementTypeConfigurations(metaclassExtension); + assertThat("not " + type.getSimpleName(), result, everyItem(CoreMatchers. instanceOf(type))); + + @SuppressWarnings("unchecked") + List resultAsC = (List) result; + return resultAsC; + } + + public List getAllElementTypeConfigurations(Pair metaclassExtension) { + return getAllElementTypeConfigurations(Pattern.compile(String.format("%s($|_\\w+)", Pattern.quote(getElementTypeID(metaclassExtension, false))))); + } + + public List getAllElementTypeConfigurations(Pattern idPattern) { + List result = Lists.newArrayListWithExpectedSize(3); + + for (ElementTypeConfiguration next : getElementTypeSet().getElementTypeConfigurations()) { + if (idPattern.matcher(next.getIdentifier()).find()) { + result.add(next); + } + } + + return result; + } + + public SpecializationTypeConfiguration assertSpecializationType(Pair metaclassExtension) { + SpecializationTypeConfiguration result = getElementTypeConfiguration(metaclassExtension, SpecializationTypeConfiguration.class); + return result; + } + + public List assertAllSpecializationTypes(Pair metaclassExtension) { + List result = getAllElementTypeConfigurations(metaclassExtension, SpecializationTypeConfiguration.class); + return result; + } + + public StereotypeApplicationMatcherConfiguration assertStereotypeMatcher(SpecializationTypeConfiguration specializationType) { + AbstractMatcherConfiguration result = specializationType.getMatcherConfiguration(); + assertThat("not a stereotype matcher", result, instanceOf(StereotypeApplicationMatcherConfiguration.class)); + return (StereotypeApplicationMatcherConfiguration) result; + } + + public void assertNoStereotypeMatcher(SpecializationTypeConfiguration specializationType) { + AbstractMatcherConfiguration matcher = specializationType.getMatcherConfiguration(); + assertThat("has a stereotype matcher", matcher, not(instanceOf(StereotypeApplicationMatcherConfiguration.class))); + } + + public C getAdviceBindingConfiguration(Pair metaclassExtension, Class type) { + AbstractAdviceBindingConfiguration result = getAdviceBindingConfiguration(metaclassExtension); + assertThat("not a " + type.getSimpleName(), result, instanceOf(type)); + return type.cast(result); + } + + public AbstractAdviceBindingConfiguration getAdviceBindingConfiguration(Pair metaclassExtension) { + return getAdviceBindingConfiguration(getElementTypeID(metaclassExtension, true)); + } + + public AbstractAdviceBindingConfiguration getAdviceBindingConfiguration(String id) { + AbstractAdviceBindingConfiguration result = null; + + for (AbstractAdviceBindingConfiguration next : getElementTypeSet().getAdviceBindingsConfigurations()) { + if (id.equals(next.getIdentifier())) { + result = next; + break; + } + } + + return result; + } + + public List getAllAdviceBindingConfigurations(Pair metaclassExtension, Class type) { + List result = getAllAdviceBindingConfigurations(metaclassExtension); + assertThat("not " + type.getSimpleName(), result, everyItem(CoreMatchers. instanceOf(type))); + + @SuppressWarnings("unchecked") + List resultAsC = (List) result; + return resultAsC; + } + + public List getAllAdviceBindingConfigurations(Pair metaclassExtension) { + return getAllAdviceBindingConfigurations(Pattern.compile(String.format("%s($|_\\w+)", Pattern.quote(getElementTypeID(metaclassExtension, true))))); + } + + public List getAllAdviceBindingConfigurations(Pattern idPattern) { + List result = Lists.newArrayListWithExpectedSize(3); + + for (AbstractAdviceBindingConfiguration next : getElementTypeSet().getAdviceBindingsConfigurations()) { + if (idPattern.matcher(next.getIdentifier()).find()) { + result.add(next); + } + } + + return result; + } + + public ApplyStereotypeAdviceConfiguration assertApplyStereotypeAdvice(Pair metaclassExtension) { + ApplyStereotypeAdviceConfiguration result = getAdviceBindingConfiguration(metaclassExtension, ApplyStereotypeAdviceConfiguration.class); + return result; + } + + public List assertAllApplyStereotypeAdvices(Pair metaclassExtension) { + List result = getAllAdviceBindingConfigurations(metaclassExtension, ApplyStereotypeAdviceConfiguration.class); + return result; + } + + public void assertNoApplyStereotypeAdvice(Pair metaclassExtension) { + List advice = getAllAdviceBindingConfigurations(metaclassExtension, ApplyStereotypeAdviceConfiguration.class); + assertThat("has apply-stereotype advice", advice, isEmpty()); + } + + /** + * Extends the inherited method to run the profile-to-elementtypes transformation. + * + * @see #generateElementTypesConfiguration() + */ + @Override + protected void starting(Description description) { + super.starting(description); + + // Get some configuration details + BaseElementTypes basedOn = JUnitUtils.getAnnotation(description, BaseElementTypes.class); + if (basedOn != null) { + baseElementTypesSet = basedOn.value(); + } + + GenOptions options = JUnitUtils.getAnnotation(description, GenOptions.class); + if (options != null) { + genOptions = EnumSet.copyOf(Arrays.asList(options.value())); + } + + // Ensure the registration of the element types that we need + ElementTypeSetConfigurationRegistry.getInstance(); + + generateModel(); + } + + private void generateModel() { + Identifiers identifiers = new Identifiers(); + identifiers.setPrefix(prefix); + identifiers.setBaseElementTypesSet(getBaseElementTypesSet()); + identifiers.setSuppressSemanticSuperElementTypes(genOptions.contains(SUPPRESS_SEMANTIC_SUPERTYPE)); + + generateModel(identifiers); + } + + protected void generateModel(Identifiers identifiers) { + generateElementTypesConfiguration(identifiers); + } + + protected String getBaseElementTypesSet() { + return baseElementTypesSet; + } + + private void generateElementTypesConfiguration(Identifiers identifiers) { + ElementTypesGenerator elementTypesGenerator = new ElementTypesGenerator(identifiers); + IStatus status = elementTypesGenerator.generate(getModelURI(), getElementTypesResourceURI()); + assertThat(status.getMessage(), status.getSeverity(), lessThan(IStatus.ERROR)); + } +} diff --git a/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ProfilesWithPackageNestingTest.java b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ProfilesWithPackageNestingTest.java new file mode 100644 index 00000000000..78b9e7ebb9d --- /dev/null +++ b/tests/junit/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.types.generator.tests/src/org/eclipse/papyrus/uml/profile/types/generator/tests/ProfilesWithPackageNestingTest.java @@ -0,0 +1,144 @@ +/***************************************************************************** + * Copyright (c) 2015 Christian W. Damus and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.profile.types.generator.tests; + +import static org.eclipse.papyrus.junit.matchers.MoreMatchers.isEmpty; +import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.CoreMatchers.hasItem; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.MatcherAssert.assertThat; + +import org.eclipse.papyrus.infra.types.IconEntry; +import org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.papyrus.uml.types.core.advices.applystereotype.ApplyStereotypeAdviceConfiguration; +import org.eclipse.papyrus.uml.types.core.matchers.stereotype.StereotypeApplicationMatcherConfiguration; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.edit.UMLEditPlugin; +import org.eclipse.xtext.xbase.lib.Pair; +import org.junit.ClassRule; +import org.junit.Test; + +/** + * Test cases for element types generation for UML profiles that have nested packages and profiles. + */ +@PluginResource("/resources/nesting.profile.uml") +public class ProfilesWithPackageNestingTest extends AbstractPapyrusTest { + + @ClassRule + public static final ModelGenFixture fixture = new ModelGenFixture(); + + public ProfilesWithPackageNestingTest() { + super(); + } + + @Test + public void elementTypesGenerated() { + Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); + Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); + Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); + Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); + fixture.assertSpecializationType(s11Class); + fixture.assertSpecializationType(s21Class); + fixture.assertSpecializationType(s12Generalization); + fixture.assertSpecializationType(s22Generalization); + } + + @Test + public void iconGenerated() { + Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); + Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); + Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); + Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); + + SpecializationTypeConfiguration type = fixture.assertSpecializationType(s11Class); + IconEntry icon = type.getIconEntry(); + assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); + assertThat(icon.getIconPath(), containsString("obj16/Class.gif")); + + type = fixture.assertSpecializationType(s21Class); + icon = type.getIconEntry(); + assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); + assertThat(icon.getIconPath(), containsString("obj16/Class.gif")); + + type = fixture.assertSpecializationType(s12Generalization); + icon = type.getIconEntry(); + assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); + assertThat(icon.getIconPath(), containsString("obj16/Generalization.gif")); + + type = fixture.assertSpecializationType(s22Generalization); + icon = type.getIconEntry(); + assertThat(icon.getBundleId(), is(UMLEditPlugin.getPlugin().getSymbolicName())); + assertThat(icon.getIconPath(), containsString("obj16/Generalization.gif")); + } + + @Test + public void stereotypeMatcherGenerated() { + Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); + Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); + Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); + Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); + + SpecializationTypeConfiguration type = fixture.assertSpecializationType(s11Class); + StereotypeApplicationMatcherConfiguration matcher = fixture.assertStereotypeMatcher(type); + assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedProfile::S1_1")); + + type = fixture.assertSpecializationType(s21Class); + matcher = fixture.assertStereotypeMatcher(type); + assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedPackage::S2_1")); + + type = fixture.assertSpecializationType(s12Generalization); + matcher = fixture.assertStereotypeMatcher(type); + assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedProfile::S1_2")); + + type = fixture.assertSpecializationType(s22Generalization); + matcher = fixture.assertStereotypeMatcher(type); + assertThat(matcher.getStereotypesQualifiedNames(), hasItem("root::nestedPackage::S2_2")); + } + + @Test + public void stereotypeAdviceGenerated() { + Pair s11Class = fixture.getMetaclassExtension("S1_1", "Class"); + Pair s21Class = fixture.getMetaclassExtension("S2_1", "Class"); + Pair s12Generalization = fixture.getMetaclassExtension("S1_2", "Generalization"); + Pair s22Generalization = fixture.getMetaclassExtension("S2_2", "Generalization"); + + ApplyStereotypeAdviceConfiguration advice = fixture.assertApplyStereotypeAdvice(s11Class); + assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s11Class))); + assertThat(advice.getStereotypesToApply(), not(isEmpty())); + assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root::nestedProfile")); + assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedProfile::S1_1")); + + advice = fixture.assertApplyStereotypeAdvice(s12Generalization); + assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s12Generalization))); + assertThat(advice.getStereotypesToApply(), not(isEmpty())); + assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root::nestedProfile")); + assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedProfile::S1_2")); + + advice = fixture.assertApplyStereotypeAdvice(s21Class); + assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s21Class))); + assertThat(advice.getStereotypesToApply(), not(isEmpty())); + assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root")); + assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedPackage::S2_1")); + + advice = fixture.assertApplyStereotypeAdvice(s22Generalization); + assertThat(advice.getTarget(), is(fixture.getElementTypeConfiguration(s22Generalization))); + assertThat(advice.getStereotypesToApply(), not(isEmpty())); + assertThat(advice.getStereotypesToApply().get(0).getRequiredProfiles(), hasItem("root")); + assertThat(advice.getStereotypesToApply().get(0).getStereotypeQualifiedName(), is("root::nestedPackage::S2_2")); + } +} diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/META-INF/MANIFEST.MF index 5e0f6e251e3..7d02149cb7c 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/META-INF/MANIFEST.MF @@ -20,8 +20,8 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.junit.utils;bundle-version="1.2.0", org.eclipse.papyrus.tests.framework;bundle-version="1.2.0", org.eclipse.xtend.lib;bundle-version="2.8.1", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.2.0", - org.eclipse.papyrus.uml.elementtypesconfigurations;bundle-version="1.2.0" + org.eclipse.papyrus.infra.types;bundle-version="1.2.0", + org.eclipse.papyrus.uml.types.core;bundle-version="1.2.0" Export-Package: org.eclipse.papyrus.uml.diagram.activity.tests, org.eclipse.papyrus.uml.diagram.activity.tests.canonical;x-friends:="org.eclipse.papyrus.uml.diagram.interactionoverview.tests", org.eclipse.papyrus.uml.diagram.activity.tests.generation diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramElementTypeConfigurationTest.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramElementTypeConfigurationTest.java index 6b8564b5f52..91679bddccc 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramElementTypeConfigurationTest.java +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramElementTypeConfigurationTest.java @@ -21,16 +21,16 @@ import org.junit.Assert; import org.junit.Test; /** - * Test the compositediagram.elementtypesconfigurations model : - * - validate the model + * Test the compositediagram.typesconfigurations model : + * - validate the model * * @author Benoit Maggi */ public class CompositeDiagramElementTypeConfigurationTest { - + // path to the model - public static final String ELEMENT_TYPE_CONFIGURATION_MODEL_PATH = org.eclipse.papyrus.uml.diagram.composite.part.UMLDiagramEditorPlugin.ID+"/model/compositediagram.elementtypesconfigurations"; //$NON-NLS-0$ - + public static final String ELEMENT_TYPE_CONFIGURATION_MODEL_PATH = org.eclipse.papyrus.uml.diagram.composite.part.UMLDiagramEditorPlugin.ID + "/model/compositediagram.typesconfigurations"; // $NON-NLS-0$ + /** * Validate the model with the rules defined in the meta-model tooling */ diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramNotationElementTypeConfigurationTest.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramNotationElementTypeConfigurationTest.java index 118e9385499..ca7563fe73c 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramNotationElementTypeConfigurationTest.java +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/test/org/eclipse/papyrus/uml/diagram/composite/test/model/CompositeDiagramNotationElementTypeConfigurationTest.java @@ -22,15 +22,15 @@ import org.junit.Test; /** * Test the compositediagram-notation model : - * - validate the model + * - validate the model * * @author Benoit Maggi */ public class CompositeDiagramNotationElementTypeConfigurationTest { - + // path to the model - public static final String ELEMENT_TYPE_NOTATION_CONFIGURATION_MODEL_PATH = org.eclipse.papyrus.uml.diagram.composite.part.UMLDiagramEditorPlugin.ID+"/model/compositediagram-notation.elementtypesconfigurations"; //$NON-NLS-0$ - + public static final String ELEMENT_TYPE_NOTATION_CONFIGURATION_MODEL_PATH = org.eclipse.papyrus.uml.diagram.composite.part.UMLDiagramEditorPlugin.ID + "/model/compositediagram-notation.typesconfigurations"; // $NON-NLS-0$ + /** * Validate the model with the rules defined in the meta-model tooling */ diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/META-INF/MANIFEST.MF index 77ba2b9e807..973434dbda0 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.core.resources;bundle-version="3.8.0", - org.eclipse.papyrus.infra.elementtypesconfigurations;bundle-version="1.1.0", + org.eclipse.papyrus.infra.types;bundle-version="1.1.0", org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0", org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0", org.eclipse.papyrus.uml.diagram.tests;bundle-version="1.1.0", diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/plugin.xml b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/plugin.xml index 626214771f3..170f79bde94 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/plugin.xml +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/plugin.xml @@ -2,7 +2,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> @@ -31,7 +31,7 @@ + point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/FakeProfile.elementtypesconfigurations b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/FakeProfile.elementtypesconfigurations index f51cea9cf8c..f3c5eb3667b 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/FakeProfile.elementtypesconfigurations +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/FakeProfile.elementtypesconfigurations @@ -1,14 +1,14 @@ - - - - org.eclipse.papyrus.uml.Class - - FakeProfile::FakeSto - - - - - FakeProfile - - + + + + org.eclipse.papyrus.uml.Class + + FakeProfile::FakeSto + + + + + FakeProfile + + \ No newline at end of file diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/TestPalette.elementtypesconfigurations b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/TestPalette.elementtypesconfigurations index 5f37a4b7b52..66c806d300d 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/TestPalette.elementtypesconfigurations +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests/resources/TestPalette.elementtypesconfigurations @@ -1,14 +1,14 @@ - - - - org.eclipse.papyrus.uml.Class - - TestPaletteConfiguration::TPC_StoOnClass - - - - - TestPaletteConfiguration - - + + + + org.eclipse.papyrus.uml.Class + + TestPaletteConfiguration::TPC_StoOnClass + + + + + TestPaletteConfiguration + + \ No newline at end of file diff --git a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.tests/src/org/eclipse/papyrus/uml/service/types/tests/creation/CreatePureUMLElementTest.java b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.tests/src/org/eclipse/papyrus/uml/service/types/tests/creation/CreatePureUMLElementTest.java index 805dc6d747c..9326c7c5298 100644 --- a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.tests/src/org/eclipse/papyrus/uml/service/types/tests/creation/CreatePureUMLElementTest.java +++ b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.tests/src/org/eclipse/papyrus/uml/service/types/tests/creation/CreatePureUMLElementTest.java @@ -39,9 +39,9 @@ import org.eclipse.emf.transaction.TransactionalEditingDomain; import org.eclipse.gmf.runtime.common.core.command.ICommand; import org.eclipse.gmf.runtime.emf.type.core.IHintedType; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; import org.eclipse.papyrus.junit.utils.rules.HouseKeeper; diff --git a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/CreateElementTest.java b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/CreateElementTest.java index 2756a92791f..a69cc4af6c4 100644 --- a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/CreateElementTest.java +++ b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/CreateElementTest.java @@ -37,9 +37,9 @@ import org.eclipse.papyrus.infra.core.resource.ModelSet; import org.eclipse.papyrus.infra.core.resource.ModelUtils; import org.eclipse.papyrus.infra.core.resource.NotFoundException; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; diff --git a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/MoveElementTest.java b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/MoveElementTest.java index 524c455e1a4..c3e41379248 100644 --- a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/MoveElementTest.java +++ b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/MoveElementTest.java @@ -36,9 +36,9 @@ import org.eclipse.papyrus.infra.core.resource.ModelSet; import org.eclipse.papyrus.infra.core.resource.ModelUtils; import org.eclipse.papyrus.infra.core.resource.NotFoundException; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; diff --git a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/SetFeatureTest.java b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/SetFeatureTest.java index b74284b3f31..a1a567f732c 100644 --- a/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/SetFeatureTest.java +++ b/tests/junit/plugins/uml/org.eclipse.papyrus.uml.service.types.ui.tests/src/org/eclipse/papyrus/uml/service/types/ui/tests/creation/SetFeatureTest.java @@ -37,9 +37,9 @@ import org.eclipse.papyrus.infra.core.resource.ModelSet; import org.eclipse.papyrus.infra.core.resource.ModelUtils; import org.eclipse.papyrus.infra.core.resource.NotFoundException; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.elementtypesconfigurations.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils; diff --git a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch index 49279316ab9..26d851a5f34 100644 --- a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch +++ b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch @@ -33,8 +33,8 @@ - - + + -- cgit v1.2.3