Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:43:07 +0000
committerCamille Letavernier2014-08-21 13:50:25 +0000
commitdbc038b44bcbb890ae256d15eb09eb285512f020 (patch)
tree757e736583eea3ae352ad9ac91a81df7e59b79ff /plugins/infra/org.eclipse.papyrus.infra.extendedtypes
parentea48a20561464c3cbb7895d430583669a9f82fcc (diff)
downloadorg.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.gz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.xz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.zip
[Code style] Apply clean-up and formatter on Main plug-ins
Diffstat (limited to 'plugins/infra/org.eclipse.papyrus.infra.extendedtypes')
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ActionConfiguration.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeConfiguration.java15
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeConfiguration.java15
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeFactory.java88
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ConfigurationElement.java34
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeAdviceConfiguration.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeConfiguration.java30
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSet.java18
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesFactory.java22
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesPackage.java290
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/IconEntry.java22
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/MatcherConfiguration.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticActionConfiguration.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticTypeConfiguration.java12
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewActionConfiguration.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewTypeConfiguration.java18
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ActionConfigurationImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java44
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectViewTypeConfigurationImpl.java44
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ConfigurationElementImpl.java115
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeAdviceConfigurationImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeConfigurationImpl.java110
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedElementTypeSetImpl.java62
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesFactoryImpl.java36
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesPackageImpl.java188
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/IconEntryImpl.java61
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/MatcherConfigurationImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticActionConfigurationImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticTypeConfigurationImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewActionConfigurationImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewTypeConfigurationImpl.java51
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/HierarchyPermission.java36
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfiguration.java12
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationFactory.java13
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationPackage.java57
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/HierarchyPermissionImpl.java106
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationFactoryImpl.java33
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationImpl.java45
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationPackageImpl.java81
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationAdapterFactory.java64
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceFactoryImpl.java11
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceImpl.java13
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationSwitch.java63
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationXMLProcessor.java13
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRule.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/ComposedRuleConfiguration.java12
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantRuleConfiguration.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfiguration.java16
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationFactory.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationPackage.java75
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRule.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/AndRuleImpl.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/ComposedRuleConfigurationImpl.java40
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantRuleConfigurationImpl.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationFactoryImpl.java37
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationImpl.java71
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationPackageImpl.java82
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/OrRuleImpl.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationAdapterFactory.java114
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceFactoryImpl.java11
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceImpl.java13
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationSwitch.java147
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationXMLProcessor.java13
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesAdapterFactory.java63
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceFactoryImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceImpl.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java236
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesXMLProcessor.java16
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AbstractConfigurableElementTypeFactory.java25
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/Activator.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectConfigurationFactoryRegistry.java127
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeFactory.java40
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedContainerDescriptor.java20
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedEditHelperAdvice.java44
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementCreationValidator.java15
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementMatcher.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ConfigurableElementMatcherFactoryRegistry.java88
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ElementTypeSetUtils.java187
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java34
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedTypeRegistryService.java8
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionConfigurationModelCreation.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionContainerDescriptor.java8
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionCreationElementValidator.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionEditHelperAdvice.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IAspectTypeExtensionPoint.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcher.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcherFactory.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ICreationElementValidator.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IEditHelperAdviceConstants.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherConfigurationModelCreation.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherExtensionPoint.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeFactory.java24
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeSetExtensionPoint.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedTypeConfigurationExtensionPoint.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/advices/ExtendedTypesOwnerAdvice.java124
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/DeployExtendedTypeSetConfigurationHandler.java37
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/UndeployExtendedTypeSetConfigurationHandler.java37
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationContainerDescriptor.java34
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationModelCreation.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerEditHelperAdvice.java66
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerMatcher.java107
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleCreationElementValidator.java12
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleEditHelperAdvice.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleElementMatcher.java16
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantConfigurationModelCreation.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantContainerDescriptor.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantCreationElementValidator.java6
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantEditHelperAdvice.java7
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantElementMatcher.java8
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantRuleExtensionPoint.java12
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantElementTypeFactory.java15
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeContainerDescriptor.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeEditHelperAdvice.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleCreationElementValidator.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleEditHelperAdvice.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleElementMatcher.java18
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/RuleConfigurationFactoryRegistry.java156
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/preferences/ExtendedTypesPreferences.java90
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtendedElementTypeActionService.java69
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtentedElementTypeActionProviderConfiguration.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetAllExtendedElementTypeActionProvidersOperation.java10
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetExtendedElementTypeActionProviderOperation.java8
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/IExtendedElementTypeActionProvider.java28
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ProviderNotFoundException.java8
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/semantic/ISemanticTypeFactory.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/ExtendedHintedElementType.java13
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/IExtendedHintedElementType.java4
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/util/ElementTypeUtils.java124
128 files changed, 2586 insertions, 2175 deletions
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ActionConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ActionConfiguration.java
index 6e17452e0c9..ea1f27d9ae7 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ActionConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ActionConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -16,8 +16,8 @@ package org.eclipse.papyrus.infra.extendedtypes;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Action Configuration</b></em>'.
* <!-- end-user-doc -->
- *
- *
+ *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getActionConfiguration()
* @model abstract="true"
* @generated
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeConfiguration.java
index 0f41cfbe10c..f035f0e1bf6 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,14 +18,14 @@ import org.eclipse.emf.common.util.EList;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Aspect Semantic Type Configuration</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration#getActionConfiguration <em>Action Configuration</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getAspectSemanticTypeConfiguration()
* @model
* @generated
@@ -37,11 +37,10 @@ public interface AspectSemanticTypeConfiguration extends SemanticTypeConfigurati
* The list contents are of type {@link org.eclipse.papyrus.infra.extendedtypes.SemanticActionConfiguration}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Action Configuration</em>' containment reference list isn't clear, there really should be more of a description
- * here...
+ * If the meaning of the '<em>Action Configuration</em>' containment reference list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Action Configuration</em>' containment reference list.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getAspectSemanticTypeConfiguration_ActionConfiguration()
* @model containment="true"
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeConfiguration.java
index 3a8113d7300..6e507907d6e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,14 +18,14 @@ import org.eclipse.emf.common.util.EList;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Aspect View Type Configuration</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.AspectViewTypeConfiguration#getActionConfiguration <em>Action Configuration</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getAspectViewTypeConfiguration()
* @model
* @generated
@@ -37,11 +37,10 @@ public interface AspectViewTypeConfiguration extends ViewTypeConfiguration {
* The list contents are of type {@link org.eclipse.papyrus.infra.extendedtypes.ViewActionConfiguration}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Action Configuration</em>' containment reference list isn't clear, there really should be more of a description
- * here...
+ * If the meaning of the '<em>Action Configuration</em>' containment reference list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Action Configuration</em>' containment reference list.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getAspectViewTypeConfiguration_ActionConfiguration()
* @model containment="true"
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeFactory.java
index 07f25277ea4..e39930f241a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/AspectViewTypeFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -12,15 +12,11 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.extendedtypes;
-import java.util.ArrayList;
-import java.util.List;
-
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.NullElementMatcher;
import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
/**
@@ -39,21 +35,21 @@ public class AspectViewTypeFactory extends AbstractConfigurableElementTypeFactor
*/
@Override
protected IEditHelperAdvice createEditHelperAdvice(AspectViewTypeConfiguration configuration) {
-// List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
-// List<IEditHelperAdvice> actionAdvices = new ArrayList<IEditHelperAdvice>(semanticActionConfigurations.size());
-// for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
-// IEditHelperAdvice advice = AspectConfigurationFactoryRegistry.getInstance().createEditHelperAdvice(actionConfiguration);
-// if(advice!=null) {
-// actionAdvices.add(advice);
-//// } else {
-//// Activator.log.error("Impossible to create an advice for :" + actionConfiguration, null);
-// }
-// }
-// if(actionAdvices!=null && actionAdvices.size() > 0) {
-// return new ComposedEditHelperAdvice(actionAdvices);
-// }
+ // List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
+ // List<IEditHelperAdvice> actionAdvices = new ArrayList<IEditHelperAdvice>(semanticActionConfigurations.size());
+ // for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
+ // IEditHelperAdvice advice = AspectConfigurationFactoryRegistry.getInstance().createEditHelperAdvice(actionConfiguration);
+ // if(advice!=null) {
+ // actionAdvices.add(advice);
+ // // } else {
+ // // Activator.log.error("Impossible to create an advice for :" + actionConfiguration, null);
+ // }
+ // }
+ // if(actionAdvices!=null && actionAdvices.size() > 0) {
+ // return new ComposedEditHelperAdvice(actionAdvices);
+ // }
return new AbstractEditHelperAdvice() {
-
+
};
}
@@ -62,19 +58,19 @@ public class AspectViewTypeFactory extends AbstractConfigurableElementTypeFactor
*/
@Override
protected IContainerDescriptor createContainerDescriptor(AspectViewTypeConfiguration configuration) {
-// List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
-// List<IContainerDescriptor> containerDescriptors = new ArrayList<IContainerDescriptor>(semanticActionConfigurations.size());
-// for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
-// IContainerDescriptor containerDescriptor = AspectConfigurationFactoryRegistry.getInstance().createContainerDescriptor(actionConfiguration);
-// if(containerDescriptor!=null) {
-// containerDescriptors.add(containerDescriptor);
-//// } else {
-//// Activator.log.error("Impossible to create a container descriptor for :" + actionConfiguration, null);
-// }
-// }
-// if(containerDescriptors!=null && containerDescriptors.size() > 0) {
-// return new ComposedContainerDescriptor(containerDescriptors);
-// }
+ // List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
+ // List<IContainerDescriptor> containerDescriptors = new ArrayList<IContainerDescriptor>(semanticActionConfigurations.size());
+ // for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
+ // IContainerDescriptor containerDescriptor = AspectConfigurationFactoryRegistry.getInstance().createContainerDescriptor(actionConfiguration);
+ // if(containerDescriptor!=null) {
+ // containerDescriptors.add(containerDescriptor);
+ // // } else {
+ // // Activator.log.error("Impossible to create a container descriptor for :" + actionConfiguration, null);
+ // }
+ // }
+ // if(containerDescriptors!=null && containerDescriptors.size() > 0) {
+ // return new ComposedContainerDescriptor(containerDescriptors);
+ // }
return null;
}
@@ -83,22 +79,22 @@ public class AspectViewTypeFactory extends AbstractConfigurableElementTypeFactor
*/
@Override
public ICreationElementValidator createElementCreationValidator(AspectViewTypeConfiguration configuration) {
-// List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
-// List<ICreationElementValidator> actionValidators = new ArrayList<ICreationElementValidator>(semanticActionConfigurations.size());
-// for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
-// ICreationElementValidator validator = AspectConfigurationFactoryRegistry.getInstance().createCreationElementValidator(actionConfiguration);
-// if(validator!=null) {
-// actionValidators.add(validator);
-//// } else {
-//// Activator.log.error("Impossible to create a creation element validator for :" + actionConfiguration, null);
-// }
-// }
-// if(actionValidators!=null && actionValidators.size() > 0) {
-// return new ComposedElementCreationValidator(actionValidators);
-// }
+ // List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
+ // List<ICreationElementValidator> actionValidators = new ArrayList<ICreationElementValidator>(semanticActionConfigurations.size());
+ // for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
+ // ICreationElementValidator validator = AspectConfigurationFactoryRegistry.getInstance().createCreationElementValidator(actionConfiguration);
+ // if(validator!=null) {
+ // actionValidators.add(validator);
+ // // } else {
+ // // Activator.log.error("Impossible to create a creation element validator for :" + actionConfiguration, null);
+ // }
+ // }
+ // if(actionValidators!=null && actionValidators.size() > 0) {
+ // return new ComposedElementCreationValidator(actionValidators);
+ // }
return null;
}
-
+
/**
* {@inheritDoc}
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ConfigurationElement.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ConfigurationElement.java
index dbd7c83abe9..d8330f55224 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ConfigurationElement.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ConfigurationElement.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,7 +18,7 @@ import org.eclipse.emf.ecore.EObject;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Configuration Element</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
@@ -28,7 +28,7 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getIconEntry <em>Icon Entry</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getConfigurationElement()
* @model abstract="true"
* @generated
@@ -42,7 +42,7 @@ public interface ConfigurationElement extends EObject {
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getConfigurationElement_Name()
@@ -55,9 +55,9 @@ public interface ConfigurationElement extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Name</em>' attribute.
+ * the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
@@ -70,7 +70,7 @@ public interface ConfigurationElement extends EObject {
* If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getConfigurationElement_Description()
@@ -83,9 +83,9 @@ public interface ConfigurationElement extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Description</em>' attribute.
+ * the new value of the '<em>Description</em>' attribute.
* @see #getDescription()
* @generated
*/
@@ -98,7 +98,7 @@ public interface ConfigurationElement extends EObject {
* If the meaning of the '<em>Identifier</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Identifier</em>' attribute.
* @see #setIdentifier(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getConfigurationElement_Identifier()
@@ -111,9 +111,9 @@ public interface ConfigurationElement extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getIdentifier <em>Identifier</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Identifier</em>' attribute.
+ * the new value of the '<em>Identifier</em>' attribute.
* @see #getIdentifier()
* @generated
*/
@@ -126,7 +126,7 @@ public interface ConfigurationElement extends EObject {
* If the meaning of the '<em>Icon Entry</em>' containment reference isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Icon Entry</em>' containment reference.
* @see #setIconEntry(IconEntry)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getConfigurationElement_IconEntry()
@@ -140,9 +140,9 @@ public interface ConfigurationElement extends EObject {
* reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Icon Entry</em>' containment reference.
+ * the new value of the '<em>Icon Entry</em>' containment reference.
* @see #getIconEntry()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeAdviceConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeAdviceConfiguration.java
index 9c7a5989f54..c2c6fc298cc 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeAdviceConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeAdviceConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -16,8 +16,8 @@ package org.eclipse.papyrus.infra.extendedtypes;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Element Type Advice Configuration</b></em>'.
* <!-- end-user-doc -->
- *
- *
+ *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getElementTypeAdviceConfiguration()
* @model abstract="true"
* @generated
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeConfiguration.java
index 4237c52ac37..da4e0a1cb04 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ElementTypeConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,7 +18,7 @@ import org.eclipse.emf.common.util.EList;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Element Type Configuration</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
@@ -28,7 +28,7 @@ import org.eclipse.emf.common.util.EList;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getMatcherConfiguration <em>Matcher Configuration</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getElementTypeConfiguration()
* @model abstract="true"
* @generated
@@ -43,7 +43,7 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* If the meaning of the '<em>Hint</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Hint</em>' attribute.
* @see #setHint(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getElementTypeConfiguration_Hint()
@@ -56,9 +56,9 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getHint <em>Hint</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Hint</em>' attribute.
+ * the new value of the '<em>Hint</em>' attribute.
* @see #getHint()
* @generated
*/
@@ -72,7 +72,7 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* If the meaning of the '<em>Kind Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Kind Name</em>' attribute.
* @see #setKindName(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getElementTypeConfiguration_KindName()
@@ -85,9 +85,9 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getKindName <em>Kind Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Kind Name</em>' attribute.
+ * the new value of the '<em>Kind Name</em>' attribute.
* @see #getKindName()
* @generated
*/
@@ -101,7 +101,7 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* If the meaning of the '<em>Specialized Types ID</em>' attribute list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Specialized Types ID</em>' attribute list.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getElementTypeConfiguration_SpecializedTypesID()
* @model required="true"
@@ -116,7 +116,7 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* If the meaning of the '<em>Matcher Configuration</em>' containment reference isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Matcher Configuration</em>' containment reference.
* @see #setMatcherConfiguration(MatcherConfiguration)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getElementTypeConfiguration_MatcherConfiguration()
@@ -130,9 +130,9 @@ public interface ElementTypeConfiguration extends ConfigurationElement {
* <em>Matcher Configuration</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Matcher Configuration</em>' containment reference.
+ * the new value of the '<em>Matcher Configuration</em>' containment reference.
* @see #getMatcherConfiguration()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSet.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSet.java
index b66234055e4..2d818bc0539 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSet.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSet.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,7 +18,7 @@ import org.eclipse.emf.common.util.EList;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Extended Element Type Set</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
@@ -26,7 +26,7 @@ import org.eclipse.emf.common.util.EList;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet#isExtensible <em>Extensible</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getExtendedElementTypeSet()
* @model
* @generated
@@ -41,7 +41,7 @@ public interface ExtendedElementTypeSet extends ConfigurationElement {
* If the meaning of the '<em>Element Type</em>' containment reference list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Element Type</em>' containment reference list.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getExtendedElementTypeSet_ElementType()
* @model containment="true" required="true"
@@ -56,7 +56,7 @@ public interface ExtendedElementTypeSet extends ConfigurationElement {
* If the meaning of the '<em>Extensible</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Extensible</em>' attribute.
* @see #setExtensible(boolean)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getExtendedElementTypeSet_Extensible()
@@ -69,9 +69,9 @@ public interface ExtendedElementTypeSet extends ConfigurationElement {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet#isExtensible <em>Extensible</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Extensible</em>' attribute.
+ * the new value of the '<em>Extensible</em>' attribute.
* @see #isExtensible()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesFactory.java
index 75ab94fc226..c66e9c81bfe 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesFactory.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -19,7 +19,7 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage
* @generated
*/
@@ -29,7 +29,7 @@ public interface ExtendedtypesFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
ExtendedtypesFactory eINSTANCE = org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesFactoryImpl.init();
@@ -38,7 +38,7 @@ public interface ExtendedtypesFactory extends EFactory {
* Returns a new object of class '<em>Extended Element Type Set</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return a new object of class '<em>Extended Element Type Set</em>'.
* @generated
*/
@@ -48,7 +48,7 @@ public interface ExtendedtypesFactory extends EFactory {
* Returns a new object of class '<em>Icon Entry</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return a new object of class '<em>Icon Entry</em>'.
* @generated
*/
@@ -58,7 +58,7 @@ public interface ExtendedtypesFactory extends EFactory {
* Returns a new object of class '<em>Aspect Semantic Type Configuration</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return a new object of class '<em>Aspect Semantic Type Configuration</em>'.
* @generated
*/
@@ -68,7 +68,7 @@ public interface ExtendedtypesFactory extends EFactory {
* Returns a new object of class '<em>Aspect View Type Configuration</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return a new object of class '<em>Aspect View Type Configuration</em>'.
* @generated
*/
@@ -78,9 +78,9 @@ public interface ExtendedtypesFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the package supported by this factory.
* @generated
*/
ExtendedtypesPackage getExtendedtypesPackage();
-} //ExtendedtypesFactory
+} // ExtendedtypesFactory
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesPackage.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesPackage.java
index fc51ee5c429..866540f3f3a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesPackage.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ExtendedtypesPackage.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -28,7 +28,7 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesFactory
* @model kind="package"
* @generated
@@ -39,7 +39,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
String eNAME = "extendedtypes"; //$NON-NLS-1$
@@ -48,7 +48,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
String eNS_URI = "http://www.eclipse.org/papyrus/infra/extendedtypes/1.0"; //$NON-NLS-1$
@@ -57,7 +57,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
String eNS_PREFIX = "extendedtypes"; //$NON-NLS-1$
@@ -66,7 +66,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
ExtendedtypesPackage eINSTANCE = org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl.init();
@@ -76,7 +76,7 @@ public interface ExtendedtypesPackage extends EPackage {
* class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ConfigurationElementImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getConfigurationElement()
* @generated
@@ -87,7 +87,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -97,7 +97,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -107,7 +107,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -117,7 +117,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -127,7 +127,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Configuration Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -138,7 +138,7 @@ public interface ExtendedtypesPackage extends EPackage {
* class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedElementTypeSetImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getExtendedElementTypeSet()
* @generated
@@ -149,7 +149,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -159,7 +159,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -169,7 +169,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -179,7 +179,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -189,7 +189,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Element Type</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -199,7 +199,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Extensible</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -209,7 +209,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Extended Element Type Set</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -220,7 +220,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Element Type Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ElementTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getElementTypeConfiguration()
* @generated
@@ -231,7 +231,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -241,7 +241,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -251,7 +251,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -261,7 +261,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -271,7 +271,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Hint</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -281,7 +281,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Kind Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -291,7 +291,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Types ID</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -301,7 +301,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -311,7 +311,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Element Type Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -321,7 +321,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.impl.IconEntryImpl <em>Icon Entry</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.IconEntryImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getIconEntry()
* @generated
@@ -332,7 +332,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Path</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -342,7 +342,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Bundle Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -352,7 +352,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Icon Entry</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -363,7 +363,7 @@ public interface ExtendedtypesPackage extends EPackage {
* class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.MatcherConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getMatcherConfiguration()
* @generated
@@ -374,7 +374,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Matcher Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -384,7 +384,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.impl.ActionConfigurationImpl <em>Action Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ActionConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getActionConfiguration()
* @generated
@@ -395,7 +395,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -405,7 +405,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -415,7 +415,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -425,7 +425,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -435,18 +435,17 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Action Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
int ACTION_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_ELEMENT_FEATURE_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.impl.ViewActionConfigurationImpl <em>View Action Configuration</em>}
- * ' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.impl.ViewActionConfigurationImpl <em>View Action Configuration</em>} ' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ViewActionConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getViewActionConfiguration()
* @generated
@@ -457,7 +456,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -467,7 +466,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -477,7 +476,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -487,7 +486,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -497,7 +496,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>View Action Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -508,7 +507,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Semantic Action Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.SemanticActionConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getSemanticActionConfiguration()
* @generated
@@ -519,7 +518,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -529,7 +528,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -539,7 +538,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -549,7 +548,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -559,7 +558,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Semantic Action Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -570,7 +569,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Semantic Type Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.SemanticTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getSemanticTypeConfiguration()
* @generated
@@ -581,7 +580,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -591,7 +590,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -601,7 +600,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -611,7 +610,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -621,7 +620,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Hint</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -631,7 +630,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Kind Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -641,7 +640,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Types ID</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -651,7 +650,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -661,7 +660,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Semantic Type Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -672,7 +671,7 @@ public interface ExtendedtypesPackage extends EPackage {
* class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ViewTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getViewTypeConfiguration()
* @generated
@@ -683,7 +682,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -693,7 +692,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -703,7 +702,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -713,7 +712,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -723,7 +722,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Hint</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -733,7 +732,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Kind Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -743,7 +742,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Types ID</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -753,7 +752,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -763,7 +762,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Diagram Type ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -773,7 +772,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>View Type Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -784,7 +783,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Element Type Advice Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ElementTypeAdviceConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getElementTypeAdviceConfiguration()
* @generated
@@ -795,7 +794,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -805,7 +804,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -815,7 +814,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -825,7 +824,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -835,7 +834,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Element Type Advice Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -846,7 +845,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Aspect Semantic Type Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.AspectSemanticTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getAspectSemanticTypeConfiguration()
* @generated
@@ -857,7 +856,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -867,7 +866,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -877,7 +876,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -887,7 +886,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -897,7 +896,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Hint</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -907,7 +906,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Kind Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -917,7 +916,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Types ID</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -927,7 +926,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -937,7 +936,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Action Configuration</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -947,7 +946,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Aspect Semantic Type Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -958,7 +957,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Aspect View Type Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.impl.AspectViewTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedtypesPackageImpl#getAspectViewTypeConfiguration()
* @generated
@@ -969,7 +968,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -979,7 +978,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -989,7 +988,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -999,7 +998,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1009,7 +1008,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Hint</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1019,7 +1018,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Kind Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1029,7 +1028,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Types ID</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1039,7 +1038,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1049,7 +1048,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Specialized Diagram Type ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1059,7 +1058,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The feature id for the '<em><b>Action Configuration</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1069,7 +1068,7 @@ public interface ExtendedtypesPackage extends EPackage {
* The number of structural features of the '<em>Aspect View Type Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
* @ordered
*/
@@ -1079,7 +1078,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet <em>Extended Element Type Set</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Extended Element Type Set</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet
* @generated
@@ -1087,11 +1086,10 @@ public interface ExtendedtypesPackage extends EPackage {
EClass getExtendedElementTypeSet();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet#getElementType <em>Element Type</em>}'.
+ * Returns the meta object for the containment reference list ' {@link org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet#getElementType <em>Element Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the containment reference list '<em>Element Type</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet#getElementType()
* @see #getExtendedElementTypeSet()
@@ -1104,7 +1102,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Extensible</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Extensible</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet#isExtensible()
* @see #getExtendedElementTypeSet()
@@ -1113,11 +1111,10 @@ public interface ExtendedtypesPackage extends EPackage {
EAttribute getExtendedElementTypeSet_Extensible();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration <em>Element Type Configuration</em>}
- * '.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration <em>Element Type Configuration</em>} '.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Element Type Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration
* @generated
@@ -1128,7 +1125,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getHint <em>Hint</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Hint</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getHint()
* @see #getElementTypeConfiguration()
@@ -1141,7 +1138,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Kind Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Kind Name</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getKindName()
* @see #getElementTypeConfiguration()
@@ -1154,7 +1151,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Specialized Types ID</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute list '<em>Specialized Types ID</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getSpecializedTypesID()
* @see #getElementTypeConfiguration()
@@ -1163,11 +1160,10 @@ public interface ExtendedtypesPackage extends EPackage {
EAttribute getElementTypeConfiguration_SpecializedTypesID();
/**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getMatcherConfiguration <em>Matcher Configuration</em>}'.
+ * Returns the meta object for the containment reference ' {@link org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getMatcherConfiguration <em>Matcher Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the containment reference '<em>Matcher Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration#getMatcherConfiguration()
* @see #getElementTypeConfiguration()
@@ -1179,7 +1175,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.IconEntry <em>Icon Entry</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Icon Entry</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.IconEntry
* @generated
@@ -1190,7 +1186,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.IconEntry#getIconPath <em>Icon Path</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Icon Path</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.IconEntry#getIconPath()
* @see #getIconEntry()
@@ -1202,7 +1198,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.IconEntry#getBundleId <em>Bundle Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Bundle Id</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.IconEntry#getBundleId()
* @see #getIconEntry()
@@ -1214,7 +1210,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement <em>Configuration Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Configuration Element</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement
* @generated
@@ -1225,7 +1221,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getName()
* @see #getConfigurationElement()
@@ -1238,7 +1234,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Description</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getDescription()
* @see #getConfigurationElement()
@@ -1251,7 +1247,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Identifier</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Identifier</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getIdentifier()
* @see #getConfigurationElement()
@@ -1264,7 +1260,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Icon Entry</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the containment reference '<em>Icon Entry</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement#getIconEntry()
* @see #getConfigurationElement()
@@ -1276,7 +1272,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.MatcherConfiguration <em>Matcher Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Matcher Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.MatcherConfiguration
* @generated
@@ -1287,7 +1283,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ActionConfiguration <em>Action Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Action Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ActionConfiguration
* @generated
@@ -1298,7 +1294,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ViewActionConfiguration <em>View Action Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>View Action Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ViewActionConfiguration
* @generated
@@ -1310,7 +1306,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Semantic Action Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Semantic Action Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.SemanticActionConfiguration
* @generated
@@ -1322,7 +1318,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Semantic Type Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Semantic Type Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.SemanticTypeConfiguration
* @generated
@@ -1333,7 +1329,7 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration <em>View Type Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>View Type Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration
* @generated
@@ -1345,7 +1341,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Specialized Diagram Type ID</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the attribute '<em>Specialized Diagram Type ID</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration#getSpecializedDiagramTypeID()
* @see #getViewTypeConfiguration()
@@ -1358,7 +1354,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Element Type Advice Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Element Type Advice Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeAdviceConfiguration
* @generated
@@ -1370,7 +1366,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Aspect Semantic Type Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Aspect Semantic Type Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration
* @generated
@@ -1378,11 +1374,10 @@ public interface ExtendedtypesPackage extends EPackage {
EClass getAspectSemanticTypeConfiguration();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration#getActionConfiguration <em>Action Configuration</em>}'.
+ * Returns the meta object for the containment reference list ' {@link org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration#getActionConfiguration <em>Action Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the containment reference list '<em>Action Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration#getActionConfiguration()
* @see #getAspectSemanticTypeConfiguration()
@@ -1395,7 +1390,7 @@ public interface ExtendedtypesPackage extends EPackage {
* <em>Aspect View Type Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for class '<em>Aspect View Type Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.AspectViewTypeConfiguration
* @generated
@@ -1403,11 +1398,10 @@ public interface ExtendedtypesPackage extends EPackage {
EClass getAspectViewTypeConfiguration();
/**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.infra.extendedtypes.AspectViewTypeConfiguration#getActionConfiguration <em>Action Configuration</em>}'.
+ * Returns the meta object for the containment reference list ' {@link org.eclipse.papyrus.infra.extendedtypes.AspectViewTypeConfiguration#getActionConfiguration <em>Action Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the meta object for the containment reference list '<em>Action Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.AspectViewTypeConfiguration#getActionConfiguration()
* @see #getAspectViewTypeConfiguration()
@@ -1419,9 +1413,9 @@ public interface ExtendedtypesPackage extends EPackage {
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the factory that creates the instances of the model.
* @generated
*/
ExtendedtypesFactory getExtendedtypesFactory();
-} //ExtendedtypesPackage
+} // ExtendedtypesPackage
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/IconEntry.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/IconEntry.java
index 8fcd09daa10..28442463c77 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/IconEntry.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/IconEntry.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,7 +18,7 @@ import org.eclipse.emf.ecore.EObject;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Icon Entry</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
@@ -26,7 +26,7 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.IconEntry#getBundleId <em>Bundle Id</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getIconEntry()
* @model
* @generated
@@ -40,7 +40,7 @@ public interface IconEntry extends EObject {
* If the meaning of the '<em>Icon Path</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Icon Path</em>' attribute.
* @see #setIconPath(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getIconEntry_IconPath()
@@ -53,9 +53,9 @@ public interface IconEntry extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.IconEntry#getIconPath <em>Icon Path</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Icon Path</em>' attribute.
+ * the new value of the '<em>Icon Path</em>' attribute.
* @see #getIconPath()
* @generated
*/
@@ -68,7 +68,7 @@ public interface IconEntry extends EObject {
* If the meaning of the '<em>Bundle Id</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Bundle Id</em>' attribute.
* @see #setBundleId(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getIconEntry_BundleId()
@@ -81,9 +81,9 @@ public interface IconEntry extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.IconEntry#getBundleId <em>Bundle Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Bundle Id</em>' attribute.
+ * the new value of the '<em>Bundle Id</em>' attribute.
* @see #getBundleId()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/MatcherConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/MatcherConfiguration.java
index 12554c63538..493313bab40 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/MatcherConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/MatcherConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -18,8 +18,8 @@ import org.eclipse.emf.ecore.EObject;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Matcher Configuration</b></em>'.
* <!-- end-user-doc -->
- *
- *
+ *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getMatcherConfiguration()
* @model abstract="true"
* @generated
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticActionConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticActionConfiguration.java
index 9b56f6e8d23..db163c3ad0f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticActionConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticActionConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -16,8 +16,8 @@ package org.eclipse.papyrus.infra.extendedtypes;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Semantic Action Configuration</b></em>'.
* <!-- end-user-doc -->
- *
- *
+ *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getSemanticActionConfiguration()
* @model abstract="true"
* @generated
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticTypeConfiguration.java
index 830a05a7cfb..9797c801350 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticTypeConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/SemanticTypeConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -16,12 +16,12 @@ package org.eclipse.papyrus.infra.extendedtypes;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Semantic Type Configuration</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <!-- begin-model-doc -->
* Configuration specific to element types registered to manipulate Domain Specific elements.
* <!-- end-model-doc -->
- *
- *
+ *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getSemanticTypeConfiguration()
* @model abstract="true"
* @generated
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewActionConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewActionConfiguration.java
index 98ff9fcdc46..2b25c733fcc 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewActionConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewActionConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -16,8 +16,8 @@ package org.eclipse.papyrus.infra.extendedtypes;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>View Action Configuration</b></em>'.
* <!-- end-user-doc -->
- *
- *
+ *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getViewActionConfiguration()
* @model abstract="true"
* @generated
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewTypeConfiguration.java
index 39a1cfa24e5..7c53efcd172 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewTypeConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/ViewTypeConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -16,18 +16,18 @@ package org.eclipse.papyrus.infra.extendedtypes;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>View Type Configuration</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <!-- begin-model-doc -->
* Configuration specific to element types registered to manipulate graphical elements in GMF diagrams
* <!-- end-model-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration#getSpecializedDiagramTypeID <em>Specialized Diagram Type ID</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getViewTypeConfiguration()
* @model abstract="true"
* @generated
@@ -41,7 +41,7 @@ public interface ViewTypeConfiguration extends ElementTypeConfiguration {
* If the meaning of the '<em>Specialized Diagram Type ID</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
+ *
* @return the value of the '<em>Specialized Diagram Type ID</em>' attribute.
* @see #setSpecializedDiagramTypeID(String)
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#getViewTypeConfiguration_SpecializedDiagramTypeID()
@@ -55,9 +55,9 @@ public interface ViewTypeConfiguration extends ElementTypeConfiguration {
* <em>Specialized Diagram Type ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param value
- * the new value of the '<em>Specialized Diagram Type ID</em>' attribute.
+ * the new value of the '<em>Specialized Diagram Type ID</em>' attribute.
* @see #getSpecializedDiagramTypeID()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ActionConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ActionConfigurationImpl.java
index 96a9541ba05..ad1d318c6f6 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ActionConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ActionConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
* <!-- end-user-doc -->
* <p>
* </p>
- *
+ *
* @generated
*/
public abstract class ActionConfigurationImpl extends ConfigurationElementImpl implements ActionConfiguration {
@@ -31,7 +31,7 @@ public abstract class ActionConfigurationImpl extends ConfigurationElementImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ActionConfigurationImpl() {
@@ -41,11 +41,11 @@ public abstract class ActionConfigurationImpl extends ConfigurationElementImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtendedtypesPackage.eINSTANCE.getActionConfiguration();
}
-} //ActionConfigurationImpl
+} // ActionConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java
index a6186d939d3..175fa2274ad 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectSemanticTypeConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -38,7 +38,7 @@ import org.eclipse.papyrus.infra.extendedtypes.SemanticActionConfiguration;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.AspectSemanticTypeConfigurationImpl#getActionConfiguration <em>Action Configuration</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurationImpl implements AspectSemanticTypeConfiguration {
@@ -47,7 +47,7 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
* The cached value of the '{@link #getActionConfiguration() <em>Action Configuration</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getActionConfiguration()
* @generated
* @ordered
@@ -57,7 +57,7 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected AspectSemanticTypeConfigurationImpl() {
@@ -67,7 +67,7 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -78,11 +78,11 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EList<SemanticActionConfiguration> getActionConfiguration() {
- if(actionConfiguration == null) {
+ if (actionConfiguration == null) {
actionConfiguration = new EObjectContainmentEList<SemanticActionConfiguration>(SemanticActionConfiguration.class, this, ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION);
}
return actionConfiguration;
@@ -91,14 +91,14 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
- return ((InternalEList<?>)getActionConfiguration()).basicRemove(otherEnd, msgs);
+ return ((InternalEList<?>) getActionConfiguration()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -106,12 +106,12 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
return getActionConfiguration();
}
@@ -121,16 +121,16 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
getActionConfiguration().clear();
- getActionConfiguration().addAll((Collection<? extends SemanticActionConfiguration>)newValue);
+ getActionConfiguration().addAll((Collection<? extends SemanticActionConfiguration>) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -139,12 +139,12 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
getActionConfiguration().clear();
return;
@@ -155,15 +155,15 @@ public class AspectSemanticTypeConfigurationImpl extends SemanticTypeConfigurati
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
return actionConfiguration != null && !actionConfiguration.isEmpty();
}
return super.eIsSet(featureID);
}
-} //AspectSemanticTypeConfigurationImpl
+} // AspectSemanticTypeConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectViewTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectViewTypeConfigurationImpl.java
index 7fdfcc0d9f8..6f80cfef791 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectViewTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/AspectViewTypeConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -38,7 +38,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ViewActionConfiguration;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.AspectViewTypeConfigurationImpl#getActionConfiguration <em>Action Configuration</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl implements AspectViewTypeConfiguration {
@@ -47,7 +47,7 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
* The cached value of the '{@link #getActionConfiguration() <em>Action Configuration</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getActionConfiguration()
* @generated
* @ordered
@@ -57,7 +57,7 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected AspectViewTypeConfigurationImpl() {
@@ -67,7 +67,7 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -78,11 +78,11 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EList<ViewActionConfiguration> getActionConfiguration() {
- if(actionConfiguration == null) {
+ if (actionConfiguration == null) {
actionConfiguration = new EObjectContainmentEList<ViewActionConfiguration>(ViewActionConfiguration.class, this, ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION__ACTION_CONFIGURATION);
}
return actionConfiguration;
@@ -91,14 +91,14 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
- return ((InternalEList<?>)getActionConfiguration()).basicRemove(otherEnd, msgs);
+ return ((InternalEList<?>) getActionConfiguration()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -106,12 +106,12 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
return getActionConfiguration();
}
@@ -121,16 +121,16 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
getActionConfiguration().clear();
- getActionConfiguration().addAll((Collection<? extends ViewActionConfiguration>)newValue);
+ getActionConfiguration().addAll((Collection<? extends ViewActionConfiguration>) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -139,12 +139,12 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
getActionConfiguration().clear();
return;
@@ -155,15 +155,15 @@ public class AspectViewTypeConfigurationImpl extends ViewTypeConfigurationImpl i
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION__ACTION_CONFIGURATION:
return actionConfiguration != null && !actionConfiguration.isEmpty();
}
return super.eIsSet(featureID);
}
-} //AspectViewTypeConfigurationImpl
+} // AspectViewTypeConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ConfigurationElementImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ConfigurationElementImpl.java
index eabcb6cd4a5..f37df533862 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ConfigurationElementImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ConfigurationElementImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -38,7 +38,7 @@ import org.eclipse.papyrus.infra.extendedtypes.IconEntry;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.ConfigurationElementImpl#getIconEntry <em>Icon Entry</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public abstract class ConfigurationElementImpl extends EObjectImpl implements ConfigurationElement {
@@ -47,7 +47,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getName()
* @generated
* @ordered
@@ -58,7 +58,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getName()
* @generated
* @ordered
@@ -69,7 +69,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getDescription()
* @generated
* @ordered
@@ -80,7 +80,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getDescription()
* @generated
* @ordered
@@ -91,7 +91,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The default value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getIdentifier()
* @generated
* @ordered
@@ -102,7 +102,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getIdentifier()
* @generated
* @ordered
@@ -113,7 +113,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
* The cached value of the '{@link #getIconEntry() <em>Icon Entry</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getIconEntry()
* @generated
* @ordered
@@ -123,7 +123,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ConfigurationElementImpl() {
@@ -133,7 +133,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -144,7 +144,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getName() {
@@ -154,20 +154,21 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.CONFIGURATION_ELEMENT__NAME, oldName, name));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getDescription() {
@@ -177,20 +178,21 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.CONFIGURATION_ELEMENT__DESCRIPTION, oldDescription, description));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getIdentifier() {
@@ -200,20 +202,21 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setIdentifier(String newIdentifier) {
String oldIdentifier = identifier;
identifier = newIdentifier;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.CONFIGURATION_ELEMENT__IDENTIFIER, oldIdentifier, identifier));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IconEntry getIconEntry() {
@@ -223,18 +226,19 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public NotificationChain basicSetIconEntry(IconEntry newIconEntry, NotificationChain msgs) {
IconEntry oldIconEntry = iconEntry;
iconEntry = newIconEntry;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY, oldIconEntry, newIconEntry);
- if(msgs == null)
+ if (msgs == null) {
msgs = notification;
- else
+ } else {
msgs.add(notification);
+ }
}
return msgs;
}
@@ -242,32 +246,36 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setIconEntry(IconEntry newIconEntry) {
- if(newIconEntry != iconEntry) {
+ if (newIconEntry != iconEntry) {
NotificationChain msgs = null;
- if(iconEntry != null)
- msgs = ((InternalEObject)iconEntry).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY, null, msgs);
- if(newIconEntry != null)
- msgs = ((InternalEObject)newIconEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY, null, msgs);
+ if (iconEntry != null) {
+ msgs = ((InternalEObject) iconEntry).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY, null, msgs);
+ }
+ if (newIconEntry != null) {
+ msgs = ((InternalEObject) newIconEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY, null, msgs);
+ }
msgs = basicSetIconEntry(newIconEntry, msgs);
- if(msgs != null)
+ if (msgs != null) {
msgs.dispatch();
- } else if(eNotificationRequired())
+ }
+ } else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY, newIconEntry, newIconEntry));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY:
return basicSetIconEntry(null, msgs);
}
@@ -277,12 +285,12 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__NAME:
return getName();
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
@@ -298,23 +306,23 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__NAME:
- setName((String)newValue);
+ setName((String) newValue);
return;
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
- setDescription((String)newValue);
+ setDescription((String) newValue);
return;
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__IDENTIFIER:
- setIdentifier((String)newValue);
+ setIdentifier((String) newValue);
return;
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY:
- setIconEntry((IconEntry)newValue);
+ setIconEntry((IconEntry) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -323,12 +331,12 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__NAME:
setName(NAME_EDEFAULT);
return;
@@ -339,7 +347,7 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
setIdentifier(IDENTIFIER_EDEFAULT);
return;
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__ICON_ENTRY:
- setIconEntry((IconEntry)null);
+ setIconEntry((IconEntry) null);
return;
}
super.eUnset(featureID);
@@ -348,12 +356,12 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case ExtendedtypesPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
@@ -369,13 +377,14 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
+ if (eIsProxy()) {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: "); //$NON-NLS-1$
result.append(name);
@@ -386,4 +395,4 @@ public abstract class ConfigurationElementImpl extends EObjectImpl implements Co
result.append(')');
return result.toString();
}
-} //ConfigurationElementImpl
+} // ConfigurationElementImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeAdviceConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeAdviceConfigurationImpl.java
index 0a0ef7cdd6b..9355254460f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeAdviceConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeAdviceConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
* <!-- end-user-doc -->
* <p>
* </p>
- *
+ *
* @generated
*/
public abstract class ElementTypeAdviceConfigurationImpl extends ConfigurationElementImpl implements ElementTypeAdviceConfiguration {
@@ -31,7 +31,7 @@ public abstract class ElementTypeAdviceConfigurationImpl extends ConfigurationEl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ElementTypeAdviceConfigurationImpl() {
@@ -41,11 +41,11 @@ public abstract class ElementTypeAdviceConfigurationImpl extends ConfigurationEl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtendedtypesPackage.eINSTANCE.getElementTypeAdviceConfiguration();
}
-} //ElementTypeAdviceConfigurationImpl
+} // ElementTypeAdviceConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeConfigurationImpl.java
index 8ac7477ea32..a95549844fd 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ElementTypeConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -43,7 +43,7 @@ import org.eclipse.papyrus.infra.extendedtypes.MatcherConfiguration;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.ElementTypeConfigurationImpl#getMatcherConfiguration <em>Matcher Configuration</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public abstract class ElementTypeConfigurationImpl extends ConfigurationElementImpl implements ElementTypeConfiguration {
@@ -52,7 +52,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
* The default value of the '{@link #getHint() <em>Hint</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getHint()
* @generated
* @ordered
@@ -63,7 +63,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
* The cached value of the '{@link #getHint() <em>Hint</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getHint()
* @generated
* @ordered
@@ -74,7 +74,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
* The default value of the '{@link #getKindName() <em>Kind Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getKindName()
* @generated
* @ordered
@@ -85,7 +85,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
* The cached value of the '{@link #getKindName() <em>Kind Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getKindName()
* @generated
* @ordered
@@ -96,7 +96,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
* The cached value of the '{@link #getSpecializedTypesID() <em>Specialized Types ID</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getSpecializedTypesID()
* @generated
* @ordered
@@ -107,7 +107,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
* The cached value of the '{@link #getMatcherConfiguration() <em>Matcher Configuration</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getMatcherConfiguration()
* @generated
* @ordered
@@ -117,7 +117,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ElementTypeConfigurationImpl() {
@@ -127,7 +127,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -138,7 +138,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getHint() {
@@ -148,20 +148,21 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setHint(String newHint) {
String oldHint = hint;
hint = newHint;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__HINT, oldHint, hint));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getKindName() {
@@ -171,24 +172,25 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setKindName(String newKindName) {
String oldKindName = kindName;
kindName = newKindName;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__KIND_NAME, oldKindName, kindName));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EList<String> getSpecializedTypesID() {
- if(specializedTypesID == null) {
+ if (specializedTypesID == null) {
specializedTypesID = new EDataTypeUniqueEList<String>(String.class, this, ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID);
}
return specializedTypesID;
@@ -197,7 +199,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public MatcherConfiguration getMatcherConfiguration() {
@@ -207,18 +209,19 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public NotificationChain basicSetMatcherConfiguration(MatcherConfiguration newMatcherConfiguration, NotificationChain msgs) {
MatcherConfiguration oldMatcherConfiguration = matcherConfiguration;
matcherConfiguration = newMatcherConfiguration;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, oldMatcherConfiguration, newMatcherConfiguration);
- if(msgs == null)
+ if (msgs == null) {
msgs = notification;
- else
+ } else {
msgs.add(notification);
+ }
}
return msgs;
}
@@ -226,32 +229,36 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setMatcherConfiguration(MatcherConfiguration newMatcherConfiguration) {
- if(newMatcherConfiguration != matcherConfiguration) {
+ if (newMatcherConfiguration != matcherConfiguration) {
NotificationChain msgs = null;
- if(matcherConfiguration != null)
- msgs = ((InternalEObject)matcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs);
- if(newMatcherConfiguration != null)
- msgs = ((InternalEObject)newMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs);
+ if (matcherConfiguration != null) {
+ msgs = ((InternalEObject) matcherConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs);
+ }
+ if (newMatcherConfiguration != null) {
+ msgs = ((InternalEObject) newMatcherConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, null, msgs);
+ }
msgs = basicSetMatcherConfiguration(newMatcherConfiguration, msgs);
- if(msgs != null)
+ if (msgs != null) {
msgs.dispatch();
- } else if(eNotificationRequired())
+ }
+ } else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION, newMatcherConfiguration, newMatcherConfiguration));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION:
return basicSetMatcherConfiguration(null, msgs);
}
@@ -261,12 +268,12 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__HINT:
return getHint();
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__KIND_NAME:
@@ -282,25 +289,25 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__HINT:
- setHint((String)newValue);
+ setHint((String) newValue);
return;
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__KIND_NAME:
- setKindName((String)newValue);
+ setKindName((String) newValue);
return;
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID:
getSpecializedTypesID().clear();
- getSpecializedTypesID().addAll((Collection<? extends String>)newValue);
+ getSpecializedTypesID().addAll((Collection<? extends String>) newValue);
return;
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION:
- setMatcherConfiguration((MatcherConfiguration)newValue);
+ setMatcherConfiguration((MatcherConfiguration) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -309,12 +316,12 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__HINT:
setHint(HINT_EDEFAULT);
return;
@@ -325,7 +332,7 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
getSpecializedTypesID().clear();
return;
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__MATCHER_CONFIGURATION:
- setMatcherConfiguration((MatcherConfiguration)null);
+ setMatcherConfiguration((MatcherConfiguration) null);
return;
}
super.eUnset(featureID);
@@ -334,12 +341,12 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__HINT:
return HINT_EDEFAULT == null ? hint != null : !HINT_EDEFAULT.equals(hint);
case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION__KIND_NAME:
@@ -355,13 +362,14 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
+ if (eIsProxy()) {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (hint: "); //$NON-NLS-1$
result.append(hint);
@@ -372,4 +380,4 @@ public abstract class ElementTypeConfigurationImpl extends ConfigurationElementI
result.append(')');
return result.toString();
}
-} //ElementTypeConfigurationImpl
+} // ElementTypeConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedElementTypeSetImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedElementTypeSetImpl.java
index bbe94b945f2..ee625b10ca0 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedElementTypeSetImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedElementTypeSetImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -42,7 +42,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.ExtendedElementTypeSetImpl#isExtensible <em>Extensible</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl implements ExtendedElementTypeSet {
@@ -51,7 +51,7 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
* The cached value of the '{@link #getElementType() <em>Element Type</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getElementType()
* @generated
* @ordered
@@ -62,7 +62,7 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
* The default value of the '{@link #isExtensible() <em>Extensible</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #isExtensible()
* @generated
* @ordered
@@ -73,7 +73,7 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
* The cached value of the '{@link #isExtensible() <em>Extensible</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #isExtensible()
* @generated
* @ordered
@@ -83,7 +83,7 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ExtendedElementTypeSetImpl() {
@@ -93,7 +93,7 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -104,11 +104,11 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EList<ElementTypeConfiguration> getElementType() {
- if(elementType == null) {
+ if (elementType == null) {
elementType = new EObjectContainmentEList<ElementTypeConfiguration>(ElementTypeConfiguration.class, this, ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE);
}
return elementType;
@@ -117,7 +117,7 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public boolean isExtensible() {
@@ -127,27 +127,28 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setExtensible(boolean newExtensible) {
boolean oldExtensible = extensible;
extensible = newExtensible;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__EXTENSIBLE, oldExtensible, extensible));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE:
- return ((InternalEList<?>)getElementType()).basicRemove(otherEnd, msgs);
+ return ((InternalEList<?>) getElementType()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -155,12 +156,12 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE:
return getElementType();
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__EXTENSIBLE:
@@ -172,19 +173,19 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE:
getElementType().clear();
- getElementType().addAll((Collection<? extends ElementTypeConfiguration>)newValue);
+ getElementType().addAll((Collection<? extends ElementTypeConfiguration>) newValue);
return;
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__EXTENSIBLE:
- setExtensible((Boolean)newValue);
+ setExtensible((Boolean) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -193,12 +194,12 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE:
getElementType().clear();
return;
@@ -212,12 +213,12 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE:
return elementType != null && !elementType.isEmpty();
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__EXTENSIBLE:
@@ -229,17 +230,18 @@ public class ExtendedElementTypeSetImpl extends ConfigurationElementImpl impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
+ if (eIsProxy()) {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (extensible: "); //$NON-NLS-1$
result.append(extensible);
result.append(')');
return result.toString();
}
-} //ExtendedElementTypeSetImpl
+} // ExtendedElementTypeSetImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesFactoryImpl.java
index 845502690ba..eb8df4b1e67 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesFactoryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesFactoryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,7 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.*;
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public class ExtendedtypesFactoryImpl extends EFactoryImpl implements ExtendedtypesFactory {
@@ -35,13 +35,13 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public static ExtendedtypesFactory init() {
try {
- ExtendedtypesFactory theExtendedtypesFactory = (ExtendedtypesFactory)EPackage.Registry.INSTANCE.getEFactory(ExtendedtypesPackage.eNS_URI);
- if(theExtendedtypesFactory != null) {
+ ExtendedtypesFactory theExtendedtypesFactory = (ExtendedtypesFactory) EPackage.Registry.INSTANCE.getEFactory(ExtendedtypesPackage.eNS_URI);
+ if (theExtendedtypesFactory != null) {
return theExtendedtypesFactory;
}
} catch (Exception exception) {
@@ -54,7 +54,7 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesFactoryImpl() {
@@ -64,12 +64,12 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
+ switch (eClass.getClassifierID()) {
case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET:
return createExtendedElementTypeSet();
case ExtendedtypesPackage.ICON_ENTRY:
@@ -86,7 +86,7 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedElementTypeSet createExtendedElementTypeSet() {
@@ -97,7 +97,7 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IconEntry createIconEntry() {
@@ -108,7 +108,7 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public AspectSemanticTypeConfiguration createAspectSemanticTypeConfiguration() {
@@ -119,7 +119,7 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public AspectViewTypeConfiguration createAspectViewTypeConfiguration() {
@@ -130,17 +130,17 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesPackage getExtendedtypesPackage() {
- return (ExtendedtypesPackage)getEPackage();
+ return (ExtendedtypesPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @deprecated
* @generated
*/
@@ -148,4 +148,4 @@ public class ExtendedtypesFactoryImpl extends EFactoryImpl implements Extendedty
public static ExtendedtypesPackage getPackage() {
return ExtendedtypesPackage.eINSTANCE;
}
-} //ExtendedtypesFactoryImpl
+} // ExtendedtypesFactoryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesPackageImpl.java
index 547e6c246be..93168ef7028 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesPackageImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ExtendedtypesPackageImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -40,7 +40,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration;
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public class ExtendedtypesPackageImpl extends EPackageImpl implements ExtendedtypesPackage {
@@ -48,7 +48,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass extendedElementTypeSetEClass = null;
@@ -56,7 +56,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass elementTypeConfigurationEClass = null;
@@ -64,7 +64,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass iconEntryEClass = null;
@@ -72,7 +72,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass configurationElementEClass = null;
@@ -80,7 +80,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass matcherConfigurationEClass = null;
@@ -88,7 +88,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass actionConfigurationEClass = null;
@@ -96,7 +96,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass viewActionConfigurationEClass = null;
@@ -104,7 +104,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass semanticActionConfigurationEClass = null;
@@ -112,7 +112,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass semanticTypeConfigurationEClass = null;
@@ -120,7 +120,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass viewTypeConfigurationEClass = null;
@@ -128,7 +128,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass elementTypeAdviceConfigurationEClass = null;
@@ -136,7 +136,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass aspectSemanticTypeConfigurationEClass = null;
@@ -144,7 +144,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private EClass aspectViewTypeConfigurationEClass = null;
@@ -154,9 +154,8 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
* package
* package URI value.
* <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the
- * package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage#eNS_URI
* @see #init()
@@ -169,28 +168,29 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
+ *
* <p>
- * This method is used to initialize {@link ExtendedtypesPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly.
- * Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * This method is used to initialize {@link ExtendedtypesPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static ExtendedtypesPackage init() {
- if(isInited)
- return (ExtendedtypesPackage)EPackage.Registry.INSTANCE.getEPackage(ExtendedtypesPackage.eNS_URI);
+ if (isInited) {
+ return (ExtendedtypesPackage) EPackage.Registry.INSTANCE.getEPackage(ExtendedtypesPackage.eNS_URI);
+ }
// Obtain or create and register package
- ExtendedtypesPackageImpl theExtendedtypesPackage = (ExtendedtypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ExtendedtypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ExtendedtypesPackageImpl());
+ ExtendedtypesPackageImpl theExtendedtypesPackage = (ExtendedtypesPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ExtendedtypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ExtendedtypesPackageImpl());
isInited = true;
// Initialize simple dependencies
EcorePackage.eINSTANCE.eClass();
@@ -208,7 +208,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getExtendedElementTypeSet() {
@@ -218,27 +218,27 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EReference getExtendedElementTypeSet_ElementType() {
- return (EReference)extendedElementTypeSetEClass.getEStructuralFeatures().get(0);
+ return (EReference) extendedElementTypeSetEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getExtendedElementTypeSet_Extensible() {
- return (EAttribute)extendedElementTypeSetEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) extendedElementTypeSetEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getElementTypeConfiguration() {
@@ -248,47 +248,47 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getElementTypeConfiguration_Hint() {
- return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) elementTypeConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getElementTypeConfiguration_KindName() {
- return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) elementTypeConfigurationEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getElementTypeConfiguration_SpecializedTypesID() {
- return (EAttribute)elementTypeConfigurationEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) elementTypeConfigurationEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EReference getElementTypeConfiguration_MatcherConfiguration() {
- return (EReference)elementTypeConfigurationEClass.getEStructuralFeatures().get(3);
+ return (EReference) elementTypeConfigurationEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getIconEntry() {
@@ -298,27 +298,27 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getIconEntry_IconPath() {
- return (EAttribute)iconEntryEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) iconEntryEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getIconEntry_BundleId() {
- return (EAttribute)iconEntryEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) iconEntryEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getConfigurationElement() {
@@ -328,47 +328,47 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getConfigurationElement_Name() {
- return (EAttribute)configurationElementEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) configurationElementEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getConfigurationElement_Description() {
- return (EAttribute)configurationElementEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) configurationElementEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getConfigurationElement_Identifier() {
- return (EAttribute)configurationElementEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) configurationElementEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EReference getConfigurationElement_IconEntry() {
- return (EReference)configurationElementEClass.getEStructuralFeatures().get(3);
+ return (EReference) configurationElementEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getMatcherConfiguration() {
@@ -378,7 +378,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getActionConfiguration() {
@@ -388,7 +388,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getViewActionConfiguration() {
@@ -398,7 +398,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getSemanticActionConfiguration() {
@@ -408,7 +408,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getSemanticTypeConfiguration() {
@@ -418,7 +418,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getViewTypeConfiguration() {
@@ -428,17 +428,17 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EAttribute getViewTypeConfiguration_SpecializedDiagramTypeID() {
- return (EAttribute)viewTypeConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) viewTypeConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getElementTypeAdviceConfiguration() {
@@ -448,7 +448,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getAspectSemanticTypeConfiguration() {
@@ -458,17 +458,17 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EReference getAspectSemanticTypeConfiguration_ActionConfiguration() {
- return (EReference)aspectSemanticTypeConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EReference) aspectSemanticTypeConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EClass getAspectViewTypeConfiguration() {
@@ -478,27 +478,27 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EReference getAspectViewTypeConfiguration_ActionConfiguration() {
- return (EReference)aspectViewTypeConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EReference) aspectViewTypeConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesFactory getExtendedtypesFactory() {
- return (ExtendedtypesFactory)getEFactoryInstance();
+ return (ExtendedtypesFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private boolean isCreated = false;
@@ -508,12 +508,13 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void createPackageContents() {
- if(isCreated)
+ if (isCreated) {
return;
+ }
isCreated = true;
// Create classes and their features
extendedElementTypeSetEClass = createEClass(EXTENDED_ELEMENT_TYPE_SET);
@@ -549,7 +550,7 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
private boolean isInitialized = false;
@@ -559,19 +560,20 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void initializePackageContents() {
- if(isInitialized)
+ if (isInitialized) {
return;
+ }
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
- EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
@@ -587,13 +589,17 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
aspectViewTypeConfigurationEClass.getESuperTypes().add(this.getViewTypeConfiguration());
// Initialize classes and features; add operations and parameters
initEClass(extendedElementTypeSetEClass, ExtendedElementTypeSet.class, "ExtendedElementTypeSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getExtendedElementTypeSet_ElementType(), this.getElementTypeConfiguration(), null, "elementType", null, 1, -1, ExtendedElementTypeSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getExtendedElementTypeSet_ElementType(), this.getElementTypeConfiguration(), null,
+ "elementType", null, 1, -1, ExtendedElementTypeSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getExtendedElementTypeSet_Extensible(), theEcorePackage.getEBoolean(), "extensible", null, 0, 1, ExtendedElementTypeSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(elementTypeConfigurationEClass, ElementTypeConfiguration.class, "ElementTypeConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getElementTypeConfiguration_Hint(), ecorePackage.getEString(), "hint", "ExtendedElements", 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getElementTypeConfiguration_KindName(), ecorePackage.getEString(), "kindName", "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); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getElementTypeConfiguration_SpecializedTypesID(), ecorePackage.getEString(), "specializedTypesID", null, 1, -1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEReference(getElementTypeConfiguration_MatcherConfiguration(), this.getMatcherConfiguration(), null, "matcherConfiguration", null, 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getElementTypeConfiguration_KindName(), ecorePackage.getEString(),
+ "kindName", "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); //$NON-NLS-1$ //$NON-NLS-2$
+ initEAttribute(getElementTypeConfiguration_SpecializedTypesID(), ecorePackage.getEString(),
+ "specializedTypesID", null, 1, -1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getElementTypeConfiguration_MatcherConfiguration(), this.getMatcherConfiguration(), null,
+ "matcherConfiguration", null, 0, 1, ElementTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(iconEntryEClass, IconEntry.class, "IconEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
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); //$NON-NLS-1$
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); //$NON-NLS-1$
@@ -601,20 +607,24 @@ public class ExtendedtypesPackageImpl extends EPackageImpl implements Extendedty
initEAttribute(getConfigurationElement_Name(), theEcorePackage.getEString(), "name", null, 1, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getConfigurationElement_Description(), theEcorePackage.getEString(), "description", null, 0, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getConfigurationElement_Identifier(), theEcorePackage.getEString(), "identifier", null, 1, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEReference(getConfigurationElement_IconEntry(), this.getIconEntry(), null, "iconEntry", null, 0, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getConfigurationElement_IconEntry(), this.getIconEntry(), null,
+ "iconEntry", null, 0, 1, ConfigurationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(matcherConfigurationEClass, MatcherConfiguration.class, "MatcherConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEClass(actionConfigurationEClass, ActionConfiguration.class, "ActionConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEClass(viewActionConfigurationEClass, ViewActionConfiguration.class, "ViewActionConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEClass(semanticActionConfigurationEClass, SemanticActionConfiguration.class, "SemanticActionConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEClass(semanticTypeConfigurationEClass, SemanticTypeConfiguration.class, "SemanticTypeConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEClass(viewTypeConfigurationEClass, ViewTypeConfiguration.class, "ViewTypeConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEAttribute(getViewTypeConfiguration_SpecializedDiagramTypeID(), ecorePackage.getEString(), "specializedDiagramTypeID", null, 0, 1, ViewTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getViewTypeConfiguration_SpecializedDiagramTypeID(), ecorePackage.getEString(),
+ "specializedDiagramTypeID", null, 0, 1, ViewTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(elementTypeAdviceConfigurationEClass, ElementTypeAdviceConfiguration.class, "ElementTypeAdviceConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEClass(aspectSemanticTypeConfigurationEClass, AspectSemanticTypeConfiguration.class, "AspectSemanticTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getAspectSemanticTypeConfiguration_ActionConfiguration(), this.getSemanticActionConfiguration(), null, "actionConfiguration", null, 0, -1, AspectSemanticTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getAspectSemanticTypeConfiguration_ActionConfiguration(), this.getSemanticActionConfiguration(), null,
+ "actionConfiguration", null, 0, -1, AspectSemanticTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(aspectViewTypeConfigurationEClass, AspectViewTypeConfiguration.class, "AspectViewTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getAspectViewTypeConfiguration_ActionConfiguration(), this.getViewActionConfiguration(), null, "actionConfiguration", null, 0, -1, AspectViewTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getAspectViewTypeConfiguration_ActionConfiguration(), this.getViewActionConfiguration(), null,
+ "actionConfiguration", null, 0, -1, AspectViewTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
// Create resource
createResource(eNS_URI);
}
-} //ExtendedtypesPackageImpl
+} // ExtendedtypesPackageImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/IconEntryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/IconEntryImpl.java
index 2f51c7a08ba..c9efb62f333 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/IconEntryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/IconEntryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -33,7 +33,7 @@ import org.eclipse.papyrus.infra.extendedtypes.IconEntry;
* <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.IconEntryImpl#getBundleId <em>Bundle Id</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class IconEntryImpl extends EObjectImpl implements IconEntry {
@@ -42,7 +42,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
* The default value of the '{@link #getIconPath() <em>Icon Path</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getIconPath()
* @generated
* @ordered
@@ -53,7 +53,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
* The cached value of the '{@link #getIconPath() <em>Icon Path</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getIconPath()
* @generated
* @ordered
@@ -64,7 +64,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
* The default value of the '{@link #getBundleId() <em>Bundle Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getBundleId()
* @generated
* @ordered
@@ -75,7 +75,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
* The cached value of the '{@link #getBundleId() <em>Bundle Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getBundleId()
* @generated
* @ordered
@@ -85,7 +85,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected IconEntryImpl() {
@@ -95,7 +95,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -106,7 +106,7 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getIconPath() {
@@ -116,20 +116,21 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setIconPath(String newIconPath) {
String oldIconPath = iconPath;
iconPath = newIconPath;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ICON_ENTRY__ICON_PATH, oldIconPath, iconPath));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getBundleId() {
@@ -139,25 +140,26 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setBundleId(String newBundleId) {
String oldBundleId = bundleId;
bundleId = newBundleId;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.ICON_ENTRY__BUNDLE_ID, oldBundleId, bundleId));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ICON_ENTRY__ICON_PATH:
return getIconPath();
case ExtendedtypesPackage.ICON_ENTRY__BUNDLE_ID:
@@ -169,17 +171,17 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ICON_ENTRY__ICON_PATH:
- setIconPath((String)newValue);
+ setIconPath((String) newValue);
return;
case ExtendedtypesPackage.ICON_ENTRY__BUNDLE_ID:
- setBundleId((String)newValue);
+ setBundleId((String) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -188,12 +190,12 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ICON_ENTRY__ICON_PATH:
setIconPath(ICON_PATH_EDEFAULT);
return;
@@ -207,12 +209,12 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.ICON_ENTRY__ICON_PATH:
return ICON_PATH_EDEFAULT == null ? iconPath != null : !ICON_PATH_EDEFAULT.equals(iconPath);
case ExtendedtypesPackage.ICON_ENTRY__BUNDLE_ID:
@@ -224,13 +226,14 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
+ if (eIsProxy()) {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (iconPath: "); //$NON-NLS-1$
result.append(iconPath);
@@ -239,4 +242,4 @@ public class IconEntryImpl extends EObjectImpl implements IconEntry {
result.append(')');
return result.toString();
}
-} //IconEntryImpl
+} // IconEntryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/MatcherConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/MatcherConfigurationImpl.java
index f34583833ed..4e456e1351b 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/MatcherConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/MatcherConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -25,7 +25,7 @@ import org.eclipse.papyrus.infra.extendedtypes.MatcherConfiguration;
* <!-- end-user-doc -->
* <p>
* </p>
- *
+ *
* @generated
*/
public abstract class MatcherConfigurationImpl extends EObjectImpl implements MatcherConfiguration {
@@ -33,7 +33,7 @@ public abstract class MatcherConfigurationImpl extends EObjectImpl implements Ma
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected MatcherConfigurationImpl() {
@@ -43,11 +43,11 @@ public abstract class MatcherConfigurationImpl extends EObjectImpl implements Ma
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtendedtypesPackage.eINSTANCE.getMatcherConfiguration();
}
-} //MatcherConfigurationImpl
+} // MatcherConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticActionConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticActionConfigurationImpl.java
index 09c1a9abc79..c09233e7988 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticActionConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticActionConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.infra.extendedtypes.SemanticActionConfiguration;
* <!-- end-user-doc -->
* <p>
* </p>
- *
+ *
* @generated
*/
public abstract class SemanticActionConfigurationImpl extends ActionConfigurationImpl implements SemanticActionConfiguration {
@@ -31,7 +31,7 @@ public abstract class SemanticActionConfigurationImpl extends ActionConfiguratio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected SemanticActionConfigurationImpl() {
@@ -41,11 +41,11 @@ public abstract class SemanticActionConfigurationImpl extends ActionConfiguratio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtendedtypesPackage.eINSTANCE.getSemanticActionConfiguration();
}
-} //SemanticActionConfigurationImpl
+} // SemanticActionConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticTypeConfigurationImpl.java
index b2c45a9eedb..817cf64689e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/SemanticTypeConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.infra.extendedtypes.SemanticTypeConfiguration;
* <!-- end-user-doc -->
* <p>
* </p>
- *
+ *
* @generated
*/
public abstract class SemanticTypeConfigurationImpl extends ElementTypeConfigurationImpl implements SemanticTypeConfiguration {
@@ -31,7 +31,7 @@ public abstract class SemanticTypeConfigurationImpl extends ElementTypeConfigura
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected SemanticTypeConfigurationImpl() {
@@ -41,11 +41,11 @@ public abstract class SemanticTypeConfigurationImpl extends ElementTypeConfigura
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtendedtypesPackage.eINSTANCE.getSemanticTypeConfiguration();
}
-} //SemanticTypeConfigurationImpl
+} // SemanticTypeConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewActionConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewActionConfigurationImpl.java
index b710e17129b..a5b047da98d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewActionConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewActionConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ViewActionConfiguration;
* <!-- end-user-doc -->
* <p>
* </p>
- *
+ *
* @generated
*/
public abstract class ViewActionConfigurationImpl extends ActionConfigurationImpl implements ViewActionConfiguration {
@@ -31,7 +31,7 @@ public abstract class ViewActionConfigurationImpl extends ActionConfigurationImp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ViewActionConfigurationImpl() {
@@ -41,11 +41,11 @@ public abstract class ViewActionConfigurationImpl extends ActionConfigurationImp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtendedtypesPackage.eINSTANCE.getViewActionConfiguration();
}
-} //ViewActionConfigurationImpl
+} // ViewActionConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewTypeConfigurationImpl.java
index 6c1e3648b64..0f596c88088 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/impl/ViewTypeConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -28,11 +28,10 @@ import org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.ViewTypeConfigurationImpl#getSpecializedDiagramTypeID <em>Specialized Diagram Type ID</em>}
- * </li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.impl.ViewTypeConfigurationImpl#getSpecializedDiagramTypeID <em>Specialized Diagram Type ID</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public abstract class ViewTypeConfigurationImpl extends ElementTypeConfigurationImpl implements ViewTypeConfiguration {
@@ -41,7 +40,7 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
* The default value of the '{@link #getSpecializedDiagramTypeID() <em>Specialized Diagram Type ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getSpecializedDiagramTypeID()
* @generated
* @ordered
@@ -52,7 +51,7 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
* The cached value of the '{@link #getSpecializedDiagramTypeID() <em>Specialized Diagram Type ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getSpecializedDiagramTypeID()
* @generated
* @ordered
@@ -62,7 +61,7 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ViewTypeConfigurationImpl() {
@@ -72,7 +71,7 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -83,7 +82,7 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public String getSpecializedDiagramTypeID() {
@@ -93,25 +92,26 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setSpecializedDiagramTypeID(String newSpecializedDiagramTypeID) {
String oldSpecializedDiagramTypeID = specializedDiagramTypeID;
specializedDiagramTypeID = newSpecializedDiagramTypeID;
- if(eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION__SPECIALIZED_DIAGRAM_TYPE_ID, oldSpecializedDiagramTypeID, specializedDiagramTypeID));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION__SPECIALIZED_DIAGRAM_TYPE_ID:
return getSpecializedDiagramTypeID();
}
@@ -121,14 +121,14 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION__SPECIALIZED_DIAGRAM_TYPE_ID:
- setSpecializedDiagramTypeID((String)newValue);
+ setSpecializedDiagramTypeID((String) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -137,12 +137,12 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION__SPECIALIZED_DIAGRAM_TYPE_ID:
setSpecializedDiagramTypeID(SPECIALIZED_DIAGRAM_TYPE_ID_EDEFAULT);
return;
@@ -153,12 +153,12 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
+ switch (featureID) {
case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION__SPECIALIZED_DIAGRAM_TYPE_ID:
return SPECIALIZED_DIAGRAM_TYPE_ID_EDEFAULT == null ? specializedDiagramTypeID != null : !SPECIALIZED_DIAGRAM_TYPE_ID_EDEFAULT.equals(specializedDiagramTypeID);
}
@@ -168,17 +168,18 @@ public abstract class ViewTypeConfigurationImpl extends ElementTypeConfiguration
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
+ if (eIsProxy()) {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (specializedDiagramTypeID: "); //$NON-NLS-1$
result.append(specializedDiagramTypeID);
result.append(')');
return result.toString();
}
-} //ViewTypeConfigurationImpl
+} // ViewTypeConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/HierarchyPermission.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/HierarchyPermission.java
index 64b24097ebb..aa20ac3ee94 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/HierarchyPermission.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/HierarchyPermission.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -22,9 +22,9 @@ import org.eclipse.emf.ecore.EObject;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#getChildType <em>Child Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsPermitted <em>Is Permitted</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsStrict <em>Is Strict</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#getChildType <em>Child Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsPermitted <em>Is Permitted</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsStrict <em>Is Strict</em>}</li>
* </ul>
* </p>
*
@@ -37,10 +37,10 @@ public interface HierarchyPermission extends EObject {
* Returns the value of the '<em><b>Child Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Child Type</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Child Type</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Child Type</em>' attribute.
* @see #setChildType(String)
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage#getHierarchyPermission_ChildType()
@@ -53,7 +53,9 @@ public interface HierarchyPermission extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#getChildType <em>Child Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Child Type</em>' attribute.
+ *
+ * @param value
+ * the new value of the '<em>Child Type</em>' attribute.
* @see #getChildType()
* @generated
*/
@@ -63,10 +65,10 @@ public interface HierarchyPermission extends EObject {
* Returns the value of the '<em><b>Is Permitted</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Is Permitted</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Is Permitted</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Is Permitted</em>' attribute.
* @see #setIsPermitted(boolean)
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage#getHierarchyPermission_IsPermitted()
@@ -79,7 +81,9 @@ public interface HierarchyPermission extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsPermitted <em>Is Permitted</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Is Permitted</em>' attribute.
+ *
+ * @param value
+ * the new value of the '<em>Is Permitted</em>' attribute.
* @see #isIsPermitted()
* @generated
*/
@@ -89,10 +93,10 @@ public interface HierarchyPermission extends EObject {
* Returns the value of the '<em><b>Is Strict</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Is Strict</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Is Strict</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Is Strict</em>' attribute.
* @see #setIsStrict(boolean)
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage#getHierarchyPermission_IsStrict()
@@ -105,7 +109,9 @@ public interface HierarchyPermission extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsStrict <em>Is Strict</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Is Strict</em>' attribute.
+ *
+ * @param value
+ * the new value of the '<em>Is Strict</em>' attribute.
* @see #isIsStrict()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfiguration.java
index 7dc30a18add..52f4a27c9fb 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -24,7 +24,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration#getPermissions <em>Permissions</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration#getPermissions <em>Permissions</em>}</li>
* </ul>
* </p>
*
@@ -38,10 +38,10 @@ public interface InvariantContainerConfiguration extends InvariantRuleConfigurat
* The list contents are of type {@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Permissions</em>' containment reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Permissions</em>' containment reference list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Permissions</em>' containment reference list.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage#getInvariantContainerConfiguration_Permissions()
* @model containment="true"
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationFactory.java
index 06db3f6f21d..2a75ba64c98 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationFactory.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -19,6 +19,7 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage
* @generated
*/
@@ -27,6 +28,7 @@ public interface InvariantContainerConfigurationFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
InvariantContainerConfigurationFactory eINSTANCE = org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationFactoryImpl.init();
@@ -35,6 +37,7 @@ public interface InvariantContainerConfigurationFactory extends EFactory {
* Returns a new object of class '<em>Invariant Container Configuration</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Invariant Container Configuration</em>'.
* @generated
*/
@@ -44,6 +47,7 @@ public interface InvariantContainerConfigurationFactory extends EFactory {
* Returns a new object of class '<em>Hierarchy Permission</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Hierarchy Permission</em>'.
* @generated
*/
@@ -53,9 +57,10 @@ public interface InvariantContainerConfigurationFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
InvariantContainerConfigurationPackage getInvariantContainerConfigurationPackage();
-} //InvariantContainerConfigurationFactory
+} // InvariantContainerConfigurationFactory
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationPackage.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationPackage.java
index e78d78b9685..e5200069c89 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationPackage.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationPackage.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -24,13 +24,14 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationFactory
* @model kind="package"
* @generated
@@ -40,6 +41,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNAME = "invariantcontainerconfiguration";
@@ -48,6 +50,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_URI = "http://www.eclipse.org/papyrus/infra/extendedtypes/semantictype/invariant/container/1.0";
@@ -56,6 +59,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_PREFIX = "invariantcontainerconfiguration";
@@ -64,6 +68,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
InvariantContainerConfigurationPackage eINSTANCE = org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationPackageImpl.init();
@@ -72,6 +77,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationImpl <em>Invariant Container Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationPackageImpl#getInvariantContainerConfiguration()
* @generated
@@ -82,6 +88,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Permissions</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -91,6 +98,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The number of structural features of the '<em>Invariant Container Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -100,6 +108,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The number of operations of the '<em>Invariant Container Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -109,6 +118,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl <em>Hierarchy Permission</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationPackageImpl#getHierarchyPermission()
* @generated
@@ -119,6 +129,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Child Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -128,6 +139,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Is Permitted</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -137,6 +149,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Is Strict</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -146,6 +159,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The number of structural features of the '<em>Hierarchy Permission</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -155,6 +169,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The number of operations of the '<em>Hierarchy Permission</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -165,6 +180,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration <em>Invariant Container Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Invariant Container Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration
* @generated
@@ -175,6 +191,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration#getPermissions <em>Permissions</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference list '<em>Permissions</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration#getPermissions()
* @see #getInvariantContainerConfiguration()
@@ -186,6 +203,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission <em>Hierarchy Permission</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Hierarchy Permission</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission
* @generated
@@ -196,6 +214,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#getChildType <em>Child Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Child Type</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#getChildType()
* @see #getHierarchyPermission()
@@ -207,6 +226,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsPermitted <em>Is Permitted</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Is Permitted</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsPermitted()
* @see #getHierarchyPermission()
@@ -218,6 +238,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsStrict <em>Is Strict</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Is Strict</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission#isIsStrict()
* @see #getHierarchyPermission()
@@ -229,6 +250,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -238,13 +260,14 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @generated
*/
interface Literals {
@@ -252,6 +275,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationImpl <em>Invariant Container Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationPackageImpl#getInvariantContainerConfiguration()
* @generated
@@ -262,6 +286,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object literal for the '<em><b>Permissions</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS = eINSTANCE.getInvariantContainerConfiguration_Permissions();
@@ -270,6 +295,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl <em>Hierarchy Permission</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationPackageImpl#getHierarchyPermission()
* @generated
@@ -280,6 +306,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object literal for the '<em><b>Child Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute HIERARCHY_PERMISSION__CHILD_TYPE = eINSTANCE.getHierarchyPermission_ChildType();
@@ -288,6 +315,7 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object literal for the '<em><b>Is Permitted</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute HIERARCHY_PERMISSION__IS_PERMITTED = eINSTANCE.getHierarchyPermission_IsPermitted();
@@ -296,10 +324,11 @@ public interface InvariantContainerConfigurationPackage extends EPackage {
* The meta object literal for the '<em><b>Is Strict</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute HIERARCHY_PERMISSION__IS_STRICT = eINSTANCE.getHierarchyPermission_IsStrict();
}
-} //InvariantContainerConfigurationPackage
+} // InvariantContainerConfigurationPackage
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/HierarchyPermissionImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/HierarchyPermissionImpl.java
index d6d6327f010..4cf60898ba1 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/HierarchyPermissionImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/HierarchyPermissionImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -29,9 +29,9 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.I
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl#getChildType <em>Child Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl#isIsPermitted <em>Is Permitted</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl#isIsStrict <em>Is Strict</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl#getChildType <em>Child Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl#isIsPermitted <em>Is Permitted</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.HierarchyPermissionImpl#isIsStrict <em>Is Strict</em>}</li>
* </ul>
* </p>
*
@@ -42,6 +42,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
* The default value of the '{@link #getChildType() <em>Child Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getChildType()
* @generated
* @ordered
@@ -52,6 +53,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
* The cached value of the '{@link #getChildType() <em>Child Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getChildType()
* @generated
* @ordered
@@ -62,6 +64,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
* The default value of the '{@link #isIsPermitted() <em>Is Permitted</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIsPermitted()
* @generated
* @ordered
@@ -72,6 +75,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
* The cached value of the '{@link #isIsPermitted() <em>Is Permitted</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIsPermitted()
* @generated
* @ordered
@@ -82,6 +86,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
* The default value of the '{@link #isIsStrict() <em>Is Strict</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIsStrict()
* @generated
* @ordered
@@ -92,6 +97,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
* The cached value of the '{@link #isIsStrict() <em>Is Strict</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #isIsStrict()
* @generated
* @ordered
@@ -101,6 +107,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected HierarchyPermissionImpl() {
@@ -110,6 +117,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +128,7 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getChildType() {
@@ -129,18 +138,21 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setChildType(String newChildType) {
String oldChildType = childType;
childType = newChildType;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE, oldChildType, childType));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isIsPermitted() {
@@ -150,18 +162,21 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setIsPermitted(boolean newIsPermitted) {
boolean oldIsPermitted = isPermitted;
isPermitted = newIsPermitted;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED, oldIsPermitted, isPermitted));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isIsStrict() {
@@ -171,29 +186,32 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setIsStrict(boolean newIsStrict) {
boolean oldIsStrict = isStrict;
isStrict = newIsStrict;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT, oldIsStrict, isStrict));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
- return getChildType();
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
- return isIsPermitted();
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
- return isIsStrict();
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
+ return getChildType();
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
+ return isIsPermitted();
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
+ return isIsStrict();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -201,20 +219,21 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
- setChildType((String)newValue);
- return;
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
- setIsPermitted((Boolean)newValue);
- return;
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
- setIsStrict((Boolean)newValue);
- return;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
+ setChildType((String) newValue);
+ return;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
+ setIsPermitted((Boolean) newValue);
+ return;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
+ setIsStrict((Boolean) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -222,20 +241,21 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
- setChildType(CHILD_TYPE_EDEFAULT);
- return;
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
- setIsPermitted(IS_PERMITTED_EDEFAULT);
- return;
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
- setIsStrict(IS_STRICT_EDEFAULT);
- return;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
+ setChildType(CHILD_TYPE_EDEFAULT);
+ return;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
+ setIsPermitted(IS_PERMITTED_EDEFAULT);
+ return;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
+ setIsStrict(IS_STRICT_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -243,17 +263,18 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
- return CHILD_TYPE_EDEFAULT == null ? childType != null : !CHILD_TYPE_EDEFAULT.equals(childType);
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
- return isPermitted != IS_PERMITTED_EDEFAULT;
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
- return isStrict != IS_STRICT_EDEFAULT;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__CHILD_TYPE:
+ return CHILD_TYPE_EDEFAULT == null ? childType != null : !CHILD_TYPE_EDEFAULT.equals(childType);
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_PERMITTED:
+ return isPermitted != IS_PERMITTED_EDEFAULT;
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION__IS_STRICT:
+ return isStrict != IS_STRICT_EDEFAULT;
}
return super.eIsSet(featureID);
}
@@ -261,11 +282,14 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy()) {
+ return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (childType: ");
@@ -278,4 +302,4 @@ public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implem
return result.toString();
}
-} //HierarchyPermissionImpl
+} // HierarchyPermissionImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationFactoryImpl.java
index b6ec732b1a0..81678c28139 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationFactoryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationFactoryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,6 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.*
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl implements InvariantContainerConfigurationFactory {
@@ -33,16 +34,16 @@ public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl imp
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static InvariantContainerConfigurationFactory init() {
try {
- InvariantContainerConfigurationFactory theInvariantContainerConfigurationFactory = (InvariantContainerConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(InvariantContainerConfigurationPackage.eNS_URI);
+ InvariantContainerConfigurationFactory theInvariantContainerConfigurationFactory = (InvariantContainerConfigurationFactory) EPackage.Registry.INSTANCE.getEFactory(InvariantContainerConfigurationPackage.eNS_URI);
if (theInvariantContainerConfigurationFactory != null) {
return theInvariantContainerConfigurationFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new InvariantContainerConfigurationFactoryImpl();
@@ -52,6 +53,7 @@ public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl imp
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationFactoryImpl() {
@@ -61,21 +63,25 @@ public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION: return createInvariantContainerConfiguration();
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION: return createHierarchyPermission();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION:
+ return createInvariantContainerConfiguration();
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION:
+ return createHierarchyPermission();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfiguration createInvariantContainerConfiguration() {
@@ -86,6 +92,7 @@ public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public HierarchyPermission createHierarchyPermission() {
@@ -96,15 +103,17 @@ public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationPackage getInvariantContainerConfigurationPackage() {
- return (InvariantContainerConfigurationPackage)getEPackage();
+ return (InvariantContainerConfigurationPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -113,4 +122,4 @@ public class InvariantContainerConfigurationFactoryImpl extends EFactoryImpl imp
return InvariantContainerConfigurationPackage.eINSTANCE;
}
-} //InvariantContainerConfigurationFactoryImpl
+} // InvariantContainerConfigurationFactoryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationImpl.java
index 6f4291b0d16..edc60d3e209 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -37,7 +37,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationImpl#getPermissions <em>Permissions</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.impl.InvariantContainerConfigurationImpl#getPermissions <em>Permissions</em>}</li>
* </ul>
* </p>
*
@@ -48,6 +48,7 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
* The cached value of the '{@link #getPermissions() <em>Permissions</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getPermissions()
* @generated
* @ordered
@@ -57,6 +58,7 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected InvariantContainerConfigurationImpl() {
@@ -66,6 +68,7 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -76,6 +79,7 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<HierarchyPermission> getPermissions() {
@@ -88,13 +92,14 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
- return ((InternalEList<?>)getPermissions()).basicRemove(otherEnd, msgs);
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
+ return ((InternalEList<?>) getPermissions()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -102,13 +107,14 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
- return getPermissions();
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
+ return getPermissions();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -116,16 +122,17 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
- getPermissions().clear();
- getPermissions().addAll((Collection<? extends HierarchyPermission>)newValue);
- return;
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
+ getPermissions().clear();
+ getPermissions().addAll((Collection<? extends HierarchyPermission>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -133,14 +140,15 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
- getPermissions().clear();
- return;
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
+ getPermissions().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -148,15 +156,16 @@ public class InvariantContainerConfigurationImpl extends InvariantRuleConfigurat
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
- return permissions != null && !permissions.isEmpty();
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION__PERMISSIONS:
+ return permissions != null && !permissions.isEmpty();
}
return super.eIsSet(featureID);
}
-} //InvariantContainerConfigurationImpl
+} // InvariantContainerConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationPackageImpl.java
index 0b48d2a219f..3cd54bc561d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationPackageImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/impl/InvariantContainerConfigurationPackageImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -31,12 +31,14 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InvariantContainerConfigurationPackageImpl extends EPackageImpl implements InvariantContainerConfigurationPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass invariantContainerConfigurationEClass = null;
@@ -44,20 +46,17 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass hierarchyPermissionEClass = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage#eNS_URI
* @see #init()
@@ -70,27 +69,31 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>This method is used to initialize {@link InvariantContainerConfigurationPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
+ *
+ * <p>
+ * This method is used to initialize {@link InvariantContainerConfigurationPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static InvariantContainerConfigurationPackage init() {
- if (isInited) return (InvariantContainerConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(InvariantContainerConfigurationPackage.eNS_URI);
+ if (isInited) {
+ return (InvariantContainerConfigurationPackage) EPackage.Registry.INSTANCE.getEPackage(InvariantContainerConfigurationPackage.eNS_URI);
+ }
// Obtain or create and register package
- InvariantContainerConfigurationPackageImpl theInvariantContainerConfigurationPackage = (InvariantContainerConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantContainerConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantContainerConfigurationPackageImpl());
+ InvariantContainerConfigurationPackageImpl theInvariantContainerConfigurationPackage = (InvariantContainerConfigurationPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantContainerConfigurationPackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI) : new InvariantContainerConfigurationPackageImpl());
isInited = true;
@@ -106,7 +109,7 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
// Mark meta-data to indicate it can't be changed
theInvariantContainerConfigurationPackage.freeze();
-
+
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(InvariantContainerConfigurationPackage.eNS_URI, theInvariantContainerConfigurationPackage);
return theInvariantContainerConfigurationPackage;
@@ -115,6 +118,7 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getInvariantContainerConfiguration() {
@@ -124,15 +128,17 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getInvariantContainerConfiguration_Permissions() {
- return (EReference)invariantContainerConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EReference) invariantContainerConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getHierarchyPermission() {
@@ -142,55 +148,63 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getHierarchyPermission_ChildType() {
- return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(0);
+ return (EAttribute) hierarchyPermissionEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getHierarchyPermission_IsPermitted() {
- return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) hierarchyPermissionEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAttribute getHierarchyPermission_IsStrict() {
- return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(2);
+ return (EAttribute) hierarchyPermissionEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationFactory getInvariantContainerConfigurationFactory() {
- return (InvariantContainerConfigurationFactory)getEFactoryInstance();
+ return (InvariantContainerConfigurationFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createPackageContents() {
- if (isCreated) return;
+ if (isCreated) {
+ return;
+ }
isCreated = true;
// Create classes and their features
@@ -206,19 +220,23 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) return;
+ if (isInitialized) {
+ return;
+ }
isInitialized = true;
// Initialize package
@@ -227,8 +245,8 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
setNsURI(eNS_URI);
// Obtain other dependent packages
- InvariantSemanticTypeConfigurationPackage theInvariantSemanticTypeConfigurationPackage = (InvariantSemanticTypeConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(InvariantSemanticTypeConfigurationPackage.eNS_URI);
- EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ InvariantSemanticTypeConfigurationPackage theInvariantSemanticTypeConfigurationPackage = (InvariantSemanticTypeConfigurationPackage) EPackage.Registry.INSTANCE.getEPackage(InvariantSemanticTypeConfigurationPackage.eNS_URI);
+ EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
// Create type parameters
@@ -239,7 +257,8 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
// Initialize classes, features, and operations; add parameters
initEClass(invariantContainerConfigurationEClass, InvariantContainerConfiguration.class, "InvariantContainerConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getInvariantContainerConfiguration_Permissions(), this.getHierarchyPermission(), null, "permissions", null, 0, -1, InvariantContainerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getInvariantContainerConfiguration_Permissions(), this.getHierarchyPermission(), null, "permissions", null, 0, -1, InvariantContainerConfiguration.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_ChildType(), theEcorePackage.getEString(), "childType", null, 0, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -250,4 +269,4 @@ public class InvariantContainerConfigurationPackageImpl extends EPackageImpl imp
createResource(eNS_URI);
}
-} //InvariantContainerConfigurationPackageImpl
+} // InvariantContainerConfigurationPackageImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationAdapterFactory.java
index 8c5fefb68b8..86d964eb135 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationAdapterFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationAdapterFactory.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -28,6 +28,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage
* @generated
*/
@@ -36,6 +37,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static InvariantContainerConfigurationPackage modelPackage;
@@ -44,6 +46,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationAdapterFactory() {
@@ -57,6 +60,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
+ *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@@ -66,7 +70,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -75,39 +79,45 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected InvariantContainerConfigurationSwitch<Adapter> modelSwitch =
- new InvariantContainerConfigurationSwitch<Adapter>() {
- @Override
- public Adapter caseInvariantContainerConfiguration(InvariantContainerConfiguration object) {
- return createInvariantContainerConfigurationAdapter();
- }
- @Override
- public Adapter caseHierarchyPermission(HierarchyPermission object) {
- return createHierarchyPermissionAdapter();
- }
- @Override
- public Adapter caseInvariantRuleConfiguration(InvariantRuleConfiguration object) {
- return createInvariantRuleConfigurationAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ new InvariantContainerConfigurationSwitch<Adapter>() {
+ @Override
+ public Adapter caseInvariantContainerConfiguration(InvariantContainerConfiguration object) {
+ return createInvariantContainerConfigurationAdapter();
+ }
+
+ @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 <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param target the object to adapt.
+ *
+ * @param target
+ * the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
+ return modelSwitch.doSwitch((EObject) target);
}
@@ -117,6 +127,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfiguration
* @generated
@@ -131,6 +142,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.HierarchyPermission
* @generated
@@ -145,6 +157,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantRuleConfiguration
* @generated
@@ -158,6 +171,7 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -165,4 +179,4 @@ public class InvariantContainerConfigurationAdapterFactory extends AdapterFactor
return null;
}
-} //InvariantContainerConfigurationAdapterFactory
+} // InvariantContainerConfigurationAdapterFactory
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceFactoryImpl.java
index 01fbf941306..fcda3d83674 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceFactoryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceFactoryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -22,6 +22,7 @@ import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.util.InvariantContainerConfigurationResourceImpl
* @generated
*/
@@ -30,6 +31,7 @@ public class InvariantContainerConfigurationResourceFactoryImpl extends Resource
* Creates an instance of the resource factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationResourceFactoryImpl() {
@@ -40,6 +42,7 @@ public class InvariantContainerConfigurationResourceFactoryImpl extends Resource
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -48,4 +51,4 @@ public class InvariantContainerConfigurationResourceFactoryImpl extends Resource
return result;
}
-} //InvariantContainerConfigurationResourceFactoryImpl
+} // InvariantContainerConfigurationResourceFactoryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceImpl.java
index dddb5c63901..cc04ddafa39 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationResourceImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -20,6 +20,7 @@ import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.util.InvariantContainerConfigurationResourceFactoryImpl
* @generated
*/
@@ -28,11 +29,13 @@ public class InvariantContainerConfigurationResourceImpl extends XMLResourceImpl
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param uri the URI of the new resource.
+ *
+ * @param uri
+ * the URI of the new resource.
* @generated
*/
public InvariantContainerConfigurationResourceImpl(URI uri) {
super(uri);
}
-} //InvariantContainerConfigurationResourceImpl
+} // InvariantContainerConfigurationResourceImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationSwitch.java
index e4cf186efed..2a7151f2b99 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationSwitch.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationSwitch.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -24,13 +24,13 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.InvariantContainerConfigurationPackage
* @generated
*/
@@ -39,6 +39,7 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static InvariantContainerConfigurationPackage modelPackage;
@@ -47,6 +48,7 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationSwitch() {
@@ -59,6 +61,7 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -72,26 +75,34 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION: {
- InvariantContainerConfiguration invariantContainerConfiguration = (InvariantContainerConfiguration)theEObject;
- T result = caseInvariantContainerConfiguration(invariantContainerConfiguration);
- if (result == null) result = caseInvariantRuleConfiguration(invariantContainerConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case InvariantContainerConfigurationPackage.INVARIANT_CONTAINER_CONFIGURATION: {
+ InvariantContainerConfiguration invariantContainerConfiguration = (InvariantContainerConfiguration) theEObject;
+ T result = caseInvariantContainerConfiguration(invariantContainerConfiguration);
+ if (result == null) {
+ result = caseInvariantRuleConfiguration(invariantContainerConfiguration);
}
- case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION: {
- HierarchyPermission hierarchyPermission = (HierarchyPermission)theEObject;
- T result = caseHierarchyPermission(hierarchyPermission);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ case InvariantContainerConfigurationPackage.HIERARCHY_PERMISSION: {
+ HierarchyPermission hierarchyPermission = (HierarchyPermission) theEObject;
+ T result = caseHierarchyPermission(hierarchyPermission);
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -101,7 +112,9 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Invariant Container Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -116,7 +129,9 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Hierarchy Permission</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -131,7 +146,9 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Invariant Rule Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -146,7 +163,9 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -156,4 +175,4 @@ public class InvariantContainerConfigurationSwitch<T> extends Switch<T> {
return null;
}
-} //InvariantContainerConfigurationSwitch
+} // InvariantContainerConfigurationSwitch
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationXMLProcessor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationXMLProcessor.java
index 21ab3121a20..7223dbb063f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationXMLProcessor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/util/InvariantContainerConfigurationXMLProcessor.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,6 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration.I
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InvariantContainerConfigurationXMLProcessor extends XMLProcessor {
@@ -34,17 +35,19 @@ public class InvariantContainerConfigurationXMLProcessor extends XMLProcessor {
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantContainerConfigurationXMLProcessor() {
super((EPackage.Registry.INSTANCE));
InvariantContainerConfigurationPackage.eINSTANCE.eClass();
}
-
+
/**
* Register for "*" and "xml" file extensions the InvariantContainerConfigurationResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -57,4 +60,4 @@ public class InvariantContainerConfigurationXMLProcessor extends XMLProcessor {
return registrations;
}
-} //InvariantContainerConfigurationXMLProcessor
+} // InvariantContainerConfigurationXMLProcessor
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRule.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRule.java
index 17c85e07773..fc33b54ec27 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRule.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRule.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/ComposedRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/ComposedRuleConfiguration.java
index 34466596454..a540a584ad8 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/ComposedRuleConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/ComposedRuleConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -22,7 +22,7 @@ import org.eclipse.emf.common.util.EList;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration#getComposedRules <em>Composed Rules</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration#getComposedRules <em>Composed Rules</em>}</li>
* </ul>
* </p>
*
@@ -36,10 +36,10 @@ public interface ComposedRuleConfiguration extends InvariantRuleConfiguration {
* The list contents are of type {@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantRuleConfiguration}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Composed Rules</em>' reference list isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Composed Rules</em>' reference list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Composed Rules</em>' reference list.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationPackage#getComposedRuleConfiguration_ComposedRules()
* @model lower="2"
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantRuleConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantRuleConfiguration.java
index c7e48284973..28d53cd220f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantRuleConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantRuleConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfiguration.java
index 7441500ef55..7072fe756b2 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfiguration.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -22,7 +22,7 @@ import org.eclipse.papyrus.infra.extendedtypes.SemanticTypeConfiguration;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration#getInvariantRuleConfiguration <em>Invariant Rule Configuration</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration#getInvariantRuleConfiguration <em>Invariant Rule Configuration</em>}</li>
* </ul>
* </p>
*
@@ -35,10 +35,10 @@ public interface InvariantSemanticTypeConfiguration extends SemanticTypeConfigur
* Returns the value of the '<em><b>Invariant Rule Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Invariant Rule Configuration</em>' containment reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Invariant Rule Configuration</em>' containment reference isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Invariant Rule Configuration</em>' containment reference.
* @see #setInvariantRuleConfiguration(InvariantRuleConfiguration)
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationPackage#getInvariantSemanticTypeConfiguration_InvariantRuleConfiguration()
@@ -51,7 +51,9 @@ public interface InvariantSemanticTypeConfiguration extends SemanticTypeConfigur
* Sets the value of the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration#getInvariantRuleConfiguration <em>Invariant Rule Configuration</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Invariant Rule Configuration</em>' containment reference.
+ *
+ * @param value
+ * the new value of the '<em>Invariant Rule Configuration</em>' containment reference.
* @see #getInvariantRuleConfiguration()
* @generated
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationFactory.java
index 7699c597ee5..b6e1352abd5 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationFactory.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -19,6 +19,7 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationPackage
* @generated
*/
@@ -27,6 +28,7 @@ public interface InvariantSemanticTypeConfigurationFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
InvariantSemanticTypeConfigurationFactory eINSTANCE = org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationFactoryImpl.init();
@@ -35,6 +37,7 @@ public interface InvariantSemanticTypeConfigurationFactory extends EFactory {
* Returns a new object of class '<em>Invariant Semantic Type Configuration</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Invariant Semantic Type Configuration</em>'.
* @generated
*/
@@ -44,6 +47,7 @@ public interface InvariantSemanticTypeConfigurationFactory extends EFactory {
* Returns a new object of class '<em>And Rule</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>And Rule</em>'.
* @generated
*/
@@ -53,6 +57,7 @@ public interface InvariantSemanticTypeConfigurationFactory extends EFactory {
* Returns a new object of class '<em>Or Rule</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Or Rule</em>'.
* @generated
*/
@@ -62,9 +67,10 @@ public interface InvariantSemanticTypeConfigurationFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
InvariantSemanticTypeConfigurationPackage getInvariantSemanticTypeConfigurationPackage();
-} //InvariantSemanticTypeConfigurationFactory
+} // InvariantSemanticTypeConfigurationFactory
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationPackage.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationPackage.java
index 5eee19838f8..4766b8bec6b 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationPackage.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeConfigurationPackage.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -23,13 +23,14 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationFactory
* @model kind="package"
* @generated
@@ -39,6 +40,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNAME = "invariantsemantictypeconfiguration";
@@ -47,6 +49,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_URI = "http://www.eclipse.org/papyrus/infra/extendedtypes/semantictype/invariant/1.0";
@@ -55,6 +58,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_PREFIX = "invariantsemantictypeconfiguration";
@@ -63,6 +67,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
InvariantSemanticTypeConfigurationPackage eINSTANCE = org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl.init();
@@ -71,6 +76,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationImpl <em>Invariant Semantic Type Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getInvariantSemanticTypeConfiguration()
* @generated
@@ -81,6 +87,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -90,6 +97,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -99,6 +107,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -108,6 +117,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Icon Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -117,6 +127,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Hint</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -126,6 +137,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Kind Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -135,6 +147,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Specialized Types ID</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -144,6 +157,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -153,6 +167,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Invariant Rule Configuration</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -162,6 +177,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of structural features of the '<em>Invariant Semantic Type Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -171,6 +187,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantRuleConfigurationImpl <em>Invariant Rule Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantRuleConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getInvariantRuleConfiguration()
* @generated
@@ -181,6 +198,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of structural features of the '<em>Invariant Rule Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -190,6 +208,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of operations of the '<em>Invariant Rule Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -199,6 +218,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.ComposedRuleConfigurationImpl <em>Composed Rule Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.ComposedRuleConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getComposedRuleConfiguration()
* @generated
@@ -209,6 +229,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Composed Rules</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -218,6 +239,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of structural features of the '<em>Composed Rule Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -227,6 +249,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of operations of the '<em>Composed Rule Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -236,6 +259,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.AndRuleImpl <em>And Rule</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.AndRuleImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getAndRule()
* @generated
@@ -246,6 +270,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Composed Rules</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -255,6 +280,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of structural features of the '<em>And Rule</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -264,6 +290,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of operations of the '<em>And Rule</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -273,6 +300,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.OrRuleImpl <em>Or Rule</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.OrRuleImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getOrRule()
* @generated
@@ -283,6 +311,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The feature id for the '<em><b>Composed Rules</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -292,6 +321,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of structural features of the '<em>Or Rule</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -301,6 +331,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The number of operations of the '<em>Or Rule</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -311,6 +342,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration <em>Invariant Semantic Type Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Invariant Semantic Type Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration
* @generated
@@ -321,6 +353,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration#getInvariantRuleConfiguration <em>Invariant Rule Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the containment reference '<em>Invariant Rule Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration#getInvariantRuleConfiguration()
* @see #getInvariantSemanticTypeConfiguration()
@@ -332,6 +365,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantRuleConfiguration <em>Invariant Rule Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Invariant Rule Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantRuleConfiguration
* @generated
@@ -342,6 +376,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration <em>Composed Rule Configuration</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Composed Rule Configuration</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration
* @generated
@@ -352,6 +387,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration#getComposedRules <em>Composed Rules</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference list '<em>Composed Rules</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration#getComposedRules()
* @see #getComposedRuleConfiguration()
@@ -363,6 +399,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.AndRule <em>And Rule</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>And Rule</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.AndRule
* @generated
@@ -373,6 +410,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.OrRule <em>Or Rule</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Or Rule</em>'.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.OrRule
* @generated
@@ -383,6 +421,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -392,13 +431,14 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @generated
*/
interface Literals {
@@ -406,6 +446,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationImpl <em>Invariant Semantic Type Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getInvariantSemanticTypeConfiguration()
* @generated
@@ -416,6 +457,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '<em><b>Invariant Rule Configuration</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION = eINSTANCE.getInvariantSemanticTypeConfiguration_InvariantRuleConfiguration();
@@ -424,6 +466,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantRuleConfigurationImpl <em>Invariant Rule Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantRuleConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getInvariantRuleConfiguration()
* @generated
@@ -434,6 +477,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.ComposedRuleConfigurationImpl <em>Composed Rule Configuration</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.ComposedRuleConfigurationImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getComposedRuleConfiguration()
* @generated
@@ -444,6 +488,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '<em><b>Composed Rules</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES = eINSTANCE.getComposedRuleConfiguration_ComposedRules();
@@ -452,6 +497,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.AndRuleImpl <em>And Rule</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.AndRuleImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getAndRule()
* @generated
@@ -462,6 +508,7 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.OrRuleImpl <em>Or Rule</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.OrRuleImpl
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationPackageImpl#getOrRule()
* @generated
@@ -470,4 +517,4 @@ public interface InvariantSemanticTypeConfigurationPackage extends EPackage {
}
-} //InvariantSemanticTypeConfigurationPackage
+} // InvariantSemanticTypeConfigurationPackage
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRule.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRule.java
index ee768d800fd..7c8821fa27f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRule.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRule.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/AndRuleImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/AndRuleImpl.java
index 6a66b58904c..d1fcf2b8cf9 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/AndRuleImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/AndRuleImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -30,6 +30,7 @@ public class AndRuleImpl extends ComposedRuleConfigurationImpl implements AndRul
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AndRuleImpl() {
@@ -39,6 +40,7 @@ public class AndRuleImpl extends ComposedRuleConfigurationImpl implements AndRul
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -46,4 +48,4 @@ public class AndRuleImpl extends ComposedRuleConfigurationImpl implements AndRul
return InvariantSemanticTypeConfigurationPackage.Literals.AND_RULE;
}
-} //AndRuleImpl
+} // AndRuleImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/ComposedRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/ComposedRuleConfigurationImpl.java
index 21faea9770e..cf2b252e114 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/ComposedRuleConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/ComposedRuleConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -31,7 +31,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.ComposedRuleConfigurationImpl#getComposedRules <em>Composed Rules</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.ComposedRuleConfigurationImpl#getComposedRules <em>Composed Rules</em>}</li>
* </ul>
* </p>
*
@@ -42,6 +42,7 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
* The cached value of the '{@link #getComposedRules() <em>Composed Rules</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getComposedRules()
* @generated
* @ordered
@@ -51,6 +52,7 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedRuleConfigurationImpl() {
@@ -60,6 +62,7 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -70,6 +73,7 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<InvariantRuleConfiguration> getComposedRules() {
@@ -82,13 +86,14 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
- return getComposedRules();
+ case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
+ return getComposedRules();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -96,16 +101,17 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
- getComposedRules().clear();
- getComposedRules().addAll((Collection<? extends InvariantRuleConfiguration>)newValue);
- return;
+ case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
+ getComposedRules().clear();
+ getComposedRules().addAll((Collection<? extends InvariantRuleConfiguration>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -113,14 +119,15 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
- getComposedRules().clear();
- return;
+ case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
+ getComposedRules().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -128,15 +135,16 @@ public abstract class ComposedRuleConfigurationImpl extends InvariantRuleConfigu
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
- return composedRules != null && !composedRules.isEmpty();
+ case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION__COMPOSED_RULES:
+ return composedRules != null && !composedRules.isEmpty();
}
return super.eIsSet(featureID);
}
-} //ComposedRuleConfigurationImpl
+} // ComposedRuleConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantRuleConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantRuleConfigurationImpl.java
index e9b2a6df9d5..4ab396b3988 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantRuleConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantRuleConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -32,6 +32,7 @@ public abstract class InvariantRuleConfigurationImpl extends MinimalEObjectImpl.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected InvariantRuleConfigurationImpl() {
@@ -41,6 +42,7 @@ public abstract class InvariantRuleConfigurationImpl extends MinimalEObjectImpl.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -48,4 +50,4 @@ public abstract class InvariantRuleConfigurationImpl extends MinimalEObjectImpl.
return InvariantSemanticTypeConfigurationPackage.Literals.INVARIANT_RULE_CONFIGURATION;
}
-} //InvariantRuleConfigurationImpl
+} // InvariantRuleConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationFactoryImpl.java
index 963f8c448df..dc2e69f42f0 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationFactoryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationFactoryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,6 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl implements InvariantSemanticTypeConfigurationFactory {
@@ -33,16 +34,16 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static InvariantSemanticTypeConfigurationFactory init() {
try {
- InvariantSemanticTypeConfigurationFactory theInvariantSemanticTypeConfigurationFactory = (InvariantSemanticTypeConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(InvariantSemanticTypeConfigurationPackage.eNS_URI);
+ InvariantSemanticTypeConfigurationFactory theInvariantSemanticTypeConfigurationFactory = (InvariantSemanticTypeConfigurationFactory) EPackage.Registry.INSTANCE.getEFactory(InvariantSemanticTypeConfigurationPackage.eNS_URI);
if (theInvariantSemanticTypeConfigurationFactory != null) {
return theInvariantSemanticTypeConfigurationFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new InvariantSemanticTypeConfigurationFactoryImpl();
@@ -52,6 +53,7 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationFactoryImpl() {
@@ -61,22 +63,27 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION: return createInvariantSemanticTypeConfiguration();
- case InvariantSemanticTypeConfigurationPackage.AND_RULE: return createAndRule();
- case InvariantSemanticTypeConfigurationPackage.OR_RULE: return createOrRule();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION:
+ return createInvariantSemanticTypeConfiguration();
+ case InvariantSemanticTypeConfigurationPackage.AND_RULE:
+ return createAndRule();
+ case InvariantSemanticTypeConfigurationPackage.OR_RULE:
+ return createOrRule();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfiguration createInvariantSemanticTypeConfiguration() {
@@ -87,6 +94,7 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AndRule createAndRule() {
@@ -97,6 +105,7 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public OrRule createOrRule() {
@@ -107,15 +116,17 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationPackage getInvariantSemanticTypeConfigurationPackage() {
- return (InvariantSemanticTypeConfigurationPackage)getEPackage();
+ return (InvariantSemanticTypeConfigurationPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -124,4 +135,4 @@ public class InvariantSemanticTypeConfigurationFactoryImpl extends EFactoryImpl
return InvariantSemanticTypeConfigurationPackage.eINSTANCE;
}
-} //InvariantSemanticTypeConfigurationFactoryImpl
+} // InvariantSemanticTypeConfigurationFactoryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationImpl.java
index 1e44293af95..d8b2c092c7e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -33,7 +33,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationImpl#getInvariantRuleConfiguration <em>Invariant Rule Configuration</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.impl.InvariantSemanticTypeConfigurationImpl#getInvariantRuleConfiguration <em>Invariant Rule Configuration</em>}</li>
* </ul>
* </p>
*
@@ -44,6 +44,7 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
* The cached value of the '{@link #getInvariantRuleConfiguration() <em>Invariant Rule Configuration</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getInvariantRuleConfiguration()
* @generated
* @ordered
@@ -53,6 +54,7 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected InvariantSemanticTypeConfigurationImpl() {
@@ -62,6 +64,7 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -72,6 +75,7 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantRuleConfiguration getInvariantRuleConfiguration() {
@@ -81,14 +85,20 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetInvariantRuleConfiguration(InvariantRuleConfiguration newInvariantRuleConfiguration, NotificationChain msgs) {
InvariantRuleConfiguration oldInvariantRuleConfiguration = invariantRuleConfiguration;
invariantRuleConfiguration = newInvariantRuleConfiguration;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, oldInvariantRuleConfiguration, newInvariantRuleConfiguration);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, oldInvariantRuleConfiguration,
+ newInvariantRuleConfiguration);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
}
return msgs;
}
@@ -96,32 +106,39 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setInvariantRuleConfiguration(InvariantRuleConfiguration newInvariantRuleConfiguration) {
if (newInvariantRuleConfiguration != invariantRuleConfiguration) {
NotificationChain msgs = null;
- if (invariantRuleConfiguration != null)
- msgs = ((InternalEObject)invariantRuleConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, null, msgs);
- if (newInvariantRuleConfiguration != null)
- msgs = ((InternalEObject)newInvariantRuleConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, null, msgs);
+ if (invariantRuleConfiguration != null) {
+ msgs = ((InternalEObject) invariantRuleConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, null, msgs);
+ }
+ if (newInvariantRuleConfiguration != null) {
+ msgs = ((InternalEObject) newInvariantRuleConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, null, msgs);
+ }
msgs = basicSetInvariantRuleConfiguration(newInvariantRuleConfiguration, msgs);
- if (msgs != null) msgs.dispatch();
+ if (msgs != null) {
+ msgs.dispatch();
+ }
}
- else if (eNotificationRequired())
+ else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION, newInvariantRuleConfiguration, newInvariantRuleConfiguration));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
- return basicSetInvariantRuleConfiguration(null, msgs);
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
+ return basicSetInvariantRuleConfiguration(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -129,13 +146,14 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
- return getInvariantRuleConfiguration();
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
+ return getInvariantRuleConfiguration();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -143,14 +161,15 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
- setInvariantRuleConfiguration((InvariantRuleConfiguration)newValue);
- return;
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
+ setInvariantRuleConfiguration((InvariantRuleConfiguration) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -158,14 +177,15 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
- setInvariantRuleConfiguration((InvariantRuleConfiguration)null);
- return;
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
+ setInvariantRuleConfiguration((InvariantRuleConfiguration) null);
+ return;
}
super.eUnset(featureID);
}
@@ -173,15 +193,16 @@ public class InvariantSemanticTypeConfigurationImpl extends SemanticTypeConfigur
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
- return invariantRuleConfiguration != null;
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION__INVARIANT_RULE_CONFIGURATION:
+ return invariantRuleConfiguration != null;
}
return super.eIsSet(featureID);
}
-} //InvariantSemanticTypeConfigurationImpl
+} // InvariantSemanticTypeConfigurationImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationPackageImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationPackageImpl.java
index fe050d0066c..acf9bea091a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationPackageImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/InvariantSemanticTypeConfigurationPackageImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -32,12 +32,14 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl implements InvariantSemanticTypeConfigurationPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass invariantSemanticTypeConfigurationEClass = null;
@@ -45,6 +47,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass invariantRuleConfigurationEClass = null;
@@ -52,6 +55,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass composedRuleConfigurationEClass = null;
@@ -59,6 +63,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass andRuleEClass = null;
@@ -66,20 +71,17 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass orRuleEClass = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationPackage#eNS_URI
* @see #init()
@@ -92,27 +94,31 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>
+ * This method is used to initialize {@link InvariantSemanticTypeConfigurationPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
*
- * <p>This method is used to initialize {@link InvariantSemanticTypeConfigurationPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static InvariantSemanticTypeConfigurationPackage init() {
- if (isInited) return (InvariantSemanticTypeConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(InvariantSemanticTypeConfigurationPackage.eNS_URI);
+ if (isInited) {
+ return (InvariantSemanticTypeConfigurationPackage) EPackage.Registry.INSTANCE.getEPackage(InvariantSemanticTypeConfigurationPackage.eNS_URI);
+ }
// Obtain or create and register package
- InvariantSemanticTypeConfigurationPackageImpl theInvariantSemanticTypeConfigurationPackage = (InvariantSemanticTypeConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantSemanticTypeConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantSemanticTypeConfigurationPackageImpl());
+ InvariantSemanticTypeConfigurationPackageImpl theInvariantSemanticTypeConfigurationPackage = (InvariantSemanticTypeConfigurationPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantSemanticTypeConfigurationPackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI) : new InvariantSemanticTypeConfigurationPackageImpl());
isInited = true;
@@ -128,7 +134,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
// Mark meta-data to indicate it can't be changed
theInvariantSemanticTypeConfigurationPackage.freeze();
-
+
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(InvariantSemanticTypeConfigurationPackage.eNS_URI, theInvariantSemanticTypeConfigurationPackage);
return theInvariantSemanticTypeConfigurationPackage;
@@ -137,6 +143,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getInvariantSemanticTypeConfiguration() {
@@ -146,15 +153,17 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getInvariantSemanticTypeConfiguration_InvariantRuleConfiguration() {
- return (EReference)invariantSemanticTypeConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EReference) invariantSemanticTypeConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getInvariantRuleConfiguration() {
@@ -164,6 +173,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getComposedRuleConfiguration() {
@@ -173,15 +183,17 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EReference getComposedRuleConfiguration_ComposedRules() {
- return (EReference)composedRuleConfigurationEClass.getEStructuralFeatures().get(0);
+ return (EReference) composedRuleConfigurationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getAndRule() {
@@ -191,6 +203,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClass getOrRule() {
@@ -200,28 +213,33 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationFactory getInvariantSemanticTypeConfigurationFactory() {
- return (InvariantSemanticTypeConfigurationFactory)getEFactoryInstance();
+ return (InvariantSemanticTypeConfigurationFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createPackageContents() {
- if (isCreated) return;
+ if (isCreated) {
+ return;
+ }
isCreated = true;
// Create classes and their features
@@ -241,19 +259,23 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) return;
+ if (isInitialized) {
+ return;
+ }
isInitialized = true;
// Initialize package
@@ -262,7 +284,7 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
setNsURI(eNS_URI);
// Obtain other dependent packages
- ExtendedtypesPackage theExtendedtypesPackage = (ExtendedtypesPackage)EPackage.Registry.INSTANCE.getEPackage(ExtendedtypesPackage.eNS_URI);
+ ExtendedtypesPackage theExtendedtypesPackage = (ExtendedtypesPackage) EPackage.Registry.INSTANCE.getEPackage(ExtendedtypesPackage.eNS_URI);
// Create type parameters
@@ -276,12 +298,14 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
// Initialize classes, features, and operations; add parameters
initEClass(invariantSemanticTypeConfigurationEClass, InvariantSemanticTypeConfiguration.class, "InvariantSemanticTypeConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getInvariantSemanticTypeConfiguration_InvariantRuleConfiguration(), this.getInvariantRuleConfiguration(), null, "invariantRuleConfiguration", null, 1, 1, InvariantSemanticTypeConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getInvariantSemanticTypeConfiguration_InvariantRuleConfiguration(), this.getInvariantRuleConfiguration(), null, "invariantRuleConfiguration", null, 1, 1, InvariantSemanticTypeConfiguration.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(composedRuleConfigurationEClass, ComposedRuleConfiguration.class, "ComposedRuleConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getComposedRuleConfiguration_ComposedRules(), this.getInvariantRuleConfiguration(), null, "composedRules", null, 2, -1, ComposedRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getComposedRuleConfiguration_ComposedRules(), this.getInvariantRuleConfiguration(), null, "composedRules", null, 2, -1, ComposedRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(andRuleEClass, AndRule.class, "AndRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -291,4 +315,4 @@ public class InvariantSemanticTypeConfigurationPackageImpl extends EPackageImpl
createResource(eNS_URI);
}
-} //InvariantSemanticTypeConfigurationPackageImpl
+} // InvariantSemanticTypeConfigurationPackageImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/OrRuleImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/OrRuleImpl.java
index cbdab1d11ff..78019f0ab4d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/OrRuleImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/impl/OrRuleImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -30,6 +30,7 @@ public class OrRuleImpl extends ComposedRuleConfigurationImpl implements OrRule
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected OrRuleImpl() {
@@ -39,6 +40,7 @@ public class OrRuleImpl extends ComposedRuleConfigurationImpl implements OrRule
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -46,4 +48,4 @@ public class OrRuleImpl extends ComposedRuleConfigurationImpl implements OrRule
return InvariantSemanticTypeConfigurationPackage.Literals.OR_RULE;
}
-} //OrRuleImpl
+} // OrRuleImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationAdapterFactory.java
index 3773f4efda0..8c524a8d69c 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationAdapterFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationAdapterFactory.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -30,6 +30,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationPackage
* @generated
*/
@@ -38,6 +39,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static InvariantSemanticTypeConfigurationPackage modelPackage;
@@ -46,6 +48,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationAdapterFactory() {
@@ -59,6 +62,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
+ *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@@ -68,7 +72,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -77,59 +81,70 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected InvariantSemanticTypeConfigurationSwitch<Adapter> modelSwitch =
- new InvariantSemanticTypeConfigurationSwitch<Adapter>() {
- @Override
- public Adapter caseInvariantSemanticTypeConfiguration(InvariantSemanticTypeConfiguration object) {
- return createInvariantSemanticTypeConfigurationAdapter();
- }
- @Override
- public Adapter caseInvariantRuleConfiguration(InvariantRuleConfiguration object) {
- return createInvariantRuleConfigurationAdapter();
- }
- @Override
- public Adapter caseComposedRuleConfiguration(ComposedRuleConfiguration object) {
- return createComposedRuleConfigurationAdapter();
- }
- @Override
- public Adapter caseAndRule(AndRule object) {
- return createAndRuleAdapter();
- }
- @Override
- public Adapter caseOrRule(OrRule object) {
- return createOrRuleAdapter();
- }
- @Override
- public Adapter caseConfigurationElement(ConfigurationElement object) {
- return createConfigurationElementAdapter();
- }
- @Override
- public Adapter caseElementTypeConfiguration(ElementTypeConfiguration object) {
- return createElementTypeConfigurationAdapter();
- }
- @Override
- public Adapter caseSemanticTypeConfiguration(SemanticTypeConfiguration object) {
- return createSemanticTypeConfigurationAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ new InvariantSemanticTypeConfigurationSwitch<Adapter>() {
+ @Override
+ public Adapter caseInvariantSemanticTypeConfiguration(InvariantSemanticTypeConfiguration object) {
+ return createInvariantSemanticTypeConfigurationAdapter();
+ }
+
+ @Override
+ public Adapter caseInvariantRuleConfiguration(InvariantRuleConfiguration object) {
+ return createInvariantRuleConfigurationAdapter();
+ }
+
+ @Override
+ public Adapter caseComposedRuleConfiguration(ComposedRuleConfiguration object) {
+ return createComposedRuleConfigurationAdapter();
+ }
+
+ @Override
+ public Adapter caseAndRule(AndRule object) {
+ return createAndRuleAdapter();
+ }
+
+ @Override
+ public Adapter caseOrRule(OrRule object) {
+ return createOrRuleAdapter();
+ }
+
+ @Override
+ public Adapter caseConfigurationElement(ConfigurationElement object) {
+ return createConfigurationElementAdapter();
+ }
+
+ @Override
+ public Adapter caseElementTypeConfiguration(ElementTypeConfiguration object) {
+ return createElementTypeConfigurationAdapter();
+ }
+
+ @Override
+ public Adapter caseSemanticTypeConfiguration(SemanticTypeConfiguration object) {
+ return createSemanticTypeConfigurationAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param target the object to adapt.
+ *
+ * @param target
+ * the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
+ return modelSwitch.doSwitch((EObject) target);
}
@@ -139,6 +154,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfiguration
* @generated
@@ -153,6 +169,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantRuleConfiguration
* @generated
@@ -167,6 +184,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.ComposedRuleConfiguration
* @generated
@@ -181,6 +199,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.AndRule
* @generated
@@ -195,6 +214,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.OrRule
* @generated
@@ -209,6 +229,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement
* @generated
@@ -223,6 +244,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration
* @generated
@@ -237,6 +259,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.SemanticTypeConfiguration
* @generated
@@ -250,6 +273,7 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -257,4 +281,4 @@ public class InvariantSemanticTypeConfigurationAdapterFactory extends AdapterFac
return null;
}
-} //InvariantSemanticTypeConfigurationAdapterFactory
+} // InvariantSemanticTypeConfigurationAdapterFactory
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceFactoryImpl.java
index 55974c31d8a..c9b0768df02 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceFactoryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceFactoryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -22,6 +22,7 @@ import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.util.InvariantSemanticTypeConfigurationResourceImpl
* @generated
*/
@@ -30,6 +31,7 @@ public class InvariantSemanticTypeConfigurationResourceFactoryImpl extends Resou
* Creates an instance of the resource factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationResourceFactoryImpl() {
@@ -40,6 +42,7 @@ public class InvariantSemanticTypeConfigurationResourceFactoryImpl extends Resou
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -48,4 +51,4 @@ public class InvariantSemanticTypeConfigurationResourceFactoryImpl extends Resou
return result;
}
-} //InvariantSemanticTypeConfigurationResourceFactoryImpl
+} // InvariantSemanticTypeConfigurationResourceFactoryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceImpl.java
index 295cf87c056..96454c2895a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationResourceImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -20,6 +20,7 @@ import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.util.InvariantSemanticTypeConfigurationResourceFactoryImpl
* @generated
*/
@@ -28,11 +29,13 @@ public class InvariantSemanticTypeConfigurationResourceImpl extends XMLResourceI
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param uri the URI of the new resource.
+ *
+ * @param uri
+ * the URI of the new resource.
* @generated
*/
public InvariantSemanticTypeConfigurationResourceImpl(URI uri) {
super(uri);
}
-} //InvariantSemanticTypeConfigurationResourceImpl
+} // InvariantSemanticTypeConfigurationResourceImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationSwitch.java
index eef47b13987..93213450d1d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationSwitch.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationSwitch.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,13 +26,13 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration.InvariantSemanticTypeConfigurationPackage
* @generated
*/
@@ -41,6 +41,7 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static InvariantSemanticTypeConfigurationPackage modelPackage;
@@ -49,6 +50,7 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationSwitch() {
@@ -61,6 +63,7 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -74,51 +77,79 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION: {
- InvariantSemanticTypeConfiguration invariantSemanticTypeConfiguration = (InvariantSemanticTypeConfiguration)theEObject;
- T result = caseInvariantSemanticTypeConfiguration(invariantSemanticTypeConfiguration);
- if (result == null) result = caseSemanticTypeConfiguration(invariantSemanticTypeConfiguration);
- if (result == null) result = caseElementTypeConfiguration(invariantSemanticTypeConfiguration);
- if (result == null) result = caseConfigurationElement(invariantSemanticTypeConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_SEMANTIC_TYPE_CONFIGURATION: {
+ InvariantSemanticTypeConfiguration invariantSemanticTypeConfiguration = (InvariantSemanticTypeConfiguration) theEObject;
+ T result = caseInvariantSemanticTypeConfiguration(invariantSemanticTypeConfiguration);
+ if (result == null) {
+ result = caseSemanticTypeConfiguration(invariantSemanticTypeConfiguration);
}
- case InvariantSemanticTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION: {
- InvariantRuleConfiguration invariantRuleConfiguration = (InvariantRuleConfiguration)theEObject;
- T result = caseInvariantRuleConfiguration(invariantRuleConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = caseElementTypeConfiguration(invariantSemanticTypeConfiguration);
}
- case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION: {
- ComposedRuleConfiguration composedRuleConfiguration = (ComposedRuleConfiguration)theEObject;
- T result = caseComposedRuleConfiguration(composedRuleConfiguration);
- if (result == null) result = caseInvariantRuleConfiguration(composedRuleConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = caseConfigurationElement(invariantSemanticTypeConfiguration);
}
- case InvariantSemanticTypeConfigurationPackage.AND_RULE: {
- AndRule andRule = (AndRule)theEObject;
- T result = caseAndRule(andRule);
- if (result == null) result = caseComposedRuleConfiguration(andRule);
- if (result == null) result = caseInvariantRuleConfiguration(andRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- case InvariantSemanticTypeConfigurationPackage.OR_RULE: {
- OrRule orRule = (OrRule)theEObject;
- T result = caseOrRule(orRule);
- if (result == null) result = caseComposedRuleConfiguration(orRule);
- if (result == null) result = caseInvariantRuleConfiguration(orRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ return result;
+ }
+ case InvariantSemanticTypeConfigurationPackage.INVARIANT_RULE_CONFIGURATION: {
+ InvariantRuleConfiguration invariantRuleConfiguration = (InvariantRuleConfiguration) theEObject;
+ T result = caseInvariantRuleConfiguration(invariantRuleConfiguration);
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ case InvariantSemanticTypeConfigurationPackage.COMPOSED_RULE_CONFIGURATION: {
+ ComposedRuleConfiguration composedRuleConfiguration = (ComposedRuleConfiguration) theEObject;
+ T result = caseComposedRuleConfiguration(composedRuleConfiguration);
+ if (result == null) {
+ result = caseInvariantRuleConfiguration(composedRuleConfiguration);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case InvariantSemanticTypeConfigurationPackage.AND_RULE: {
+ AndRule andRule = (AndRule) theEObject;
+ T result = caseAndRule(andRule);
+ if (result == null) {
+ result = caseComposedRuleConfiguration(andRule);
+ }
+ if (result == null) {
+ result = caseInvariantRuleConfiguration(andRule);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case InvariantSemanticTypeConfigurationPackage.OR_RULE: {
+ OrRule orRule = (OrRule) theEObject;
+ T result = caseOrRule(orRule);
+ if (result == null) {
+ result = caseComposedRuleConfiguration(orRule);
+ }
+ if (result == null) {
+ result = caseInvariantRuleConfiguration(orRule);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -128,7 +159,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Invariant Semantic Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -143,7 +176,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Invariant Rule Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -158,7 +193,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Composed Rule Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -173,7 +210,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>And Rule</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -188,7 +227,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Or Rule</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -203,7 +244,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Configuration Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -218,7 +261,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Element Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -233,7 +278,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Semantic Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -248,7 +295,9 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -258,4 +307,4 @@ public class InvariantSemanticTypeConfigurationSwitch<T> extends Switch<T> {
return null;
}
-} //InvariantSemanticTypeConfigurationSwitch
+} // InvariantSemanticTypeConfigurationSwitch
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationXMLProcessor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationXMLProcessor.java
index 6e8ba050b2f..65317086786 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationXMLProcessor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/util/InvariantSemanticTypeConfigurationXMLProcessor.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,6 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguratio
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InvariantSemanticTypeConfigurationXMLProcessor extends XMLProcessor {
@@ -34,17 +35,19 @@ public class InvariantSemanticTypeConfigurationXMLProcessor extends XMLProcessor
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InvariantSemanticTypeConfigurationXMLProcessor() {
super((EPackage.Registry.INSTANCE));
InvariantSemanticTypeConfigurationPackage.eINSTANCE.eClass();
}
-
+
/**
* Register for "*" and "xml" file extensions the InvariantSemanticTypeConfigurationResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -57,4 +60,4 @@ public class InvariantSemanticTypeConfigurationXMLProcessor extends XMLProcessor
return registrations;
}
-} //InvariantSemanticTypeConfigurationXMLProcessor
+} // InvariantSemanticTypeConfigurationXMLProcessor
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesAdapterFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesAdapterFactory.java
index 4cf0a80afa4..d0929c709fd 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesAdapterFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesAdapterFactory.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,7 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.*;
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage
* @generated
*/
@@ -36,7 +36,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected static ExtendedtypesPackage modelPackage;
@@ -45,11 +45,11 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesAdapterFactory() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = ExtendedtypesPackage.eINSTANCE;
}
}
@@ -59,17 +59,17 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
- *
+ *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
- if(object == modelPackage) {
+ if (object == modelPackage) {
return true;
}
- if(object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ if (object instanceof EObject) {
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -78,7 +78,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ExtendedtypesSwitch<Adapter> modelSwitch = new ExtendedtypesSwitch<Adapter>() {
@@ -158,15 +158,15 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param target
- * the object to adapt.
+ * the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
+ return modelSwitch.doSwitch((EObject) target);
}
/**
@@ -176,7 +176,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet
* @generated
@@ -192,7 +192,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeConfiguration
* @generated
@@ -207,7 +207,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.IconEntry
* @generated
@@ -223,7 +223,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ConfigurationElement
* @generated
@@ -239,7 +239,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.MatcherConfiguration
* @generated
@@ -249,13 +249,12 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.extendedtypes.ActionConfiguration <em>Action Configuration</em>}
- * '.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.extendedtypes.ActionConfiguration <em>Action Configuration</em>} '.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ActionConfiguration
* @generated
@@ -271,7 +270,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ViewActionConfiguration
* @generated
@@ -287,7 +286,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.SemanticActionConfiguration
* @generated
@@ -303,7 +302,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.SemanticTypeConfiguration
* @generated
@@ -319,7 +318,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ViewTypeConfiguration
* @generated
@@ -335,7 +334,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.ElementTypeAdviceConfiguration
* @generated
@@ -351,7 +350,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.AspectSemanticTypeConfiguration
* @generated
@@ -367,7 +366,7 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @see org.eclipse.papyrus.infra.extendedtypes.AspectViewTypeConfiguration
* @generated
@@ -381,11 +380,11 @@ public class ExtendedtypesAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
- *
+ *
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
-} //ExtendedtypesAdapterFactory
+} // ExtendedtypesAdapterFactory
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceFactoryImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceFactoryImpl.java
index 59edf4547d6..49c9ec1d98e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceFactoryImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceFactoryImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -22,7 +22,7 @@ import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.util.ExtendedtypesResourceImpl
* @generated
*/
@@ -32,7 +32,7 @@ public class ExtendedtypesResourceFactoryImpl extends ResourceFactoryImpl {
* Creates an instance of the resource factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesResourceFactoryImpl() {
@@ -43,7 +43,7 @@ public class ExtendedtypesResourceFactoryImpl extends ResourceFactoryImpl {
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -51,4 +51,4 @@ public class ExtendedtypesResourceFactoryImpl extends ResourceFactoryImpl {
Resource result = new ExtendedtypesResourceImpl(uri);
return result;
}
-} //ExtendedtypesResourceFactoryImpl
+} // ExtendedtypesResourceFactoryImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceImpl.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceImpl.java
index 432ba94cd22..3b5dc3f9e14 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceImpl.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesResourceImpl.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -20,7 +20,7 @@ import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.util.ExtendedtypesResourceFactoryImpl
* @generated
*/
@@ -30,12 +30,12 @@ public class ExtendedtypesResourceImpl extends XMLResourceImpl {
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @param uri
- * the URI of the new resource.
+ * the URI of the new resource.
* @generated
*/
public ExtendedtypesResourceImpl(URI uri) {
super(uri);
}
-} //ExtendedtypesResourceImpl
+} // ExtendedtypesResourceImpl
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java
index 49c8d3f741c..d72efa55890 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -28,7 +28,7 @@ import org.eclipse.papyrus.infra.extendedtypes.*;
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- *
+ *
* @see org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage
* @generated
*/
@@ -38,7 +38,7 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected static ExtendedtypesPackage modelPackage;
@@ -47,11 +47,11 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesSwitch() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = ExtendedtypesPackage.eINSTANCE;
}
}
@@ -60,7 +60,7 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -74,151 +74,169 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
- switch(classifierID) {
- case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET:
- {
- ExtendedElementTypeSet extendedElementTypeSet = (ExtendedElementTypeSet)theEObject;
+ switch (classifierID) {
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET: {
+ ExtendedElementTypeSet extendedElementTypeSet = (ExtendedElementTypeSet) theEObject;
T result = caseExtendedElementTypeSet(extendedElementTypeSet);
- if(result == null)
+ if (result == null) {
result = caseConfigurationElement(extendedElementTypeSet);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION:
- {
- ElementTypeConfiguration elementTypeConfiguration = (ElementTypeConfiguration)theEObject;
+ case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION: {
+ ElementTypeConfiguration elementTypeConfiguration = (ElementTypeConfiguration) theEObject;
T result = caseElementTypeConfiguration(elementTypeConfiguration);
- if(result == null)
+ if (result == null) {
result = caseConfigurationElement(elementTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.ICON_ENTRY:
- {
- IconEntry iconEntry = (IconEntry)theEObject;
+ case ExtendedtypesPackage.ICON_ENTRY: {
+ IconEntry iconEntry = (IconEntry) theEObject;
T result = caseIconEntry(iconEntry);
- if(result == null)
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.CONFIGURATION_ELEMENT:
- {
- ConfigurationElement configurationElement = (ConfigurationElement)theEObject;
+ case ExtendedtypesPackage.CONFIGURATION_ELEMENT: {
+ ConfigurationElement configurationElement = (ConfigurationElement) theEObject;
T result = caseConfigurationElement(configurationElement);
- if(result == null)
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.MATCHER_CONFIGURATION:
- {
- MatcherConfiguration matcherConfiguration = (MatcherConfiguration)theEObject;
+ case ExtendedtypesPackage.MATCHER_CONFIGURATION: {
+ MatcherConfiguration matcherConfiguration = (MatcherConfiguration) theEObject;
T result = caseMatcherConfiguration(matcherConfiguration);
- if(result == null)
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.ACTION_CONFIGURATION:
- {
- ActionConfiguration actionConfiguration = (ActionConfiguration)theEObject;
+ case ExtendedtypesPackage.ACTION_CONFIGURATION: {
+ ActionConfiguration actionConfiguration = (ActionConfiguration) theEObject;
T result = caseActionConfiguration(actionConfiguration);
- if(result == null)
+ if (result == null) {
result = caseConfigurationElement(actionConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.VIEW_ACTION_CONFIGURATION:
- {
- ViewActionConfiguration viewActionConfiguration = (ViewActionConfiguration)theEObject;
+ case ExtendedtypesPackage.VIEW_ACTION_CONFIGURATION: {
+ ViewActionConfiguration viewActionConfiguration = (ViewActionConfiguration) theEObject;
T result = caseViewActionConfiguration(viewActionConfiguration);
- if(result == null)
+ if (result == null) {
result = caseActionConfiguration(viewActionConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseConfigurationElement(viewActionConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.SEMANTIC_ACTION_CONFIGURATION:
- {
- SemanticActionConfiguration semanticActionConfiguration = (SemanticActionConfiguration)theEObject;
+ case ExtendedtypesPackage.SEMANTIC_ACTION_CONFIGURATION: {
+ SemanticActionConfiguration semanticActionConfiguration = (SemanticActionConfiguration) theEObject;
T result = caseSemanticActionConfiguration(semanticActionConfiguration);
- if(result == null)
+ if (result == null) {
result = caseActionConfiguration(semanticActionConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseConfigurationElement(semanticActionConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.SEMANTIC_TYPE_CONFIGURATION:
- {
- SemanticTypeConfiguration semanticTypeConfiguration = (SemanticTypeConfiguration)theEObject;
+ case ExtendedtypesPackage.SEMANTIC_TYPE_CONFIGURATION: {
+ SemanticTypeConfiguration semanticTypeConfiguration = (SemanticTypeConfiguration) theEObject;
T result = caseSemanticTypeConfiguration(semanticTypeConfiguration);
- if(result == null)
+ if (result == null) {
result = caseElementTypeConfiguration(semanticTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseConfigurationElement(semanticTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION:
- {
- ViewTypeConfiguration viewTypeConfiguration = (ViewTypeConfiguration)theEObject;
+ case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION: {
+ ViewTypeConfiguration viewTypeConfiguration = (ViewTypeConfiguration) theEObject;
T result = caseViewTypeConfiguration(viewTypeConfiguration);
- if(result == null)
+ if (result == null) {
result = caseElementTypeConfiguration(viewTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseConfigurationElement(viewTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.ELEMENT_TYPE_ADVICE_CONFIGURATION:
- {
- ElementTypeAdviceConfiguration elementTypeAdviceConfiguration = (ElementTypeAdviceConfiguration)theEObject;
+ case ExtendedtypesPackage.ELEMENT_TYPE_ADVICE_CONFIGURATION: {
+ ElementTypeAdviceConfiguration elementTypeAdviceConfiguration = (ElementTypeAdviceConfiguration) theEObject;
T result = caseElementTypeAdviceConfiguration(elementTypeAdviceConfiguration);
- if(result == null)
+ if (result == null) {
result = caseConfigurationElement(elementTypeAdviceConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION:
- {
- AspectSemanticTypeConfiguration aspectSemanticTypeConfiguration = (AspectSemanticTypeConfiguration)theEObject;
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION: {
+ AspectSemanticTypeConfiguration aspectSemanticTypeConfiguration = (AspectSemanticTypeConfiguration) theEObject;
T result = caseAspectSemanticTypeConfiguration(aspectSemanticTypeConfiguration);
- if(result == null)
+ if (result == null) {
result = caseSemanticTypeConfiguration(aspectSemanticTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseElementTypeConfiguration(aspectSemanticTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseConfigurationElement(aspectSemanticTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
- case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION:
- {
- AspectViewTypeConfiguration aspectViewTypeConfiguration = (AspectViewTypeConfiguration)theEObject;
+ case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION: {
+ AspectViewTypeConfiguration aspectViewTypeConfiguration = (AspectViewTypeConfiguration) theEObject;
T result = caseAspectViewTypeConfiguration(aspectViewTypeConfiguration);
- if(result == null)
+ if (result == null) {
result = caseViewTypeConfiguration(aspectViewTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseElementTypeConfiguration(aspectViewTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = caseConfigurationElement(aspectViewTypeConfiguration);
- if(result == null)
+ }
+ if (result == null) {
result = defaultCase(theEObject);
+ }
return result;
}
default:
@@ -232,9 +250,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Extended Element Type Set</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -249,9 +267,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Element Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -266,9 +284,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Icon Entry</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -283,9 +301,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Configuration Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -300,9 +318,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Matcher Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -317,9 +335,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Action Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -334,9 +352,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>View Action Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -351,9 +369,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Semantic Action Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -368,9 +386,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Semantic Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -385,9 +403,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>View Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -402,9 +420,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Element Type Advice Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -419,9 +437,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Aspect Semantic Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -436,9 +454,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Aspect View Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -453,9 +471,9 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- *
+ *
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -464,4 +482,4 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
public T defaultCase(EObject object) {
return null;
}
-} //ExtendedtypesSwitch
+} // ExtendedtypesSwitch
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesXMLProcessor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesXMLProcessor.java
index cc706b9d3ae..b6bf4dd1c1e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesXMLProcessor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesXMLProcessor.java
@@ -1,12 +1,12 @@
/**
* Copyright (c) 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
*/
@@ -26,7 +26,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public class ExtendedtypesXMLProcessor extends XMLProcessor {
@@ -35,7 +35,7 @@ public class ExtendedtypesXMLProcessor extends XMLProcessor {
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ExtendedtypesXMLProcessor() {
@@ -47,16 +47,16 @@ public class ExtendedtypesXMLProcessor extends XMLProcessor {
* Register for "*" and "xml" file extensions the ExtendedtypesResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
protected Map<String, Resource.Factory> getRegistrations() {
- if(registrations == null) {
+ if (registrations == null) {
super.getRegistrations();
registrations.put(XML_EXTENSION, new ExtendedtypesResourceFactoryImpl());
registrations.put(STAR_EXTENSION, new ExtendedtypesResourceFactoryImpl());
}
return registrations;
}
-} //ExtendedtypesXMLProcessor
+} // ExtendedtypesXMLProcessor
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AbstractConfigurableElementTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AbstractConfigurableElementTypeFactory.java
index e45cc02f473..ec8c525d354 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AbstractConfigurableElementTypeFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AbstractConfigurableElementTypeFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -43,18 +43,19 @@ public abstract class AbstractConfigurableElementTypeFactory<T extends ElementTy
String displayName = configuration.getName();
// Specialized element types
List<IElementType> specializedTypes = new ArrayList<IElementType>(configuration.getSpecializedTypesID().size());
- for(String specializedTypeId : configuration.getSpecializedTypesID()) {
+ for (String specializedTypeId : configuration.getSpecializedTypesID()) {
IElementType specializedType = ElementTypeRegistry.getInstance().getType(specializedTypeId);
specializedTypes.add(specializedType);
}
- IElementType[] elementTypes = specializedTypes.toArray(new IElementType[]{});
+ IElementType[] elementTypes = specializedTypes.toArray(new IElementType[] {});
// icon associated to the element Type (GUI)
IconEntry entry = configuration.getIconEntry();
URL iconURL = null;
- if(entry != null) {
+ if (entry != null) {
iconURL = getURLFromEntry(entry);
}
- IExtendedHintedElementType type = new ExtendedHintedElementType(id, iconURL, displayName, elementTypes, createElementMatcher(configuration), createContainerDescriptor(configuration), createEditHelperAdvice(configuration), getSemanticHint(configuration), createElementCreationValidator(configuration));
+ IExtendedHintedElementType type = new ExtendedHintedElementType(id, iconURL, displayName, elementTypes, createElementMatcher(configuration), createContainerDescriptor(configuration), createEditHelperAdvice(configuration),
+ getSemanticHint(configuration), createElementCreationValidator(configuration));
return type;
}
@@ -79,14 +80,16 @@ public abstract class AbstractConfigurableElementTypeFactory<T extends ElementTy
/**
* Creates the element matcher for the given configuration
- * @param configuration the configuration from which element matcher should be created
+ *
+ * @param configuration
+ * the configuration from which element matcher should be created
* @return the new element matcher for the created element type
*/
protected IElementMatcher createElementMatcher(T configuration) {
MatcherConfiguration matcherConfiguration = configuration.getMatcherConfiguration();
- if(matcherConfiguration==null) {
+ if (matcherConfiguration == null) {
return null;
- }
+ }
// create matcher from the configuration
IElementMatcher matcher = ConfigurableElementMatcherFactoryRegistry.getInstance().createElementMatcher(matcherConfiguration);
return matcher;
@@ -95,7 +98,7 @@ public abstract class AbstractConfigurableElementTypeFactory<T extends ElementTy
/**
* {@inheritDoc}
*/
- public abstract ICreationElementValidator createElementCreationValidator(T configuration) ;
+ public abstract ICreationElementValidator createElementCreationValidator(T configuration);
/**
* @param entry
@@ -103,11 +106,11 @@ public abstract class AbstractConfigurableElementTypeFactory<T extends ElementTy
*/
protected URL getURLFromEntry(IconEntry entry) {
Bundle bundle = Platform.getBundle(entry.getBundleId());
- if(bundle == null) {
+ if (bundle == null) {
return null;
}
URL result = bundle.getEntry(entry.getIconPath());
- if(result == null) {
+ if (result == null) {
try {
result = new URL(entry.getIconPath());
} catch (MalformedURLException e) {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/Activator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/Activator.java
index 96da7016787..47be639210a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/Activator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/Activator.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2014 CEA LIST.
*
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -38,6 +38,7 @@ public class Activator extends AbstractUIPlugin {
/*
* (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
@Override
@@ -49,6 +50,7 @@ public class Activator extends AbstractUIPlugin {
/*
* (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
@Override
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectConfigurationFactoryRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectConfigurationFactoryRegistry.java
index 5f6d2d90cad..cb2fa65454e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectConfigurationFactoryRegistry.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectConfigurationFactoryRegistry.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -28,7 +28,7 @@ import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
import org.osgi.framework.Bundle;
/**
- * Registry that manages all possible pre/post action configurations
+ * Registry that manages all possible pre/post action configurations
*/
public class AspectConfigurationFactoryRegistry {
@@ -40,11 +40,11 @@ public class AspectConfigurationFactoryRegistry {
/**
* returns the singleton instance of this registry
- *
+ *
* @return the singleton instance of this registry
*/
public static synchronized AspectConfigurationFactoryRegistry getInstance() {
- if(registry == null) {
+ if (registry == null) {
registry = new AspectConfigurationFactoryRegistry();
registry.init();
}
@@ -55,20 +55,20 @@ public class AspectConfigurationFactoryRegistry {
* Inits the registry.
*/
protected void init() {
- configurationTypeToClassDescriptor = new HashMap<String, AspectConfigurationFactoryRegistry.ConfigurableClassDescriptor>();
- //read invariant rule configuration etension point
+ configurationTypeToClassDescriptor = new HashMap<String, AspectConfigurationFactoryRegistry.ConfigurableClassDescriptor>();
+ // read invariant rule configuration etension point
IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IAspectTypeExtensionPoint.EXTENSION_POINT_ID);
- // for each element, parses and retrieve the model file. then loads it and returns the root element
- for(IConfigurationElement configurationElement : elements) {
- // contributor will always be the same, but implementation could be different.
+ // for each element, parses and retrieve the model file. then loads it and returns the root element
+ for (IConfigurationElement configurationElement : elements) {
+ // contributor will always be the same, but implementation could be different.
String contributorName = configurationElement.getContributor().getName();
String configurationClass = configurationElement.getAttribute(IAspectTypeExtensionPoint.CONFIGURATION_CLASS);
-
+
String editHelperAdviceClassName = configurationElement.getAttribute(IAspectTypeExtensionPoint.EDIT_HELPER_ADVICE_CLASS);
String containerDescriptorClassName = configurationElement.getAttribute(IAspectTypeExtensionPoint.CONTAINER_DESCRIPTOR_CLASS);
String creationElementValidatorClassName = configurationElement.getAttribute(IAspectTypeExtensionPoint.CREATION_ELEMENT_VALIDATOR_CLASS);
-
+
ConfigurableClassDescriptor configurableClassDescriptor = new ConfigurableClassDescriptor(contributorName, editHelperAdviceClassName, contributorName, containerDescriptorClassName, contributorName, creationElementValidatorClassName);
configurationTypeToClassDescriptor.put(configurationClass, configurableClassDescriptor);
}
@@ -81,12 +81,12 @@ public class AspectConfigurationFactoryRegistry {
*/
public IContainerDescriptor createContainerDescriptor(ActionConfiguration ruleConfiguration) {
Class<IActionContainerDescriptor<ActionConfiguration>> containerDescriptorClass = getContainerDescriptorClass(ruleConfiguration);
- if(containerDescriptorClass == null) {
+ if (containerDescriptorClass == null) {
return null;
}
try {
IActionContainerDescriptor<ActionConfiguration> containerDescriptor = containerDescriptorClass.newInstance();
- if(containerDescriptor != null) {
+ if (containerDescriptor != null) {
containerDescriptor.init(ruleConfiguration);
}
return containerDescriptor;
@@ -104,13 +104,13 @@ public class AspectConfigurationFactoryRegistry {
*/
public IEditHelperAdvice createEditHelperAdvice(ActionConfiguration actionConfiguration) {
Class<IActionEditHelperAdvice<ActionConfiguration>> editHelperAdviceClass = getEditHelperAdviceClass(actionConfiguration);
- if(editHelperAdviceClass == null) {
- Activator.log.error("impossible to find the edit helper advice implementation for configuration type : " + ((actionConfiguration!=null) ? actionConfiguration.eClass().getName() : "null"), null);
+ if (editHelperAdviceClass == null) {
+ Activator.log.error("impossible to find the edit helper advice implementation for configuration type : " + ((actionConfiguration != null) ? actionConfiguration.eClass().getName() : "null"), null);
return null;
}
try {
IActionEditHelperAdvice<ActionConfiguration> editHelperAdvice = editHelperAdviceClass.newInstance();
- if(editHelperAdvice != null) {
+ if (editHelperAdvice != null) {
editHelperAdvice.init(actionConfiguration);
}
return editHelperAdvice;
@@ -121,20 +121,20 @@ public class AspectConfigurationFactoryRegistry {
}
return null;
}
-
+
/**
* @param ruleConfiguration
* @return
*/
public ICreationElementValidator createCreationElementValidator(ActionConfiguration actionConfiguration) {
Class<IActionCreationElementValidator<ActionConfiguration>> creationElementValidatorClass = getCreationElementValidatorClass(actionConfiguration);
- if(creationElementValidatorClass == null) {
- Activator.log.error("impossible to find the Creation Element Validator for configuration type : " + ((actionConfiguration!=null) ? actionConfiguration.eClass().getName() : "null"), null);
+ if (creationElementValidatorClass == null) {
+ Activator.log.error("impossible to find the Creation Element Validator for configuration type : " + ((actionConfiguration != null) ? actionConfiguration.eClass().getName() : "null"), null);
return null;
}
try {
IActionCreationElementValidator<ActionConfiguration> creationElementValidator = creationElementValidatorClass.newInstance();
- if(creationElementValidator != null) {
+ if (creationElementValidator != null) {
creationElementValidator.init(actionConfiguration);
}
return creationElementValidator;
@@ -145,8 +145,8 @@ public class AspectConfigurationFactoryRegistry {
}
return null;
}
-
-
+
+
/**
* @param ruleConfiguration
* @return
@@ -157,10 +157,10 @@ public class AspectConfigurationFactoryRegistry {
String className = configurationTypeToClassDescriptor.get(configurationType).getCreationElementValidatorClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getCreationElementValidatorContributorName();
// look in the list of registered matcher for the right one
- if(className == null) {
- Activator.log.error("There should be an implementation class for the configuration "+configurationType+ " from contributor "+contributorName, null);
- } else if(contributorName != null) {
- return (Class<IActionCreationElementValidator<ActionConfiguration>>)loadClass(className, contributorName);
+ if (className == null) {
+ Activator.log.error("There should be an implementation class for the configuration " + configurationType + " from contributor " + contributorName, null);
+ } else if (contributorName != null) {
+ return (Class<IActionCreationElementValidator<ActionConfiguration>>) loadClass(className, contributorName);
}
return null;
}
@@ -174,9 +174,9 @@ public class AspectConfigurationFactoryRegistry {
String configurationType = configuration.eClass().getInstanceClassName();
String className = configurationTypeToClassDescriptor.get(configurationType).getEditHelperAdviceClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getEditHelperAdviceContributorName();
-
+
// look in the list of registered edit helper advices for the right one
- return (Class<IActionEditHelperAdvice<ActionConfiguration>>)loadClass(className, contributorName);
+ return (Class<IActionEditHelperAdvice<ActionConfiguration>>) loadClass(className, contributorName);
}
/**
@@ -188,24 +188,25 @@ public class AspectConfigurationFactoryRegistry {
String configurationType = configuration.eClass().getInstanceClassName();
String className = configurationTypeToClassDescriptor.get(configurationType).getContainerDescriptorClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getContainerDescriptorContributorName();
-
-
+
+
// look in the list of registered edit helper advices for the right one
- if(className !=null && contributorName !=null) {
- return (Class<IActionContainerDescriptor<ActionConfiguration>>)loadClass(className, contributorName);
+ if (className != null && contributorName != null) {
+ return (Class<IActionContainerDescriptor<ActionConfiguration>>) loadClass(className, contributorName);
}
return null;
}
protected static class ConfigurableClassDescriptor {
-
+
/**
* @param editHelperAdviceContributorName
* @param editHelperAdviceClassName
* @param containerDescriptorContributorName
* @param containerDescriptorClassName
*/
- public ConfigurableClassDescriptor(String editHelperAdviceContributorName, String editHelperAdviceClassName, String containerDescriptorContributorName, String containerDescriptorClassName, String creationElementValidatorContributorName, String creationElementValidatorClassName) {
+ public ConfigurableClassDescriptor(String editHelperAdviceContributorName, String editHelperAdviceClassName, String containerDescriptorContributorName, String containerDescriptorClassName, String creationElementValidatorContributorName,
+ String creationElementValidatorClassName) {
this.editHelperAdviceContributorName = editHelperAdviceContributorName;
this.editHelperAdviceClassName = editHelperAdviceClassName;
this.containerDescriptorContributorName = containerDescriptorContributorName;
@@ -215,11 +216,11 @@ public class AspectConfigurationFactoryRegistry {
}
private final String editHelperAdviceContributorName;
-
+
private final String editHelperAdviceClassName;
-
+
private final String containerDescriptorContributorName;
-
+
private final String containerDescriptorClassName;
private final String creationElementValidatorContributorName;
@@ -239,7 +240,7 @@ public class AspectConfigurationFactoryRegistry {
public String getCreationElementValidatorClassName() {
return creationElementValidatorClassName;
}
-
+
/**
* @return the editHelperAdviceContributorName
*/
@@ -247,7 +248,7 @@ public class AspectConfigurationFactoryRegistry {
return editHelperAdviceContributorName;
}
-
+
/**
* @return the editHelperAdviceClassName
*/
@@ -255,7 +256,7 @@ public class AspectConfigurationFactoryRegistry {
return editHelperAdviceClassName;
}
-
+
/**
* @return the containerDescriptorContributorName
*/
@@ -263,19 +264,19 @@ public class AspectConfigurationFactoryRegistry {
return containerDescriptorContributorName;
}
-
+
/**
* @return the containerDescriptorClassName
*/
public String getContainerDescriptorClassName() {
return containerDescriptorClassName;
}
-
+
}
-
- ///////////////////////////////////////////////////////////////////////////
+
+ // /////////////////////////////////////////////////////////////////////////
// loading resource
- ///////////////////////////////////////////////////////////////////////////
+ // /////////////////////////////////////////////////////////////////////////
/** A map of classes that have been successfully loaded, keyed on the class name optionally prepended by the plugin ID, if specified. */
private static Map<String, WeakReference<Class<?>>> successLookupTable = new HashMap<String, WeakReference<Class<?>>>();
@@ -287,11 +288,11 @@ public class AspectConfigurationFactoryRegistry {
/**
* A utility method to load a class using its name and a given class loader.
- *
+ *
* @param className
- * The class name
+ * The class name
* @param bundle
- * The class loader
+ * The class loader
* @return The loaded class or <code>null</code> if could not be loaded
*/
protected static Class<?> loadClass(String className, String pluginId) {
@@ -302,21 +303,22 @@ public class AspectConfigurationFactoryRegistry {
String keyString = keyStringBuf.toString();
WeakReference<Class<?>> ref = successLookupTable.get(keyString);
Class<?> found = (ref != null) ? ref.get() : null;
- if(found == null) {
- if(ref != null)
+ if (found == null) {
+ if (ref != null) {
successLookupTable.remove(keyString);
- if(!failureLookupTable.contains(keyString)) {
+ }
+ if (!failureLookupTable.contains(keyString)) {
try {
Bundle bundle = basicGetPluginBundle(pluginId);
- if(bundle != null) {
+ if (bundle != null) {
// never load the class if the bundle is not active other wise
// we will cause the plugin to load
// unless the class is in the exception list
int state = bundle.getState();
- if(state == org.osgi.framework.Bundle.ACTIVE || isInExceptionList(bundle, className)) {
+ if (state == org.osgi.framework.Bundle.ACTIVE || isInExceptionList(bundle, className)) {
found = bundle.loadClass(className);
successLookupTable.put(keyString, new WeakReference<Class<?>>(found));
- if(state == org.osgi.framework.Bundle.ACTIVE) {
+ if (state == org.osgi.framework.Bundle.ACTIVE) {
bundleToExceptionsSetMap.remove(bundle);
}
}
@@ -334,15 +336,16 @@ public class AspectConfigurationFactoryRegistry {
/**
* Given a bundle id, it checks if the bundle is found and activated. If it
* is, the method returns the bundle, otherwise it returns <code>null</code>.
- *
+ *
* @param pluginId
- * the bundle ID
+ * the bundle ID
* @return the bundle, if found
*/
protected static Bundle getPluginBundle(String pluginId) {
Bundle bundle = basicGetPluginBundle(pluginId);
- if(null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE)
+ if (null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE) {
return bundle;
+ }
return null;
}
@@ -353,23 +356,23 @@ public class AspectConfigurationFactoryRegistry {
private static boolean isInExceptionList(Bundle bundle, String className) {
String packageName = className.substring(0, className.lastIndexOf('.'));
Set<String> exceptionSet = bundleToExceptionsSetMap.get(bundle);
- if(exceptionSet == null) {
+ if (exceptionSet == null) {
Dictionary<String, String> dict = bundle.getHeaders();
String value = dict.get("Eclipse-LazyStart"); //$NON-NLS-1$
- if(value != null) {
+ if (value != null) {
int index = value.indexOf("exceptions"); //$NON-NLS-1$
- if(index != -1) {
+ if (index != -1) {
try {
int start = value.indexOf('"', index + 1);
int end = value.indexOf('"', start + 1);
String exceptions = value.substring(start + 1, end);
exceptionSet = new HashSet<String>(2);
StringTokenizer tokenizer = new StringTokenizer(exceptions, ","); //$NON-NLS-1$
- while(tokenizer.hasMoreTokens()) {
+ while (tokenizer.hasMoreTokens()) {
exceptionSet.add(tokenizer.nextToken().trim());
}
} catch (IndexOutOfBoundsException exception) {
- // this means the MF did not follow the documented format for the exceptions list so i'll consider it empty
+ // this means the MF did not follow the documented format for the exceptions list so i'll consider it empty
exceptionSet = Collections.emptySet();
}
} else {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeFactory.java
index 8101df940bd..262e4f4e846 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/AspectSemanticTypeFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -38,16 +38,16 @@ public class AspectSemanticTypeFactory extends AbstractConfigurableElementTypeFa
@Override
protected IEditHelperAdvice createEditHelperAdvice(AspectSemanticTypeConfiguration configuration) {
List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
- List<IEditHelperAdvice> actionAdvices = new ArrayList<IEditHelperAdvice>(semanticActionConfigurations.size());
- for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
+ List<IEditHelperAdvice> actionAdvices = new ArrayList<IEditHelperAdvice>(semanticActionConfigurations.size());
+ for (SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
IEditHelperAdvice advice = AspectConfigurationFactoryRegistry.getInstance().createEditHelperAdvice(actionConfiguration);
- if(advice!=null) {
+ if (advice != null) {
actionAdvices.add(advice);
-// } else {
-// Activator.log.error("Impossible to create an advice for :" + actionConfiguration, null);
+ // } else {
+ // Activator.log.error("Impossible to create an advice for :" + actionConfiguration, null);
}
}
- if(actionAdvices!=null && actionAdvices.size() > 0) {
+ if (actionAdvices != null && actionAdvices.size() > 0) {
return new ComposedEditHelperAdvice(actionAdvices);
}
return null;
@@ -59,16 +59,16 @@ public class AspectSemanticTypeFactory extends AbstractConfigurableElementTypeFa
@Override
protected IContainerDescriptor createContainerDescriptor(AspectSemanticTypeConfiguration configuration) {
List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
- List<IContainerDescriptor> containerDescriptors = new ArrayList<IContainerDescriptor>(semanticActionConfigurations.size());
- for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
+ List<IContainerDescriptor> containerDescriptors = new ArrayList<IContainerDescriptor>(semanticActionConfigurations.size());
+ for (SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
IContainerDescriptor containerDescriptor = AspectConfigurationFactoryRegistry.getInstance().createContainerDescriptor(actionConfiguration);
- if(containerDescriptor!=null) {
+ if (containerDescriptor != null) {
containerDescriptors.add(containerDescriptor);
-// } else {
-// Activator.log.error("Impossible to create a container descriptor for :" + actionConfiguration, null);
+ // } else {
+ // Activator.log.error("Impossible to create a container descriptor for :" + actionConfiguration, null);
}
}
- if(containerDescriptors!=null && containerDescriptors.size() > 0) {
+ if (containerDescriptors != null && containerDescriptors.size() > 0) {
return new ComposedContainerDescriptor(containerDescriptors);
}
return null;
@@ -80,21 +80,21 @@ public class AspectSemanticTypeFactory extends AbstractConfigurableElementTypeFa
@Override
public ICreationElementValidator createElementCreationValidator(AspectSemanticTypeConfiguration configuration) {
List<SemanticActionConfiguration> semanticActionConfigurations = configuration.getActionConfiguration();
- List<ICreationElementValidator> actionValidators = new ArrayList<ICreationElementValidator>(semanticActionConfigurations.size());
- for(SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
+ List<ICreationElementValidator> actionValidators = new ArrayList<ICreationElementValidator>(semanticActionConfigurations.size());
+ for (SemanticActionConfiguration actionConfiguration : semanticActionConfigurations) {
ICreationElementValidator validator = AspectConfigurationFactoryRegistry.getInstance().createCreationElementValidator(actionConfiguration);
- if(validator!=null) {
+ if (validator != null) {
actionValidators.add(validator);
-// } else {
-// Activator.log.error("Impossible to create a creation element validator for :" + actionConfiguration, null);
+ // } else {
+ // Activator.log.error("Impossible to create a creation element validator for :" + actionConfiguration, null);
}
}
- if(actionValidators!=null && actionValidators.size() > 0) {
+ if (actionValidators != null && actionValidators.size() > 0) {
return new ComposedElementCreationValidator(actionValidators);
}
return null;
}
-
+
/**
* {@inheritDoc}
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedContainerDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedContainerDescriptor.java
index 3c0094ffd2e..2bb5c37866f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedContainerDescriptor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedContainerDescriptor.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -40,14 +40,14 @@ public class ComposedContainerDescriptor implements IContainerDescriptor {
public IElementMatcher getMatcher() {
List<IElementMatcher> matchers = new ArrayList<IElementMatcher>();
// creates a composed matcher from all container descriptors
- for(IContainerDescriptor containerDescriptor : getContainerDescriptors()) {
+ for (IContainerDescriptor containerDescriptor : getContainerDescriptors()) {
// each composed advice should approve the request
IElementMatcher composedMatcher = containerDescriptor.getMatcher();
- if(composedMatcher != null) {
+ if (composedMatcher != null) {
matchers.add(composedMatcher);
}
}
- if(matchers != null && !matchers.isEmpty()) {
+ if (matchers != null && !matchers.isEmpty()) {
return new ComposedElementMatcher(matchers);
}
return null;
@@ -60,19 +60,19 @@ public class ComposedContainerDescriptor implements IContainerDescriptor {
// retrieve all references in the intersection of all composed container descriptors
List<EReference> joinReferences = null;
// creates a composed matcher from all container descriptors
- for(IContainerDescriptor containerDescriptor : getContainerDescriptors()) {
+ for (IContainerDescriptor containerDescriptor : getContainerDescriptors()) {
// each composed advice should approve the request
EReference[] eReferencesArray = containerDescriptor.getContainmentFeatures();
- if(eReferencesArray != null) {
+ if (eReferencesArray != null) {
List<EReference> eReferences = Arrays.asList(eReferencesArray);
// if join references has not been set yet, set the list of possible containment features
// if not, make the intersection of both list
- if(joinReferences ==null) {
+ if (joinReferences == null) {
joinReferences = eReferences;
} else {
List<EReference> newReferences = new ArrayList<EReference>();
- for(EReference eReference : joinReferences) {
- if(eReferences.contains(eReference)) {
+ for (EReference eReference : joinReferences) {
+ if (eReferences.contains(eReference)) {
newReferences.add(eReference);
}
}
@@ -80,7 +80,7 @@ public class ComposedContainerDescriptor implements IContainerDescriptor {
}
}
}
- if(joinReferences != null) {
+ if (joinReferences != null) {
return joinReferences.toArray(new EReference[] {});
}
return null;
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedEditHelperAdvice.java
index cc8921dd424..20a3b431566 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -41,7 +41,7 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
/**
* Returns the list of composed advices for this edit helper advice.
- *
+ *
* @return the list of composed advices
*/
protected List<IEditHelperAdvice> getComposedAdvices() {
@@ -53,9 +53,9 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
*/
@Override
public boolean approveRequest(IEditCommandRequest request) {
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
// each composed advice should approve the request
- if(!advice.approveRequest(request)) {
+ if (!advice.approveRequest(request)) {
return false;
}
}
@@ -68,10 +68,10 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
@Override
protected ICommand getBeforeConfigureCommand(ConfigureRequest request) {
ICommand resultCommand = null;
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
ICommand command = advice.getBeforeEditCommand(request);
- if(command != null) {
- if(resultCommand != null) {
+ if (command != null) {
+ if (resultCommand != null) {
resultCommand = resultCommand.compose(command);
} else {
resultCommand = command;
@@ -87,10 +87,10 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
@Override
protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
ICommand resultCommand = null;
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
ICommand command = advice.getAfterEditCommand(request);
- if(command != null) {
- if(resultCommand != null) {
+ if (command != null) {
+ if (resultCommand != null) {
resultCommand = resultCommand.compose(command);
} else {
resultCommand = command;
@@ -106,10 +106,10 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
@Override
protected ICommand getBeforeCreateCommand(CreateElementRequest request) {
ICommand resultCommand = null;
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
ICommand command = advice.getBeforeEditCommand(request);
- if(command != null) {
- if(resultCommand != null) {
+ if (command != null) {
+ if (resultCommand != null) {
resultCommand = resultCommand.compose(command);
} else {
resultCommand = command;
@@ -125,10 +125,10 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
@Override
protected ICommand getAfterCreateCommand(CreateElementRequest request) {
ICommand resultCommand = null;
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
ICommand command = advice.getAfterEditCommand(request);
- if(command != null) {
- if(resultCommand != null) {
+ if (command != null) {
+ if (resultCommand != null) {
resultCommand = resultCommand.compose(command);
} else {
resultCommand = command;
@@ -144,10 +144,10 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
@Override
protected ICommand getBeforeCreateRelationshipCommand(CreateRelationshipRequest request) {
ICommand resultCommand = null;
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
ICommand command = advice.getBeforeEditCommand(request);
- if(command != null) {
- if(resultCommand != null) {
+ if (command != null) {
+ if (resultCommand != null) {
resultCommand = resultCommand.compose(command);
} else {
resultCommand = command;
@@ -163,10 +163,10 @@ public class ComposedEditHelperAdvice extends AbstractEditHelperAdvice {
@Override
protected ICommand getAfterCreateRelationshipCommand(CreateRelationshipRequest request) {
ICommand resultCommand = null;
- for(IEditHelperAdvice advice : getComposedAdvices()) {
+ for (IEditHelperAdvice advice : getComposedAdvices()) {
ICommand command = advice.getAfterEditCommand(request);
- if(command != null) {
- if(resultCommand != null) {
+ if (command != null) {
+ if (resultCommand != null) {
resultCommand = resultCommand.compose(command);
} else {
resultCommand = command;
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementCreationValidator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementCreationValidator.java
index cf2a7d191ae..418cc9c11a2 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementCreationValidator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementCreationValidator.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -22,23 +22,25 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
*/
public class ComposedElementCreationValidator implements ICreationElementValidator {
-
+
private final List<ICreationElementValidator> composedValidators;
/**
* Default Constructor
- * @param composedValidators the list of composed validators
+ *
+ * @param composedValidators
+ * the list of composed validators
*/
public ComposedElementCreationValidator(List<ICreationElementValidator> composedValidators) {
this.composedValidators = composedValidators;
}
-
+
/**
* {@inheritDoc}
*/
public boolean canCreate(CreateElementRequest request) {
- for(ICreationElementValidator validator : getComposedValidators()) {
- if(!validator.canCreate(request)) {
+ for (ICreationElementValidator validator : getComposedValidators()) {
+ if (!validator.canCreate(request)) {
return false;
}
}
@@ -48,6 +50,7 @@ public class ComposedElementCreationValidator implements ICreationElementValidat
/**
* Returns the list of composed validators
+ *
* @return the list of composed validators
*/
protected List<ICreationElementValidator> getComposedValidators() {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementMatcher.java
index 10f38a4ad00..732fc3cf80b 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementMatcher.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ComposedElementMatcher.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -24,17 +24,17 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
public class ComposedElementMatcher implements IElementMatcher {
private final List<IElementMatcher> matchers;
-
+
public ComposedElementMatcher(List<IElementMatcher> matchers) {
this.matchers = matchers;
}
-
+
/**
* {@inheritDoc}
*/
public boolean matches(EObject eObject) {
- for(IElementMatcher matcher : getMatchers()) {
- if(!matcher.matches(eObject)) {
+ for (IElementMatcher matcher : getMatchers()) {
+ if (!matcher.matches(eObject)) {
return false;
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ConfigurableElementMatcherFactoryRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ConfigurableElementMatcherFactoryRegistry.java
index 533e7b86434..7f132f6c225 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ConfigurableElementMatcherFactoryRegistry.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ConfigurableElementMatcherFactoryRegistry.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -37,16 +37,16 @@ public class ConfigurableElementMatcherFactoryRegistry {
private static ConfigurableElementMatcherFactoryRegistry registry;
protected Map<String, IConfigurableElementMatcherFactory<MatcherConfiguration>> configurationTypeToMatcherFactory = null;
-
+
protected List<String> configurationTypeFactoryExceptions = null;
-
+
/**
* returns the singleton instance of this registry
- *
+ *
* @return the singleton instance of this registry
*/
public static synchronized ConfigurableElementMatcherFactoryRegistry getInstance() {
- if(registry == null) {
+ if (registry == null) {
registry = new ConfigurableElementMatcherFactoryRegistry();
registry.init();
}
@@ -58,32 +58,32 @@ public class ConfigurableElementMatcherFactoryRegistry {
*/
protected void init() {
configurationTypeToMatcherFactory = new HashMap<String, IConfigurableElementMatcherFactory<MatcherConfiguration>>();
-
+
}
/**
* Creates the {@link IElementMatcher} specific to the given rule configuration
- *
+ *
* @param ruleConfiguration
- * the rule configuration that will configure the created matcher
+ * the rule configuration that will configure the created matcher
* @return the {@link IElementMatcher} created or <code>null</code> if none could be created
*/
public IConfigurableElementMatcher<MatcherConfiguration> createElementMatcher(MatcherConfiguration matcherConfiguration) {
String configurationType = matcherConfiguration.eClass().getInstanceTypeName();
IConfigurableElementMatcherFactory<MatcherConfiguration> factory = configurationTypeToMatcherFactory.get(configurationType);
// check factory is not on the exception table
- if(factory == null && isNotInFactoryExceptionList(configurationType)) {
+ if (factory == null && isNotInFactoryExceptionList(configurationType)) {
Class<IConfigurableElementMatcherFactory<MatcherConfiguration>> factoryClass = retrieveFactoryClassFromExtensionPoint(configurationType);
- if(factoryClass != null) {
+ if (factoryClass != null) {
try {
factory = factoryClass.newInstance();
} catch (InstantiationException e) {
- if(configurationTypeFactoryExceptions == null) {
+ if (configurationTypeFactoryExceptions == null) {
configurationTypeFactoryExceptions = new ArrayList<String>();
}
configurationTypeFactoryExceptions.add(configurationType);
} catch (IllegalAccessException e) {
- if(configurationTypeFactoryExceptions == null) {
+ if (configurationTypeFactoryExceptions == null) {
configurationTypeFactoryExceptions = new ArrayList<String>();
}
configurationTypeFactoryExceptions.add(configurationType);
@@ -91,24 +91,24 @@ public class ConfigurableElementMatcherFactoryRegistry {
configurationTypeToMatcherFactory.put(configurationType, factory);
}
}
- if(factory != null) {
+ if (factory != null) {
IConfigurableElementMatcher<MatcherConfiguration> elementMatcher = factory.createElementMatcher(matcherConfiguration);
- if(elementMatcher !=null) {
- //elementMatcher.init(matcherConfiguration);
+ if (elementMatcher != null) {
+ // elementMatcher.init(matcherConfiguration);
return elementMatcher;
}
}
- return null;
+ return null;
}
-
+
/**
* check this configuration type has not already caused issues du
- *
+ *
* @param configurationType
* @return
*/
protected boolean isNotInFactoryExceptionList(String configurationType) {
- if(configurationTypeFactoryExceptions == null) {
+ if (configurationTypeFactoryExceptions == null) {
return true;
}
// this is not null, check the configuration type is not in the list
@@ -117,26 +117,26 @@ public class ConfigurableElementMatcherFactoryRegistry {
/**
* Returns the {@link IExtendedElementTypeFactory} class used to instantiate element type for the given configuration
- *
+ *
* @return the {@link IExtendedElementTypeFactory} found or <code>null</code> if none was found
*/
@SuppressWarnings("unchecked")
protected Class<IConfigurableElementMatcherFactory<MatcherConfiguration>> retrieveFactoryClassFromExtensionPoint(String configurationType) {
IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IElementMatcherExtensionPoint.EXTENSION_POINT_ID);
- for(IConfigurationElement configurationElement : elements) {
+ for (IConfigurationElement configurationElement : elements) {
String eCoreClassName = configurationElement.getAttribute(IElementMatcherExtensionPoint.MATCHER_CONFIGURATION_CLASS);
- if(configurationType.equals(eCoreClassName)) {
+ if (configurationType.equals(eCoreClassName)) {
// retrieve factory to load
String factoryClassName = configurationElement.getAttribute(IElementMatcherExtensionPoint.MATCHER_FACTORY_CLASS);
- return (Class<IConfigurableElementMatcherFactory<MatcherConfiguration>>)loadClass(factoryClassName, configurationElement.getContributor().getName());
+ return (Class<IConfigurableElementMatcherFactory<MatcherConfiguration>>) loadClass(factoryClassName, configurationElement.getContributor().getName());
}
}
return null;
}
-
- ///////////////////////////////////////////////////////////////////////////
+
+ // /////////////////////////////////////////////////////////////////////////
// loading resource
- ///////////////////////////////////////////////////////////////////////////
+ // /////////////////////////////////////////////////////////////////////////
/** A map of classes that have been successfully loaded, keyed on the class name optionally prepended by the plugin ID, if specified. */
private static Map<String, WeakReference<Class<?>>> successLookupTable = new HashMap<String, WeakReference<Class<?>>>();
@@ -148,11 +148,11 @@ public class ConfigurableElementMatcherFactoryRegistry {
/**
* A utility method to load a class using its name and a given class loader.
- *
+ *
* @param className
- * The class name
+ * The class name
* @param bundle
- * The class loader
+ * The class loader
* @return The loaded class or <code>null</code> if could not be loaded
*/
protected static Class<?> loadClass(String className, String pluginId) {
@@ -163,21 +163,22 @@ public class ConfigurableElementMatcherFactoryRegistry {
String keyString = keyStringBuf.toString();
WeakReference<Class<?>> ref = successLookupTable.get(keyString);
Class<?> found = (ref != null) ? ref.get() : null;
- if(found == null) {
- if(ref != null)
+ if (found == null) {
+ if (ref != null) {
successLookupTable.remove(keyString);
- if(!failureLookupTable.contains(keyString)) {
+ }
+ if (!failureLookupTable.contains(keyString)) {
try {
Bundle bundle = basicGetPluginBundle(pluginId);
- if(bundle != null) {
+ if (bundle != null) {
// never load the class if the bundle is not active other wise
// we will cause the plugin to load
// unless the class is in the exception list
int state = bundle.getState();
- if(state == org.osgi.framework.Bundle.ACTIVE || isInExceptionList(bundle, className)) {
+ if (state == org.osgi.framework.Bundle.ACTIVE || isInExceptionList(bundle, className)) {
found = bundle.loadClass(className);
successLookupTable.put(keyString, new WeakReference<Class<?>>(found));
- if(state == org.osgi.framework.Bundle.ACTIVE) {
+ if (state == org.osgi.framework.Bundle.ACTIVE) {
bundleToExceptionsSetMap.remove(bundle);
}
}
@@ -195,15 +196,16 @@ public class ConfigurableElementMatcherFactoryRegistry {
/**
* Given a bundle id, it checks if the bundle is found and activated. If it
* is, the method returns the bundle, otherwise it returns <code>null</code>.
- *
+ *
* @param pluginId
- * the bundle ID
+ * the bundle ID
* @return the bundle, if found
*/
protected static Bundle getPluginBundle(String pluginId) {
Bundle bundle = basicGetPluginBundle(pluginId);
- if(null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE)
+ if (null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE) {
return bundle;
+ }
return null;
}
@@ -214,23 +216,23 @@ public class ConfigurableElementMatcherFactoryRegistry {
private static boolean isInExceptionList(Bundle bundle, String className) {
String packageName = className.substring(0, className.lastIndexOf('.'));
Set<String> exceptionSet = bundleToExceptionsSetMap.get(bundle);
- if(exceptionSet == null) {
+ if (exceptionSet == null) {
Dictionary<String, String> dict = bundle.getHeaders();
String value = dict.get("Eclipse-LazyStart"); //$NON-NLS-1$
- if(value != null) {
+ if (value != null) {
int index = value.indexOf("exceptions"); //$NON-NLS-1$
- if(index != -1) {
+ if (index != -1) {
try {
int start = value.indexOf('"', index + 1);
int end = value.indexOf('"', start + 1);
String exceptions = value.substring(start + 1, end);
exceptionSet = new HashSet<String>(2);
StringTokenizer tokenizer = new StringTokenizer(exceptions, ","); //$NON-NLS-1$
- while(tokenizer.hasMoreTokens()) {
+ while (tokenizer.hasMoreTokens()) {
exceptionSet.add(tokenizer.nextToken().trim());
}
} catch (IndexOutOfBoundsException exception) {
- // this means the MF did not follow the documented format for the exceptions list so i'll consider it empty
+ // this means the MF did not follow the documented format for the exceptions list so i'll consider it empty
exceptionSet = Collections.emptySet();
}
} else {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ElementTypeSetUtils.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ElementTypeSetUtils.java
index 1160cf3be76..c6912e539bf 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ElementTypeSetUtils.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ElementTypeSetUtils.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -12,12 +12,6 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.extendedtypes;
-import java.lang.reflect.Field;
-
-import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
-import org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.SpecializationTypeDescriptor;
-import org.eclipse.gmf.runtime.emf.type.core.internal.impl.SpecializationTypeRegistry;
-
/**
* Utility class to manipulate {@link ExtendedElementTypeSet}.
@@ -26,97 +20,98 @@ public class ElementTypeSetUtils {
/**
* Loads
+ *
* @param extendedElementTypeSet
*/
public static void load(ExtendedElementTypeSet extendedElementTypeSet) {
-
+
}
-
-
-// public static void unload(String identifier) {
-// // retrieve the extended type set with given identifier and unloads it
-// ExtendedElementTypeSet set = ExtendedElementTypeSetRegistry.getInstance().getExtendedTypeSets().get(identifier);
-// if(set!=null) {
-// unload(set);
-// }
-// }
-
-// /**
-// * Unloads a given {@link ExtendedElementTypeSet}
-// * @param elementTypeSet the element type set to unload
-// */
-// public static void unload(ExtendedElementTypeSet elementTypeSet) {
-// // retrieve the specializationTypeRegistry to remove all contribution from the given element type set
-// Field declaredField = null;
-// try {
-// declaredField = ElementTypeRegistry.class.getDeclaredField("specializationTypeRegistry");
-// } catch (SecurityException e1) {
-// Activator.log.error(e1);
-// return;
-// } catch (NoSuchFieldException e1) {
-// Activator.log.error(e1);
-// return;
-// }
-// if(declaredField==null) {
-// Activator.log.error("impossible to find specializationTypeRegistry", null);
-// return;
-// }
-// declaredField.setAccessible(true);
-// SpecializationTypeRegistry registry = null;
-// try {
-// registry = (SpecializationTypeRegistry)declaredField.get(ElementTypeRegistry.getInstance());
-// } catch (IllegalArgumentException e) {
-// Activator.log.error(e);
-// } catch (IllegalAccessException e) {
-// Activator.log.error(e);
-// }
-//
-// if(registry == null) {
-// return;
-// }
-//
-// for(ElementTypeConfiguration configuration : elementTypeSet.getElementType()) {
-// if(configuration!=null && configuration.getIdentifier()!=null) {
-// String identifier = configuration.getIdentifier();
-// // retrieve descriptor
-// SpecializationTypeDescriptor descriptor = registry.getSpecializationTypeDescriptor(identifier);
-// if(descriptor!=null) {
-// registry.removeSpecializationType(descriptor);
-// }
-// }
-// }
-//
-// elementTypeSet.eResource().unload();
-// elementTypeSet.eResource().getResourceSet().getResources().remove(elementTypeSet.eResource());
-// }
-
-// public static void resetRegistry() {
-// // FIXME save the current listeners, to add them back to the registry
-// IClientContext context;
-// try {
-// context = TypeContext.getContext();
-// } catch (ServiceException e1) {
-// Activator.log.error(e1);
-// return;
-// }
-// // impossibe to unregister element types...
-// // => destroy the singleton instance of the registry...
-// try {
-// Field declaredField = ElementTypeRegistry.class.getDeclaredField("INSTANCE");
-// declaredField.setAccessible(true);
-// declaredField.set(null, null);
-// } catch (SecurityException e1) {
-// e1.printStackTrace();
-// } catch (NoSuchFieldException e1) {
-// e1.printStackTrace();
-// } catch (IllegalArgumentException e) {
-// e.printStackTrace();
-// } catch (IllegalAccessException e) {
-// e.printStackTrace();
-// }
-//
-// // create the registry
-// ElementTypeRegistry.getInstance();
-// }
-
+
+
+ // public static void unload(String identifier) {
+ // // retrieve the extended type set with given identifier and unloads it
+ // ExtendedElementTypeSet set = ExtendedElementTypeSetRegistry.getInstance().getExtendedTypeSets().get(identifier);
+ // if(set!=null) {
+ // unload(set);
+ // }
+ // }
+
+ // /**
+ // * Unloads a given {@link ExtendedElementTypeSet}
+ // * @param elementTypeSet the element type set to unload
+ // */
+ // public static void unload(ExtendedElementTypeSet elementTypeSet) {
+ // // retrieve the specializationTypeRegistry to remove all contribution from the given element type set
+ // Field declaredField = null;
+ // try {
+ // declaredField = ElementTypeRegistry.class.getDeclaredField("specializationTypeRegistry");
+ // } catch (SecurityException e1) {
+ // Activator.log.error(e1);
+ // return;
+ // } catch (NoSuchFieldException e1) {
+ // Activator.log.error(e1);
+ // return;
+ // }
+ // if(declaredField==null) {
+ // Activator.log.error("impossible to find specializationTypeRegistry", null);
+ // return;
+ // }
+ // declaredField.setAccessible(true);
+ // SpecializationTypeRegistry registry = null;
+ // try {
+ // registry = (SpecializationTypeRegistry)declaredField.get(ElementTypeRegistry.getInstance());
+ // } catch (IllegalArgumentException e) {
+ // Activator.log.error(e);
+ // } catch (IllegalAccessException e) {
+ // Activator.log.error(e);
+ // }
+ //
+ // if(registry == null) {
+ // return;
+ // }
+ //
+ // for(ElementTypeConfiguration configuration : elementTypeSet.getElementType()) {
+ // if(configuration!=null && configuration.getIdentifier()!=null) {
+ // String identifier = configuration.getIdentifier();
+ // // retrieve descriptor
+ // SpecializationTypeDescriptor descriptor = registry.getSpecializationTypeDescriptor(identifier);
+ // if(descriptor!=null) {
+ // registry.removeSpecializationType(descriptor);
+ // }
+ // }
+ // }
+ //
+ // elementTypeSet.eResource().unload();
+ // elementTypeSet.eResource().getResourceSet().getResources().remove(elementTypeSet.eResource());
+ // }
+
+ // public static void resetRegistry() {
+ // // FIXME save the current listeners, to add them back to the registry
+ // IClientContext context;
+ // try {
+ // context = TypeContext.getContext();
+ // } catch (ServiceException e1) {
+ // Activator.log.error(e1);
+ // return;
+ // }
+ // // impossibe to unregister element types...
+ // // => destroy the singleton instance of the registry...
+ // try {
+ // Field declaredField = ElementTypeRegistry.class.getDeclaredField("INSTANCE");
+ // declaredField.setAccessible(true);
+ // declaredField.set(null, null);
+ // } catch (SecurityException e1) {
+ // e1.printStackTrace();
+ // } catch (NoSuchFieldException e1) {
+ // e1.printStackTrace();
+ // } catch (IllegalArgumentException e) {
+ // e.printStackTrace();
+ // } catch (IllegalAccessException e) {
+ // e.printStackTrace();
+ // }
+ //
+ // // create the registry
+ // ElementTypeRegistry.getInstance();
+ // }
+
} \ No newline at end of file
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java
index 61ce8810c8c..e7800effce8 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedElementTypeSetRegistry.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -70,7 +70,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* returns the singleton instance of this registry
- *
+ *
* @return the singleton instance of this registry
*/
public static synchronized ExtendedElementTypeSetRegistry getInstance() {
@@ -148,7 +148,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* Loads the specified extended element type set.
* This does not take care to unload a similar set (a set with the same id) before loading. This should be handled before calling this method.
- *
+ *
* @param extendedElementTypeSet
* {@link ExtendedElementTypeSet} to load.
*/
@@ -197,7 +197,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* Unloads a given {@link ExtendedElementTypeSet}
- *
+ *
* @param elementTypeSet
* the element type set to unload
*/
@@ -304,7 +304,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* check this configuration type has not already caused issues du
- *
+ *
* @param configurationType
* @return
*/
@@ -318,7 +318,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* Returns the {@link IExtendedElementTypeFactory} class used to instantiate element type for the given configuration
- *
+ *
* @return the {@link IExtendedElementTypeFactory} found or <code>null</code> if none was found
*/
@SuppressWarnings("unchecked")
@@ -387,7 +387,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* Loads the extensions in the platform
- *
+ *
* @return the list of extension registered in the platform
*/
protected Map<String, ExtendedElementTypeSet> loadExtendedTypeSetsFromPlatform(Set<String> workspaceDefinitions) {
@@ -420,7 +420,7 @@ public class ExtendedElementTypeSetRegistry {
* It looks the model file in the fragments first, then in the plugin itself.<BR>
* If this is already a fragment, it should look in the fragment only
* </p>
- *
+ *
* @param extendedTypesID
* id of the extended type set to load
* @param modelPath
@@ -459,7 +459,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* Retrieves the contribution in the plugin area
- *
+ *
* @param path
* the path of the element type set to load in the plugin area
*/
@@ -485,7 +485,7 @@ public class ExtendedElementTypeSetRegistry {
}
/**
- *
+ *
* @param modelPath
* path of the model in the bundle
* @param bundleId
@@ -493,7 +493,7 @@ public class ExtendedElementTypeSetRegistry {
* @return the loaded file or <code>null</code> if some problem occured during loading
*/
protected ExtendedElementTypeSet getExtendedElementTypeSetInBundle(String modelPath, String bundleID) {
- Resource resource = extendedTypesResourceSet.createResource(URI.createPlatformPluginURI(bundleID + Path.SEPARATOR + modelPath, true));
+ Resource resource = extendedTypesResourceSet.createResource(URI.createPlatformPluginURI(bundleID + IPath.SEPARATOR + modelPath, true));
try {
resource.load(null);
} catch (IOException e) {
@@ -509,7 +509,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* Creates the resource set that contains all models for extended types
- *
+ *
* @return the resource set newly created.
*/
protected ResourceSet createResourceSet() {
@@ -531,7 +531,7 @@ public class ExtendedElementTypeSetRegistry {
/**
* A utility method to load a class using its name and a given class loader.
- *
+ *
* @param className
* The class name
* @param bundle
@@ -547,8 +547,9 @@ public class ExtendedElementTypeSetRegistry {
WeakReference<Class<?>> ref = successLookupTable.get(keyString);
Class<?> found = (ref != null) ? ref.get() : null;
if (found == null) {
- if (ref != null)
+ if (ref != null) {
successLookupTable.remove(keyString);
+ }
if (!failureLookupTable.contains(keyString)) {
try {
Bundle bundle = basicGetPluginBundle(pluginId);
@@ -578,15 +579,16 @@ public class ExtendedElementTypeSetRegistry {
/**
* Given a bundle id, it checks if the bundle is found and activated. If it
* is, the method returns the bundle, otherwise it returns <code>null</code>.
- *
+ *
* @param pluginId
* the bundle ID
* @return the bundle, if found
*/
protected static Bundle getPluginBundle(String pluginId) {
Bundle bundle = basicGetPluginBundle(pluginId);
- if (null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE)
+ if (null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE) {
return bundle;
+ }
return null;
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedTypeRegistryService.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedTypeRegistryService.java
index 6a25cdf0536..f08da3a43fc 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedTypeRegistryService.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ExtendedTypeRegistryService.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -26,7 +26,7 @@ public class ExtendedTypeRegistryService implements IService {
* {@inheritDoc}
*/
public void init(ServicesRegistry servicesRegistry) throws ServiceException {
-
+
}
/**
@@ -44,9 +44,9 @@ public class ExtendedTypeRegistryService implements IService {
// extended element type set registry should unregister all added element types in the gmf registry
ExtendedElementTypeSetRegistry.getInstance().dispose();
}
-
+
public ExtendedElementTypeSetRegistry getExtendedElementTypeSetRegistry() {
return ExtendedElementTypeSetRegistry.getInstance();
}
-
+
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionConfigurationModelCreation.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionConfigurationModelCreation.java
index c86b7b93ee4..36a57fd7339 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionConfigurationModelCreation.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionConfigurationModelCreation.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionContainerDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionContainerDescriptor.java
index b5d4d094705..8fda2b209fb 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionContainerDescriptor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionContainerDescriptor.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,10 +19,12 @@ import org.eclipse.gmf.runtime.emf.type.core.IContainerDescriptor;
* Descriptor for the configurable container descriptor
*/
public interface IActionContainerDescriptor<T extends ActionConfiguration> extends IContainerDescriptor {
-
+
/**
* Initializes the container descriptor using the given configuration
- * @param actionConfiguration the confiugration for this container descriptor
+ *
+ * @param actionConfiguration
+ * the confiugration for this container descriptor
*/
void init(T actionConfiguration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionCreationElementValidator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionCreationElementValidator.java
index 03aa776db99..5a245040ef7 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionCreationElementValidator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionCreationElementValidator.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -17,8 +17,8 @@ package org.eclipse.papyrus.infra.extendedtypes;
* Interface implemented by all {@link ICreationElementValidator} configured by {@link ActionConfiguration}
*/
public interface IActionCreationElementValidator<T extends ActionConfiguration> extends ICreationElementValidator {
-
-
+
+
/**
* Initialize the validator with the given action configuration
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionEditHelperAdvice.java
index 2de5c7c9aed..5d34b70c84a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IActionEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -16,9 +16,9 @@ import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
/**
- *
+ *
*/
public interface IActionEditHelperAdvice<T extends ActionConfiguration> extends IEditHelperAdvice {
-
+
public void init(T configuration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IAspectTypeExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IAspectTypeExtensionPoint.java
index 1e38ab6ee06..ca4fafb03ae 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IAspectTypeExtensionPoint.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IAspectTypeExtensionPoint.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -33,10 +33,10 @@ public interface IAspectTypeExtensionPoint {
public static final String CONTAINER_DESCRIPTOR_CLASS = "semanticTypeDescriptor";
public static final String EDIT_HELPER_ADVICE_CLASS = "editHelperAdvice";
-
+
public static final String CONFIGURATION_CLASS = "configurationClass";
public static final String CONFIGURATION_MODEL_CREATION = "configurationModelCreation";
- public static final String CREATION_ELEMENT_VALIDATOR_CLASS = "creationElementValidator";
+ public static final String CREATION_ELEMENT_VALIDATOR_CLASS = "creationElementValidator";
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcher.java
index b1b39334db9..96c22acea02 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcher.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcher.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,10 +19,12 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
* Interface implemented by all element matchers configured by a {@link MatcherConfiguration}
*/
public interface IConfigurableElementMatcher<T extends MatcherConfiguration> extends IElementMatcher {
-
+
/**
* Inits the element matcher with the given contribution. Should be called once, after element matcher instantiation
- * @param configuration the configuration of this {@link IElementMatcher}
- */
+ *
+ * @param configuration
+ * the configuration of this {@link IElementMatcher}
+ */
// public void init(T configuration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcherFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcherFactory.java
index f403617ee0f..4e1ffcbb17c 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcherFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IConfigurableElementMatcherFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,11 +19,13 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
* interface for factories that instantiate {@link IInvariantElementMatcher} with their given configuration
*/
public interface IConfigurableElementMatcherFactory<T extends MatcherConfiguration> {
-
+
/**
* Creates an element matcher with the specified configuration
- * @param configuration the configuration of the {@link IElementMatcher}
+ *
+ * @param configuration
+ * the configuration of the {@link IElementMatcher}
* @return the created element matcher or <code>null</code> if none was created
*/
- public IConfigurableElementMatcher<T> createElementMatcher(T configuration);
+ public IConfigurableElementMatcher<T> createElementMatcher(T configuration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ICreationElementValidator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ICreationElementValidator.java
index 6adb16da294..ffc53f9935a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ICreationElementValidator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/ICreationElementValidator.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IEditHelperAdviceConstants.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IEditHelperAdviceConstants.java
index d6f64e229fd..7de483db1cb 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IEditHelperAdviceConstants.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IEditHelperAdviceConstants.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -17,6 +17,6 @@ package org.eclipse.papyrus.infra.extendedtypes;
* Constants used by Papyrus edit helper advices
*/
public interface IEditHelperAdviceConstants {
-
+
public String NO_UI_KEY = "no_ui";
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherConfigurationModelCreation.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherConfigurationModelCreation.java
index e2bc20f5d9c..0e831b6b4d1 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherConfigurationModelCreation.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherConfigurationModelCreation.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -17,6 +17,6 @@ package org.eclipse.papyrus.infra.extendedtypes;
* Interface that all extension point for element matcher should provide
*/
public interface IElementMatcherConfigurationModelCreation<T extends MatcherConfiguration> {
-
+
public T createConfigurationModel();
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherExtensionPoint.java
index 4e417eabb82..cd1009a0398 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherExtensionPoint.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IElementMatcherExtensionPoint.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,16 +19,16 @@ import org.eclipse.papyrus.infra.extendedtypes.Activator;
* Extension point interface for {@link MatcherConfiguration} runtime implementations
*/
public interface IElementMatcherExtensionPoint {
-
+
/** ID of the extension point */
public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".elementMatcherConfiguration";
-
+
public static final String CONFIGURATION_NAME = "name";
public static final String MATCHER_CONFIGURATION_CLASS = "configurationClass";
-
+
public static final String MATCHER_FACTORY_CLASS = "factoryClass";
public static final String CONFIGURATION_MODEL_CREATION = "configurationModelCreation";
-
+
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeFactory.java
index d7d76c0e58d..b7ed7af84ce 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -16,23 +16,27 @@ import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
/**
- * Interface for all factories that will create element types from a given configuration
+ * Interface for all factories that will create element types from a given configuration
*/
-public interface IExtendedElementTypeFactory<T extends ElementTypeConfiguration> /* extends IElementTypeFactory */ {
-
+public interface IExtendedElementTypeFactory<T extends ElementTypeConfiguration> /* extends IElementTypeFactory */{
+
/**
* Creates an element type for the given configuration
- * @param configuration configuration of the element type to create
+ *
+ * @param configuration
+ * configuration of the element type to create
* @return the newly created element type or <code>null</code> if no element type could be created
*/
IExtendedHintedElementType createElementType(T configuration);
-
-
+
+
/**
- * Creates the element creation validator which will be used to know if the element can be created or not
- * @param configuration the configuration of the new element type
+ * Creates the element creation validator which will be used to know if the element can be created or not
+ *
+ * @param configuration
+ * the configuration of the new element type
* @return the element creation Validator or <code>null</code> if none could be created
*/
ICreationElementValidator createElementCreationValidator(T configuration);
-
+
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeSetExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeSetExtensionPoint.java
index d8a900d1d13..6ab8e147751 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeSetExtensionPoint.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedElementTypeSetExtensionPoint.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedTypeConfigurationExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedTypeConfigurationExtensionPoint.java
index 254b53c4af2..b129474889c 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedTypeConfigurationExtensionPoint.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/IExtendedTypeConfigurationExtensionPoint.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/advices/ExtendedTypesOwnerAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/advices/ExtendedTypesOwnerAdvice.java
index 4dbad52efdf..76c7c0d7dd1 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/advices/ExtendedTypesOwnerAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/advices/ExtendedTypesOwnerAdvice.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* 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
@@ -46,57 +46,57 @@ public class ExtendedTypesOwnerAdvice extends AbstractEditHelperAdvice {
*/
@Override
public boolean approveRequest(IEditCommandRequest request) {
- if(request instanceof CreateElementRequest) {
- // approve the request for this element and all super types
- IElementType typeToCreate = ((CreateElementRequest)request).getElementType();
- if(typeToCreate instanceof IExtendedHintedElementType) {
- if(!approveCreationRequest(((IExtendedHintedElementType)typeToCreate), (CreateElementRequest)request)) {
+ if (request instanceof CreateElementRequest) {
+ // approve the request for this element and all super types
+ IElementType typeToCreate = ((CreateElementRequest) request).getElementType();
+ if (typeToCreate instanceof IExtendedHintedElementType) {
+ if (!approveCreationRequest(((IExtendedHintedElementType) typeToCreate), (CreateElementRequest) request)) {
return false;
}
// ask for extended super types
- List<IExtendedHintedElementType> superExtendedTypes = getAllSuperExtendedTypes((IExtendedHintedElementType)typeToCreate);
- if(superExtendedTypes == null || superExtendedTypes.size() == 0) {
+ List<IExtendedHintedElementType> superExtendedTypes = getAllSuperExtendedTypes((IExtendedHintedElementType) typeToCreate);
+ if (superExtendedTypes == null || superExtendedTypes.size() == 0) {
return super.approveRequest(request);
} else {
- for(IExtendedHintedElementType superType : superExtendedTypes) {
+ for (IExtendedHintedElementType superType : superExtendedTypes) {
// only refuse if one element refuses the request
- if(!approveCreationRequest(superType, (CreateElementRequest)request)) {
+ if (!approveCreationRequest(superType, (CreateElementRequest) request)) {
return false;
}
}
}
}
- } else if(request instanceof SetRequest) {
+ } 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()) {
+ EStructuralFeature feature = ((SetRequest) request).getFeature();
+ if (feature instanceof EReference) {
+ if (!((EReference) feature).isContainment()) {
return super.approveRequest(request);
} else {
// containment. Check the kind of element to edit
- Object value = ((SetRequest)request).getValue();
+ Object value = ((SetRequest) request).getValue();
// value = single object or list ?
- if(value instanceof EObject) {
- IElementType type = ElementTypeRegistry.getInstance().getElementType((EObject)value, request.getClientContext());
- if(type instanceof IExtendedHintedElementType) {
- return approveMoveRequest((IExtendedHintedElementType)type, (SetRequest)request);
+ if (value instanceof EObject) {
+ IElementType type = ElementTypeRegistry.getInstance().getElementType((EObject) value, request.getClientContext());
+ if (type instanceof IExtendedHintedElementType) {
+ return approveMoveRequest((IExtendedHintedElementType) type, (SetRequest) request);
}
- } else if(value instanceof List<?>) {
- for(Object object : (List<Object>)value) {
- if(object instanceof EObject) {
- IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject)object, request.getClientContext());
- for(IElementType type : types) {
- if(type instanceof IExtendedHintedElementType) {
- if(!approveMoveRequest((IExtendedHintedElementType)type, (SetRequest)request)) {
+ } else if (value instanceof List<?>) {
+ for (Object object : (List<Object>) value) {
+ if (object instanceof EObject) {
+ IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching((EObject) object, request.getClientContext());
+ for (IElementType type : types) {
+ if (type instanceof IExtendedHintedElementType) {
+ if (!approveMoveRequest((IExtendedHintedElementType) type, (SetRequest) request)) {
return false;
}
- List<IExtendedHintedElementType> superExtendedTypes = getAllSuperExtendedTypes((IExtendedHintedElementType)type);
- if(superExtendedTypes == null || superExtendedTypes.size() == 0) {
+ List<IExtendedHintedElementType> superExtendedTypes = getAllSuperExtendedTypes((IExtendedHintedElementType) type);
+ if (superExtendedTypes == null || superExtendedTypes.size() == 0) {
// nothing here
} else {
- for(IExtendedHintedElementType superType : superExtendedTypes) {
+ for (IExtendedHintedElementType superType : superExtendedTypes) {
// only refuse if one element refuses the request
- if(!approveMoveRequest(superType, (SetRequest)request)) {
+ if (!approveMoveRequest(superType, (SetRequest) request)) {
return false;
}
}
@@ -108,27 +108,27 @@ public class ExtendedTypesOwnerAdvice extends AbstractEditHelperAdvice {
}
}
}
- } else if(request instanceof MoveRequest) {
+ } else if (request instanceof MoveRequest) {
// check the feature to set is a containment feature and element to move is an extended element type
- Map<EObject, EReference> objectsToMove = ((MoveRequest)request).getElementsToMove();
- if(objectsToMove == null || objectsToMove.isEmpty()) {
+ Map<EObject, EReference> objectsToMove = ((MoveRequest) request).getElementsToMove();
+ if (objectsToMove == null || objectsToMove.isEmpty()) {
return super.approveRequest(request);
}
- for(Entry<EObject, EReference> movedElement : objectsToMove.entrySet()) {
+ for (Entry<EObject, EReference> 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 IExtendedHintedElementType) {
- if(!approveMoveRequest((IExtendedHintedElementType)type, movedElement.getKey(), (MoveRequest)request)) {
+ for (IElementType type : types) {
+ if (type instanceof IExtendedHintedElementType) {
+ if (!approveMoveRequest((IExtendedHintedElementType) type, movedElement.getKey(), (MoveRequest) request)) {
return false;
}
- List<IExtendedHintedElementType> superExtendedTypes = getAllSuperExtendedTypes((IExtendedHintedElementType)type);
- if(superExtendedTypes == null || superExtendedTypes.size() == 0) {
+ List<IExtendedHintedElementType> superExtendedTypes = getAllSuperExtendedTypes((IExtendedHintedElementType) type);
+ if (superExtendedTypes == null || superExtendedTypes.size() == 0) {
// nothing here
} else {
- for(IExtendedHintedElementType superType : superExtendedTypes) {
+ for (IExtendedHintedElementType superType : superExtendedTypes) {
// only refuse if one element refuses the request
- if(!approveMoveRequest(superType, movedElement.getKey(), (MoveRequest)request)) {
+ if (!approveMoveRequest(superType, movedElement.getKey(), (MoveRequest) request)) {
return false;
}
}
@@ -150,28 +150,28 @@ public class ExtendedTypesOwnerAdvice extends AbstractEditHelperAdvice {
IContainerDescriptor containerDescriptor = typeToCreate.getEContainerDescriptor();
EObject newContainer = request.getContainer();
// check it matches the container descriptor for the element type
- if(containerDescriptor != null && newContainer != null) {
- if(containerDescriptor.getContainmentFeatures() != null && containerDescriptor.getContainmentFeatures().length > 0) {
+ if (containerDescriptor != null && newContainer != null) {
+ if (containerDescriptor.getContainmentFeatures() != null && containerDescriptor.getContainmentFeatures().length > 0) {
// check containment feature
List<EReference> references = Arrays.asList(containerDescriptor.getContainmentFeatures());
- if(!(references.contains(request.getContainmentFeature()))) {
+ if (!(references.contains(request.getContainmentFeature()))) {
return false;
}
}
IElementMatcher containerMatcher = containerDescriptor.getMatcher();
- if(containerMatcher != null) {
- if(!containerMatcher.matches(newContainer)) {
+ if (containerMatcher != null) {
+ if (!containerMatcher.matches(newContainer)) {
return false;
}
}
}
-
- // check that the element can be created. Delegates to the created element type if it can be created or not (rather than being based on the container, as usual on GMF element type framework).
+
+ // check that the element can be created. Delegates to the created element type if it can be created or not (rather than being based on the container, as usual on GMF element type framework).
ICreationElementValidator creationValidator = typeToCreate.getCreationElementValidator();
- if(creationValidator!=null) {
+ if (creationValidator != null) {
return creationValidator.canCreate(request);
}
-
+
return true;
}
@@ -179,18 +179,18 @@ public class ExtendedTypesOwnerAdvice extends AbstractEditHelperAdvice {
IContainerDescriptor containerDescriptor = typeToMove.getEContainerDescriptor();
EObject newContainer = request.getElementToEdit();
// check it matches the container descriptor for the element type
- if(containerDescriptor == null || newContainer == null) {
+ if (containerDescriptor == null || newContainer == null) {
return true;
}
- if(containerDescriptor.getContainmentFeatures() != null && containerDescriptor.getContainmentFeatures().length > 0) {
+ if (containerDescriptor.getContainmentFeatures() != null && containerDescriptor.getContainmentFeatures().length > 0) {
// check containment feature
List<EReference> references = Arrays.asList(containerDescriptor.getContainmentFeatures());
- if(!(references.contains(request.getFeature()))) {
+ if (!(references.contains(request.getFeature()))) {
return false;
}
}
IElementMatcher containerMatcher = containerDescriptor.getMatcher();
- if(containerMatcher != null) {
+ if (containerMatcher != null) {
return containerMatcher.matches(newContainer);
}
// check container is matching the matcher of the container descriptor for the new type
@@ -201,18 +201,18 @@ public class ExtendedTypesOwnerAdvice extends AbstractEditHelperAdvice {
IContainerDescriptor containerDescriptor = typeToMove.getEContainerDescriptor();
EObject newContainer = request.getTargetContainer();
// check it matches the container descriptor for the element type
- if(containerDescriptor == null || newContainer == null) {
+ if (containerDescriptor == null || newContainer == null) {
return true;
}
- if(containerDescriptor.getContainmentFeatures() != null && containerDescriptor.getContainmentFeatures().length > 0) {
+ if (containerDescriptor.getContainmentFeatures() != null && containerDescriptor.getContainmentFeatures().length > 0) {
// check containment feature
List<EReference> references = Arrays.asList(containerDescriptor.getContainmentFeatures());
- if(!(references.contains(request.getTargetFeature(objectToMove)))) {
+ if (!(references.contains(request.getTargetFeature(objectToMove)))) {
return false;
}
}
IElementMatcher containerMatcher = containerDescriptor.getMatcher();
- if(containerMatcher != null) {
+ if (containerMatcher != null) {
return containerMatcher.matches(newContainer);
}
// check container is matching the matcher of the container descriptor for the new type
@@ -221,14 +221,14 @@ public class ExtendedTypesOwnerAdvice extends AbstractEditHelperAdvice {
public List<IExtendedHintedElementType> getAllSuperExtendedTypes(IExtendedHintedElementType type) {
IElementType[] superTypes = type.getAllSuperTypes();
- if(superTypes.length == 0) {
+ if (superTypes.length == 0) {
return Collections.emptyList();
}
List<IExtendedHintedElementType> superExtendedTypes = new ArrayList<IExtendedHintedElementType>();
// get the reverse order (the extended element types are the closest types
- for(int i = superTypes.length - 1; i >= 0; i--) {
- if(superTypes[i] instanceof IExtendedHintedElementType) {
- superExtendedTypes.add((IExtendedHintedElementType)superTypes[i]);
+ for (int i = superTypes.length - 1; i >= 0; i--) {
+ if (superTypes[i] instanceof IExtendedHintedElementType) {
+ superExtendedTypes.add((IExtendedHintedElementType) superTypes[i]);
} /*
* else { // optimization: once we are in the hierarchy of "standard" types, we should not go into this hierarchy
* return superExtendedTypes;
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/DeployExtendedTypeSetConfigurationHandler.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/DeployExtendedTypeSetConfigurationHandler.java
index 68a6ed2f951..2b77c976537 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/DeployExtendedTypeSetConfigurationHandler.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/DeployExtendedTypeSetConfigurationHandler.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -32,7 +32,6 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.infra.extendedtypes.Activator;
-import org.eclipse.papyrus.infra.extendedtypes.ElementTypeSetUtils;
import org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSetRegistry;
import org.eclipse.papyrus.infra.extendedtypes.preferences.ExtendedTypesPreferences;
import org.eclipse.swt.widgets.Shell;
@@ -41,7 +40,7 @@ import org.eclipse.ui.statushandlers.StatusManager;
/**
- * Handler to deploy new configuration
+ * Handler to deploy new configuration
*/
public class DeployExtendedTypeSetConfigurationHandler extends AbstractHandler implements IHandler {
@@ -50,11 +49,11 @@ public class DeployExtendedTypeSetConfigurationHandler extends AbstractHandler i
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection currentSelection = HandlerUtil.getCurrentSelection(event);
- if(!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) {
+ if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) {
return null;
}
- final IStructuredSelection selection = (IStructuredSelection)currentSelection;
+ final IStructuredSelection selection = (IStructuredSelection) currentSelection;
final Shell activeShell = HandlerUtil.getActiveShell(event);
@@ -75,9 +74,9 @@ public class DeployExtendedTypeSetConfigurationHandler extends AbstractHandler i
activeShell.getDisplay().asyncExec(new Runnable() {
public void run() {
- if(event.getResult().isOK()) {
+ if (event.getResult().isOK()) {
MessageDialog.openInformation(activeShell, "Success", event.getResult().getMessage());
- } else if(event.getResult().getSeverity() < IStatus.ERROR) { //Errors are already logged
+ } else if (event.getResult().getSeverity() < IStatus.ERROR) { // Errors are already logged
StatusManager.getManager().handle(event.getResult(), StatusManager.SHOW);
}
}
@@ -96,28 +95,28 @@ public class DeployExtendedTypeSetConfigurationHandler extends AbstractHandler i
MultiStatus result = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "The properties view configuration has been successfully deployed and activated", null);
- while(selectionIterator.hasNext()) {
+ while (selectionIterator.hasNext()) {
Object selectedElement = selectionIterator.next();
- if(selectedElement instanceof IAdaptable) {
- IFile selectedFile = (IFile)((IAdaptable)selectedElement).getAdapter(IFile.class);
- if(selectedFile == null) {
+ 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) {
+ if (selectedFile.getFullPath() != null) {
emfURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true);
- } else if(selectedFile.getRawLocation() != null) {
+ } else if (selectedFile.getRawLocation() != null) {
emfURI = URI.createFileURI(selectedFile.getRawLocation().toString());
}
- if(emfURI == null) {
+ 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;
@@ -128,15 +127,15 @@ public class DeployExtendedTypeSetConfigurationHandler extends AbstractHandler i
monitor.subTask("Reset Element Types Registry");
ExtendedElementTypeSetRegistry.getInstance().loadExtendedElementTypeSet(fileName);
monitor.worked(1);
-
+
result.add(new Status(IStatus.OK, Activator.PLUGIN_ID, "The extended types configuration has been successfully deployed and activated"));
}
}
- if(result.getChildren().length == 1) {
+ 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()) {
+ } 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());
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/UndeployExtendedTypeSetConfigurationHandler.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/UndeployExtendedTypeSetConfigurationHandler.java
index 35753a5c294..0adf047882f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/UndeployExtendedTypeSetConfigurationHandler.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/handler/UndeployExtendedTypeSetConfigurationHandler.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -31,7 +31,6 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.infra.extendedtypes.Activator;
-import org.eclipse.papyrus.infra.extendedtypes.ElementTypeSetUtils;
import org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSetRegistry;
import org.eclipse.papyrus.infra.extendedtypes.preferences.ExtendedTypesPreferences;
import org.eclipse.swt.widgets.Shell;
@@ -49,11 +48,11 @@ public class UndeployExtendedTypeSetConfigurationHandler extends AbstractHandler
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection currentSelection = HandlerUtil.getCurrentSelection(event);
- if(!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) {
+ if (!(currentSelection instanceof IStructuredSelection) || currentSelection.isEmpty()) {
return null;
}
- final IStructuredSelection selection = (IStructuredSelection)currentSelection;
+ final IStructuredSelection selection = (IStructuredSelection) currentSelection;
final Shell activeShell = HandlerUtil.getActiveShell(event);
@@ -74,9 +73,9 @@ public class UndeployExtendedTypeSetConfigurationHandler extends AbstractHandler
activeShell.getDisplay().asyncExec(new Runnable() {
public void run() {
- if(event.getResult().isOK()) {
+ if (event.getResult().isOK()) {
MessageDialog.openInformation(activeShell, "Success", event.getResult().getMessage());
- } else if(event.getResult().getSeverity() < IStatus.ERROR) { //Errors are already logged
+ } else if (event.getResult().getSeverity() < IStatus.ERROR) { // Errors are already logged
StatusManager.getManager().handle(event.getResult(), StatusManager.SHOW);
}
}
@@ -95,28 +94,28 @@ public class UndeployExtendedTypeSetConfigurationHandler extends AbstractHandler
MultiStatus result = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "The extended types configuration has been successfully undeployed", null);
- while(selectionIterator.hasNext()) {
+ while (selectionIterator.hasNext()) {
Object selectedElement = selectionIterator.next();
- if(selectedElement instanceof IAdaptable) {
- IFile selectedFile = (IFile)((IAdaptable)selectedElement).getAdapter(IFile.class);
- if(selectedFile == null) {
+ 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) {
+ if (selectedFile.getFullPath() != null) {
emfURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true);
- } else if(selectedFile.getRawLocation() != null) {
+ } else if (selectedFile.getRawLocation() != null) {
emfURI = URI.createFileURI(selectedFile.getRawLocation().toString());
}
- if(emfURI == null) {
+ 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;
@@ -127,17 +126,17 @@ public class UndeployExtendedTypeSetConfigurationHandler extends AbstractHandler
monitor.subTask("Reset Element Types Registry");
ExtendedElementTypeSetRegistry.getInstance().unload(fileName);
monitor.worked(1);
-
+
// relaunch papyrus service
-
+
result.add(new Status(IStatus.OK, Activator.PLUGIN_ID, "The extended types configuration has been successfully undeployed"));
}
}
- if(result.getChildren().length == 1) {
+ 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()) {
+ } 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());
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationContainerDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationContainerDescriptor.java
index 5618ec76aa9..d9e5291bf86 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationContainerDescriptor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationContainerDescriptor.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -12,9 +12,7 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration;
-import java.util.ArrayList;
import java.util.Arrays;
-import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.EList;
@@ -44,7 +42,7 @@ public class InvariantContainerConfigurationContainerDescriptor implements IInva
* {@inheritDoc}
*/
public IElementMatcher getMatcher() {
- if(matcher == null) {
+ if (matcher == null) {
matcher = createMatcher();
}
return matcher;
@@ -57,39 +55,39 @@ public class InvariantContainerConfigurationContainerDescriptor implements IInva
return new IElementMatcher() {
public boolean matches(EObject eObject) {
- if(eObject==null) {
+ if (eObject == null) {
return false;
}
-
+
IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(eObject, sharedContext);
- if(types == null || types.length == 0) {
+ if (types == null || types.length == 0) {
return false;
}
boolean isValid = false;
- for(HierarchyPermission permission : permissions) {
+ for (HierarchyPermission permission : permissions) {
boolean isPermitted = permission.isIsPermitted();
String childType = permission.getChildType();
boolean isStrict = permission.isIsStrict();
IElementType type = ElementTypeRegistry.getInstance().getType(childType);
- if(type != null) {
- if(isStrict) {
- if(types[0].equals(type)) {
- if(isPermitted) {
+ if (type != null) {
+ if (isStrict) {
+ if (types[0].equals(type)) {
+ if (isPermitted) {
isValid = true;
}
- } else if(!isPermitted) {
+ } else if (!isPermitted) {
isValid = false;
}
} else {
- // not strict. The super types of typeToCreate should contain the permission type if permitted, or not contain the permission type if not permitted
+ // not strict. The super types of typeToCreate should contain the permission type if permitted, or not contain the permission type if not permitted
List<IElementType> allTypes = Arrays.asList(types);
- if(allTypes.contains(type)) {
- if(isPermitted) {
+ if (allTypes.contains(type)) {
+ if (isPermitted) {
isValid = true;
- } else if(!isPermitted) {
+ } else if (!isPermitted) {
isValid = false;
}
- }
+ }
}
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationModelCreation.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationModelCreation.java
index cf69922c6cc..4d294cd94a9 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationModelCreation.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerConfigurationModelCreation.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerEditHelperAdvice.java
index 892cce73c79..5dace245400 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -44,18 +44,18 @@ public class InvariantContainerEditHelperAdvice extends AbstractEditHelperAdvice
*/
@Override
public boolean approveRequest(IEditCommandRequest request) {
- if(request instanceof SetRequest) {
- SetRequest setRequest = ((SetRequest)request);
+ if (request instanceof SetRequest) {
+ SetRequest setRequest = ((SetRequest) request);
EStructuralFeature structuralFeature = setRequest.getFeature();
- if(structuralFeature instanceof EReference) {
- EReference reference = ((EReference)structuralFeature);
- if(reference.isContainment() && setRequest.getValue() != null) {
+ if (structuralFeature instanceof EReference) {
+ EReference reference = ((EReference) structuralFeature);
+ if (reference.isContainment() && setRequest.getValue() != null) {
// check new value
return canContain(setRequest);
}
}
- } else if(request instanceof CreateElementRequest) {
- CreateElementRequest createElementRequest = ((CreateElementRequest)request);
+ } else if (request instanceof CreateElementRequest) {
+ CreateElementRequest createElementRequest = ((CreateElementRequest) request);
IElementType typeToCreate = createElementRequest.getElementType();
boolean approvedRequest = isValid(typeToCreate, false);
return approvedRequest;
@@ -65,29 +65,29 @@ public class InvariantContainerEditHelperAdvice extends AbstractEditHelperAdvice
protected boolean isValid(IElementType typeToAdd, boolean baseIsValid) {
boolean isValid = baseIsValid;
- for(HierarchyPermission permission : permissions) {
+ for (HierarchyPermission permission : permissions) {
boolean isPermitted = permission.isIsPermitted();
String childType = permission.getChildType();
boolean isStrict = permission.isIsStrict();
IElementType type = ElementTypeRegistry.getInstance().getType(childType);
- if(type != null) {
- if(isStrict) {
- if(typeToAdd.equals(type)) {
- if(isPermitted) {
+ if (type != null) {
+ if (isStrict) {
+ if (typeToAdd.equals(type)) {
+ if (isPermitted) {
isValid = true;
}
- } else if(!isPermitted) {
+ } else if (!isPermitted) {
isValid = false;
}
} else {
- // not strict. The super types of typeToCreate should contain the permission type if permitted, or not contain the permission type if not permitted
+ // not strict. The super types of typeToCreate should contain the permission type if permitted, or not contain the permission type if not permitted
List<IElementType> allTypes = Arrays.asList(typeToAdd.getAllSuperTypes());
allTypes.add(typeToAdd);
- if(allTypes.contains(type)) {
- if(isPermitted) {
+ if (allTypes.contains(type)) {
+ if (isPermitted) {
isValid = true;
}
- } else if(!isPermitted) {
+ } else if (!isPermitted) {
isValid = false;
}
}
@@ -95,17 +95,17 @@ public class InvariantContainerEditHelperAdvice extends AbstractEditHelperAdvice
}
return isValid;
}
-
-
+
+
protected boolean canContain(SetRequest request) {
// multivalue or simple value ?
- if(request.getValue() instanceof List<?>) {
- List<Object> values = (List<Object>)request.getValue();
- for(Object value : values) {
- if(value instanceof EObject) {
- IElementType type = ElementTypeRegistry.getInstance().getElementType((EObject)value, request.getClientContext());
- if(type !=null) {
- if(!isValid(type, false)) {
+ if (request.getValue() instanceof List<?>) {
+ List<Object> values = (List<Object>) request.getValue();
+ for (Object value : values) {
+ if (value instanceof EObject) {
+ IElementType type = ElementTypeRegistry.getInstance().getElementType((EObject) value, request.getClientContext());
+ if (type != null) {
+ if (!isValid(type, false)) {
return false;
}
} else {
@@ -114,10 +114,10 @@ public class InvariantContainerEditHelperAdvice extends AbstractEditHelperAdvice
}
}
} else {
- if(request.getValue() instanceof EObject) {
- IElementType type = ElementTypeRegistry.getInstance().getElementType((EObject)request.getValue(), request.getClientContext());
- if(type !=null) {
- return isValid(type, false);
+ if (request.getValue() instanceof EObject) {
+ IElementType type = ElementTypeRegistry.getInstance().getElementType((EObject) request.getValue(), request.getClientContext());
+ if (type != null) {
+ return isValid(type, false);
} else {
return false;
}
@@ -125,8 +125,8 @@ public class InvariantContainerEditHelperAdvice extends AbstractEditHelperAdvice
}
return true;
}
-
-
+
+
/**
* {@inheritDoc}
*/
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerMatcher.java
index 900b320c2c7..17058e3dbf2 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerMatcher.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantcontainerconfiguration/InvariantContainerMatcher.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -12,7 +12,6 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.extendedtypes.invariantcontainerconfiguration;
-import java.util.ArrayList;
import java.util.List;
import org.eclipse.emf.common.util.EList;
@@ -29,7 +28,7 @@ public class InvariantContainerMatcher implements IInvariantElementMatcher<Invar
protected EList<HierarchyPermission> permissions;
/**
- *
+ *
*/
public InvariantContainerMatcher() {
// nothing here. Trying not to create list to avoid unnecessary created objects
@@ -40,42 +39,42 @@ public class InvariantContainerMatcher implements IInvariantElementMatcher<Invar
*/
public boolean matches(EObject eObject) {
return true;
-// boolean matches = false;
-//
-// EObject container = eObject.eContainer();
-//
-// if(container ==null) {
-// return false;
-// }
-//
-// matches = checkAllowed(container, allowedDirectParents, false);
-//
-// // if not ok in direct parents, test in the hierarchy
-// if(!matches && allowedParentsInHierarchy!=null && !allowedParentsInHierarchy.isEmpty()) {
-// while(!matches && container.eContainer() !=null) {
-// container = container.eContainer();
-// matches = checkAllowed(container, allowedParentsInHierarchy, false);
-// }
-// }
-//
-// // check now that some forbidden type does not override the current matches
-// if(!matches) {
-// return false;
-// }
-//
-// container = eObject.eContainer();
-// // container (direct or indirect) could match. now try the forbidden lists
-// matches = checkForbidden(container, forbiddenDirectParents, false);
-//
-// // if not ok in direct parents, test in the hierarchy
-// if(matches && forbiddenParentsInHierarchy!=null && !forbiddenParentsInHierarchy.isEmpty()) {
-// while(matches && container.eContainer() !=null) {
-// container = container.eContainer();
-// matches = checkForbidden(container, forbiddenParentsInHierarchy, false);
-// }
-// }
-//
-// return matches;
+ // boolean matches = false;
+ //
+ // EObject container = eObject.eContainer();
+ //
+ // if(container ==null) {
+ // return false;
+ // }
+ //
+ // matches = checkAllowed(container, allowedDirectParents, false);
+ //
+ // // if not ok in direct parents, test in the hierarchy
+ // if(!matches && allowedParentsInHierarchy!=null && !allowedParentsInHierarchy.isEmpty()) {
+ // while(!matches && container.eContainer() !=null) {
+ // container = container.eContainer();
+ // matches = checkAllowed(container, allowedParentsInHierarchy, false);
+ // }
+ // }
+ //
+ // // check now that some forbidden type does not override the current matches
+ // if(!matches) {
+ // return false;
+ // }
+ //
+ // container = eObject.eContainer();
+ // // container (direct or indirect) could match. now try the forbidden lists
+ // matches = checkForbidden(container, forbiddenDirectParents, false);
+ //
+ // // if not ok in direct parents, test in the hierarchy
+ // if(matches && forbiddenParentsInHierarchy!=null && !forbiddenParentsInHierarchy.isEmpty()) {
+ // while(matches && container.eContainer() !=null) {
+ // container = container.eContainer();
+ // matches = checkForbidden(container, forbiddenParentsInHierarchy, false);
+ // }
+ // }
+ //
+ // return matches;
}
/**
@@ -86,20 +85,20 @@ public class InvariantContainerMatcher implements IInvariantElementMatcher<Invar
*/
protected boolean checkForbidden(EObject container, List<String> forbiddenParents, boolean isStrict) {
// check direct permissions
- if(forbiddenParents != null && !forbiddenParents.isEmpty()) {
+ if (forbiddenParents != null && !forbiddenParents.isEmpty()) {
IElementType parentType = ElementTypeRegistry.getInstance().getElementType(container);
- if(parentType != null) {
+ if (parentType != null) {
// check if necessary all super types of the direct parent
- if(forbiddenParents.contains(parentType.getId())) {
+ if (forbiddenParents.contains(parentType.getId())) {
return false;
} else {
// check also super types ids, if not strict permission
- if(!isStrict) {
- for(IElementType superType : parentType.getAllSuperTypes()) {
- if(forbiddenParents.contains(superType.getId())) {
+ if (!isStrict) {
+ for (IElementType superType : parentType.getAllSuperTypes()) {
+ if (forbiddenParents.contains(superType.getId())) {
return false;
}
- }
+ }
}
}
}
@@ -108,26 +107,26 @@ public class InvariantContainerMatcher implements IInvariantElementMatcher<Invar
}
/**
- *
+ *
*/
protected boolean checkAllowed(EObject container, List<String> allowedParents, boolean isStrict) {
boolean matches = false;
// check direct permissions
- if(allowedParents != null && !allowedParents.isEmpty()) {
+ if (allowedParents != null && !allowedParents.isEmpty()) {
IElementType parentType = ElementTypeRegistry.getInstance().getElementType(container);
- if(parentType != null) {
+ if (parentType != null) {
// check if necessary all super types of the direct parent
- if(allowedParents.contains(parentType.getId())) {
+ if (allowedParents.contains(parentType.getId())) {
matches = true;
} else {
// check also super types ids, if not strict permission
- if(!isStrict) {
- for(IElementType superType : parentType.getAllSuperTypes()) {
- if(allowedParents.contains(superType.getId())) {
+ if (!isStrict) {
+ for (IElementType superType : parentType.getAllSuperTypes()) {
+ if (allowedParents.contains(superType.getId())) {
matches = true;
break;
}
- }
+ }
}
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleCreationElementValidator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleCreationElementValidator.java
index 415bb90cae8..20d119ccd7b 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleCreationElementValidator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleCreationElementValidator.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,7 +19,7 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
/**
- *
+ *
*/
public class AndRuleCreationElementValidator implements IInvariantCreationElementValidator<AndRule> {
@@ -29,8 +29,8 @@ public class AndRuleCreationElementValidator implements IInvariantCreationElemen
* {@inheritDoc}
*/
public boolean canCreate(CreateElementRequest request) {
- for(IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator : composedValidators) {
- if(!creationElementValidator.canCreate(request)) {
+ for (IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator : composedValidators) {
+ if (!creationElementValidator.canCreate(request)) {
return false;
}
}
@@ -42,9 +42,9 @@ public class AndRuleCreationElementValidator implements IInvariantCreationElemen
*/
public void init(AndRule configuration) {
composedValidators = new ArrayList<IInvariantCreationElementValidator<InvariantRuleConfiguration>>();
- for(InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
+ for (InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator = RuleConfigurationFactoryRegistry.getInstance().createCreationElementValidator(composedRule);
- if(creationElementValidator != null) {
+ if (creationElementValidator != null) {
composedValidators.add(creationElementValidator);
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleEditHelperAdvice.java
index 3178adffbfd..c58c5842a5d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -32,9 +32,9 @@ public class AndRuleEditHelperAdvice extends AbstractEditHelperAdvice implements
public void init(AndRule ruleConfiguration) {
// configuration should be a AndRule as declared in the extension point
composedEditHelperAdvices = new ArrayList<IInvariantEditHelperAdvice<InvariantRuleConfiguration>>();
- for(InvariantRuleConfiguration composedRule : ruleConfiguration.getComposedRules()) {
+ for (InvariantRuleConfiguration composedRule : ruleConfiguration.getComposedRules()) {
IInvariantEditHelperAdvice<InvariantRuleConfiguration> editHelperAdvice = RuleConfigurationFactoryRegistry.getInstance().createEditHelperAdvice(composedRule);
- if(editHelperAdvice != null) {
+ if (editHelperAdvice != null) {
composedEditHelperAdvices.add(editHelperAdvice);
}
}
@@ -46,8 +46,8 @@ public class AndRuleEditHelperAdvice extends AbstractEditHelperAdvice implements
@Override
public boolean approveRequest(IEditCommandRequest request) {
// to approve the request, all the composed edit helper advices should approve it
- for(IEditHelperAdvice advice : composedEditHelperAdvices) {
- if(!advice.approveRequest(request)) {
+ for (IEditHelperAdvice advice : composedEditHelperAdvices) {
+ if (!advice.approveRequest(request)) {
return false;
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleElementMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleElementMatcher.java
index 09707a0c286..233ca8c7707 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleElementMatcher.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/AndRuleElementMatcher.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -26,7 +26,7 @@ public class AndRuleElementMatcher implements IInvariantElementMatcher<AndRule>
protected List<IElementMatcher> composedMatchers;
/**
- *
+ *
*/
public AndRuleElementMatcher() {
// Nothing here
@@ -36,12 +36,12 @@ public class AndRuleElementMatcher implements IInvariantElementMatcher<AndRule>
* {@inheritDoc}
*/
public boolean matches(EObject eObject) {
- // deactivate if list of rules is empty
- if(composedMatchers == null || composedMatchers.isEmpty()) {
+ // deactivate if list of rules is empty
+ if (composedMatchers == null || composedMatchers.isEmpty()) {
return false;
}
- for(IElementMatcher matcher : composedMatchers) {
- if(!matcher.matches(eObject)) {
+ for (IElementMatcher matcher : composedMatchers) {
+ if (!matcher.matches(eObject)) {
return false;
}
}
@@ -55,9 +55,9 @@ public class AndRuleElementMatcher implements IInvariantElementMatcher<AndRule>
// for each children configuraton, generates the matcher class and then, the 'matches' method of this matcher will delegate to the matches of the sub rules, and will add all results together
// configuration should be a AndRule as declared in the extension point
composedMatchers = new ArrayList<IElementMatcher>();
- for(InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
+ for (InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
IElementMatcher matcher = RuleConfigurationFactoryRegistry.getInstance().createMatcher(composedRule);
- if(matcher != null) {
+ if (matcher != null) {
composedMatchers.add(matcher);
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantConfigurationModelCreation.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantConfigurationModelCreation.java
index 9ffe2a2dc57..c089f4d28cc 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantConfigurationModelCreation.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantConfigurationModelCreation.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -17,6 +17,6 @@ package org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfigurati
* Interface used to create new invariant rule model element in the configuration model
*/
public interface IInvariantConfigurationModelCreation<T extends InvariantRuleConfiguration> {
-
+
public T createConfigurationModel();
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantContainerDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantContainerDescriptor.java
index 9ee32bfe8d8..75da81c8f4d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantContainerDescriptor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantContainerDescriptor.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantCreationElementValidator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantCreationElementValidator.java
index b46c5bcd43a..abeb9cafa6a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantCreationElementValidator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantCreationElementValidator.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -16,9 +16,9 @@ import org.eclipse.papyrus.infra.extendedtypes.ICreationElementValidator;
/**
- *
+ *
*/
public interface IInvariantCreationElementValidator<T extends InvariantRuleConfiguration> extends ICreationElementValidator {
-
+
void init(T configuration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantEditHelperAdvice.java
index 7e94b39c9a4..d50cf3ddd43 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -21,8 +21,9 @@ public interface IInvariantEditHelperAdvice<T extends InvariantRuleConfiguration
/**
* Inits the edit helper advice with its given configuration
- *
- * @param ruleConfiguration the configuration of the edit helper advice
+ *
+ * @param ruleConfiguration
+ * the configuration of the edit helper advice
*/
void init(T ruleConfiguration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantElementMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantElementMatcher.java
index 3b3b7112b24..79e2975ef42 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantElementMatcher.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantElementMatcher.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,10 +19,12 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
* Interface that all {@link IElementMatcher} that can be configured at runtime using a model should implement
*/
public interface IInvariantElementMatcher<T extends InvariantRuleConfiguration> extends IElementMatcher {
-
+
/**
* Initialize the element matcher with the given configuration
- * @param configuration the runtime configuration of the matcher
+ *
+ * @param configuration
+ * the runtime configuration of the matcher
*/
void init(T configuration);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantRuleExtensionPoint.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantRuleExtensionPoint.java
index 399879f659f..17551f2b2ae 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantRuleExtensionPoint.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/IInvariantRuleExtensionPoint.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -19,20 +19,20 @@ import org.eclipse.papyrus.infra.extendedtypes.Activator;
* @author RS211865
*/
public interface IInvariantRuleExtensionPoint {
-
+
/** ID of the extension point */
public final static String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".invariantRule";
-
+
public static final String ELEMENT_MATCHER_CLASS = "elementMatcher";
public static final String CONTAINER_DESCRIPTOR_CLASS = "semanticTypeDescriptor";
public static final String EDIT_HELPER_ADVICE_CLASS = "editHelperAdvice";
-
+
public static final String RULE_CONFIGURATION_CLASS = "configurationClass";
public static final String CONFIGURATION_MODEL_CREATION = "configurationModelCreation";
- public static final String CREATION_ELEMENT_VALIDATOR_CLASS = "creationElementValidator";
-
+ public static final String CREATION_ELEMENT_VALIDATOR_CLASS = "creationElementValidator";
+
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantElementTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantElementTypeFactory.java
index d5f13e06fdb..099c080afa9 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantElementTypeFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantElementTypeFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -13,8 +13,6 @@
package org.eclipse.papyrus.infra.extendedtypes.invariantsemantictypeconfiguration;
import java.util.Arrays;
-import java.util.Collections;
-
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;
@@ -30,6 +28,7 @@ public class InvariantElementTypeFactory extends AbstractConfigurableElementType
/**
* {@inheritDoc}
*/
+ @Override
public ICreationElementValidator createElementCreationValidator(InvariantSemanticTypeConfiguration configuration) {
return RuleConfigurationFactoryRegistry.getInstance().createCreationElementValidator(configuration.getInvariantRuleConfiguration());
}
@@ -55,7 +54,7 @@ public class InvariantElementTypeFactory extends AbstractConfigurableElementType
*/
@Override
protected IContainerDescriptor createContainerDescriptor(InvariantSemanticTypeConfiguration configuration) {
- return RuleConfigurationFactoryRegistry.getInstance().createContainerDescriptor(configuration.getInvariantRuleConfiguration());
+ return RuleConfigurationFactoryRegistry.getInstance().createContainerDescriptor(configuration.getInvariantRuleConfiguration());
}
/**
@@ -64,17 +63,17 @@ public class InvariantElementTypeFactory extends AbstractConfigurableElementType
@Override
protected IElementMatcher createElementMatcher(InvariantSemanticTypeConfiguration configuration) {
IElementMatcher superMatcher = super.createElementMatcher(configuration);
- if(superMatcher !=null) {
+ if (superMatcher != null) {
// create a composed matcher to have the matcher described by the model configuration element type and the one for the specific invariants
IElementMatcher invariantMatcher = RuleConfigurationFactoryRegistry.getInstance().createMatcher(configuration.getInvariantRuleConfiguration());
- if(invariantMatcher!=null) {
+ if (invariantMatcher != null) {
ComposedElementMatcher composedMatcher = new ComposedElementMatcher(Arrays.asList(superMatcher, invariantMatcher));
- return composedMatcher;
+ return composedMatcher;
}
return superMatcher;
}
// no configured matcher. Return the invariant one
return RuleConfigurationFactoryRegistry.getInstance().createMatcher(configuration.getInvariantRuleConfiguration());
}
-
+
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeContainerDescriptor.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeContainerDescriptor.java
index 016fbfc7b7c..3d5e695d937 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeContainerDescriptor.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeContainerDescriptor.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -26,7 +26,7 @@ public class InvariantSemanticTypeContainerDescriptor implements IContainerDescr
* @param configuration
*/
public InvariantSemanticTypeContainerDescriptor(InvariantSemanticTypeConfiguration configuration) {
-
+
}
/**
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeEditHelperAdvice.java
index 4d563ce3d03..401b8330c88 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/InvariantSemanticTypeEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleCreationElementValidator.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleCreationElementValidator.java
index 810510e6200..815538de96d 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleCreationElementValidator.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleCreationElementValidator.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -29,8 +29,8 @@ public class OrRuleCreationElementValidator implements IInvariantCreationElement
* {@inheritDoc}
*/
public boolean canCreate(CreateElementRequest request) {
- for(IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator : composedValidators) {
- if(creationElementValidator.canCreate(request)) {
+ for (IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator : composedValidators) {
+ if (creationElementValidator.canCreate(request)) {
return true;
}
}
@@ -42,9 +42,9 @@ public class OrRuleCreationElementValidator implements IInvariantCreationElement
*/
public void init(OrRule configuration) {
composedValidators = new ArrayList<IInvariantCreationElementValidator<InvariantRuleConfiguration>>();
- for(InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
+ for (InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator = RuleConfigurationFactoryRegistry.getInstance().createCreationElementValidator(composedRule);
- if(creationElementValidator != null) {
+ if (creationElementValidator != null) {
composedValidators.add(creationElementValidator);
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleEditHelperAdvice.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleEditHelperAdvice.java
index 119caa57c8d..b3bbcb1deeb 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleEditHelperAdvice.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleEditHelperAdvice.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -36,9 +36,9 @@ public class OrRuleEditHelperAdvice extends AbstractEditHelperAdvice implements
public void init(OrRule ruleConfiguration) {
// configuration should be a AndRule as declared in the extension point
composedEditHelperAdvices = new ArrayList<IInvariantEditHelperAdvice<InvariantRuleConfiguration>>();
- for(InvariantRuleConfiguration composedRule : ruleConfiguration.getComposedRules()) {
+ for (InvariantRuleConfiguration composedRule : ruleConfiguration.getComposedRules()) {
IInvariantEditHelperAdvice<InvariantRuleConfiguration> editHelperAdvice = RuleConfigurationFactoryRegistry.getInstance().createEditHelperAdvice(composedRule);
- if(editHelperAdvice != null) {
+ if (editHelperAdvice != null) {
composedEditHelperAdvices.add(editHelperAdvice);
}
}
@@ -50,8 +50,8 @@ public class OrRuleEditHelperAdvice extends AbstractEditHelperAdvice implements
@Override
public boolean approveRequest(IEditCommandRequest request) {
// to approve the request, all the composed edit helper advices should approve it
- for(IEditHelperAdvice advice : composedEditHelperAdvices) {
- if(advice.approveRequest(request)) {
+ for (IEditHelperAdvice advice : composedEditHelperAdvices) {
+ if (advice.approveRequest(request)) {
return true;
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleElementMatcher.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleElementMatcher.java
index 648b4090642..dfd9aea8d50 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleElementMatcher.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/OrRuleElementMatcher.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -26,22 +26,22 @@ public class OrRuleElementMatcher implements IInvariantElementMatcher<OrRule> {
protected List<IElementMatcher> composedMatchers;
/**
- *
+ *
*/
public OrRuleElementMatcher() {
- // nothing here
+ // nothing here
}
/**
* {@inheritDoc}
*/
public boolean matches(EObject eObject) {
- // deactivate if list of rules is empty
- if(composedMatchers == null || composedMatchers.isEmpty()) {
+ // deactivate if list of rules is empty
+ if (composedMatchers == null || composedMatchers.isEmpty()) {
return false;
}
- for(IElementMatcher matcher : composedMatchers) {
- if(matcher.matches(eObject)) {
+ for (IElementMatcher matcher : composedMatchers) {
+ if (matcher.matches(eObject)) {
return true;
}
}
@@ -55,9 +55,9 @@ public class OrRuleElementMatcher implements IInvariantElementMatcher<OrRule> {
// for each children configuraton, generates the matcher class and then, the 'matches' method of this matcher will delegate to the matches of the sub rules, and will add all results together
// configuration should be a AndRule as declared in the extension point
composedMatchers = new ArrayList<IElementMatcher>();
- for(InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
+ for (InvariantRuleConfiguration composedRule : configuration.getComposedRules()) {
IElementMatcher matcher = RuleConfigurationFactoryRegistry.getInstance().createMatcher(composedRule);
- if(matcher != null) {
+ if (matcher != null) {
composedMatchers.add(matcher);
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/RuleConfigurationFactoryRegistry.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/RuleConfigurationFactoryRegistry.java
index 3d5dfda2c9d..0f217f29869 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/RuleConfigurationFactoryRegistry.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/invariantsemantictypeconfiguration/RuleConfigurationFactoryRegistry.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -40,11 +40,11 @@ public class RuleConfigurationFactoryRegistry {
/**
* returns the singleton instance of this registry
- *
+ *
* @return the singleton instance of this registry
*/
public static synchronized RuleConfigurationFactoryRegistry getInstance() {
- if(registry == null) {
+ if (registry == null) {
registry = new RuleConfigurationFactoryRegistry();
registry.init();
}
@@ -55,22 +55,23 @@ public class RuleConfigurationFactoryRegistry {
* Inits the registry.
*/
protected void init() {
- configurationTypeToClassDescriptor = new HashMap<String, RuleConfigurationFactoryRegistry.ConfigurableClassDescriptor>();
- //read invariant rule configuration etension point
+ configurationTypeToClassDescriptor = new HashMap<String, RuleConfigurationFactoryRegistry.ConfigurableClassDescriptor>();
+ // read invariant rule configuration etension point
IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(IInvariantRuleExtensionPoint.EXTENSION_POINT_ID);
- // for each element, parses and retrieve the model file. then loads it and returns the root element
- for(IConfigurationElement configurationElement : elements) {
- // contributor will always be the same, but implementation could be different.
+ // for each element, parses and retrieve the model file. then loads it and returns the root element
+ for (IConfigurationElement configurationElement : elements) {
+ // contributor will always be the same, but implementation could be different.
String contributorName = configurationElement.getContributor().getName();
String configurationClass = configurationElement.getAttribute(IInvariantRuleExtensionPoint.RULE_CONFIGURATION_CLASS);
-
+
String matcherClassName = configurationElement.getAttribute(IInvariantRuleExtensionPoint.ELEMENT_MATCHER_CLASS);
String editHelperAdviceClassName = configurationElement.getAttribute(IInvariantRuleExtensionPoint.EDIT_HELPER_ADVICE_CLASS);
String containerDescriptorClassName = configurationElement.getAttribute(IInvariantRuleExtensionPoint.CONTAINER_DESCRIPTOR_CLASS);
String creationElementValidatorClassName = configurationElement.getAttribute(IInvariantRuleExtensionPoint.CREATION_ELEMENT_VALIDATOR_CLASS);
-
- ConfigurableClassDescriptor configurableClassDescriptor = new ConfigurableClassDescriptor(contributorName, matcherClassName, contributorName, editHelperAdviceClassName, contributorName, containerDescriptorClassName, contributorName, creationElementValidatorClassName);
+
+ ConfigurableClassDescriptor configurableClassDescriptor = new ConfigurableClassDescriptor(contributorName, matcherClassName, contributorName, editHelperAdviceClassName, contributorName, containerDescriptorClassName, contributorName,
+ creationElementValidatorClassName);
configurationTypeToClassDescriptor.put(configurationClass, configurableClassDescriptor);
}
@@ -78,20 +79,20 @@ public class RuleConfigurationFactoryRegistry {
/**
* Creates the {@link IElementMatcher} specific to the given rule configuration
- *
+ *
* @param ruleConfiguration
- * the rule configuration that will configure the created matcher
+ * the rule configuration that will configure the created matcher
* @return the {@link IElementMatcher} created or <code>null</code> if none could be created
*/
public IInvariantElementMatcher<InvariantRuleConfiguration> createMatcher(InvariantRuleConfiguration ruleConfiguration) {
// creates the matcher from the extension points
Class<IInvariantElementMatcher<InvariantRuleConfiguration>> elementMatcherClass = getMatcherClass(ruleConfiguration);
- if(elementMatcherClass == null) {
+ if (elementMatcherClass == null) {
return null;
}
try {
IInvariantElementMatcher<InvariantRuleConfiguration> matcher = elementMatcherClass.newInstance();
- if(matcher != null) {
+ if (matcher != null) {
matcher.init(ruleConfiguration);
}
return matcher;
@@ -109,12 +110,12 @@ public class RuleConfigurationFactoryRegistry {
*/
public IInvariantContainerDescriptor<InvariantRuleConfiguration> createContainerDescriptor(InvariantRuleConfiguration ruleConfiguration) {
Class<IInvariantContainerDescriptor<InvariantRuleConfiguration>> containerDescriptorClass = getContainerDescriptorClass(ruleConfiguration);
- if(containerDescriptorClass == null) {
+ if (containerDescriptorClass == null) {
return null;
}
try {
IInvariantContainerDescriptor<InvariantRuleConfiguration> containerDescriptor = containerDescriptorClass.newInstance();
- if(containerDescriptor != null) {
+ if (containerDescriptor != null) {
containerDescriptor.init(ruleConfiguration);
}
return containerDescriptor;
@@ -132,13 +133,13 @@ public class RuleConfigurationFactoryRegistry {
*/
public IInvariantEditHelperAdvice<InvariantRuleConfiguration> createEditHelperAdvice(InvariantRuleConfiguration ruleConfiguration) {
Class<IInvariantEditHelperAdvice<InvariantRuleConfiguration>> editHelperAdviceClass = getEditHelperAdviceClass(ruleConfiguration);
- if(editHelperAdviceClass == null) {
- Activator.log.error("impossible to find the edit helper advice implementation for configuration type : " + ((ruleConfiguration!=null) ? ruleConfiguration.eClass().getName() : "null"), null);
+ if (editHelperAdviceClass == null) {
+ Activator.log.error("impossible to find the edit helper advice implementation for configuration type : " + ((ruleConfiguration != null) ? ruleConfiguration.eClass().getName() : "null"), null);
return null;
}
try {
IInvariantEditHelperAdvice<InvariantRuleConfiguration> editHelperAdvice = editHelperAdviceClass.newInstance();
- if(editHelperAdvice != null) {
+ if (editHelperAdvice != null) {
editHelperAdvice.init(ruleConfiguration);
}
return editHelperAdvice;
@@ -149,20 +150,20 @@ public class RuleConfigurationFactoryRegistry {
}
return null;
}
-
+
/**
* @param ruleConfiguration
* @return
*/
public IInvariantCreationElementValidator<InvariantRuleConfiguration> createCreationElementValidator(InvariantRuleConfiguration ruleConfiguration) {
Class<IInvariantCreationElementValidator<InvariantRuleConfiguration>> creationElementValidatorClass = getCreationElementValidatorClass(ruleConfiguration);
- if(creationElementValidatorClass == null) {
+ if (creationElementValidatorClass == null) {
// Activator.log.error("impossible to find the Creation Element Validator for configuration type : " + ((ruleConfiguration!=null) ? ruleConfiguration.eClass().getName() : "null"), null);
return null;
}
try {
IInvariantCreationElementValidator<InvariantRuleConfiguration> creationElementValidator = creationElementValidatorClass.newInstance();
- if(creationElementValidator != null) {
+ if (creationElementValidator != null) {
creationElementValidator.init(ruleConfiguration);
}
return creationElementValidator;
@@ -173,8 +174,8 @@ public class RuleConfigurationFactoryRegistry {
}
return null;
}
-
-
+
+
/**
* @param ruleConfiguration
* @return
@@ -184,13 +185,13 @@ public class RuleConfigurationFactoryRegistry {
String configurationType = configuration.eClass().getInstanceClassName();
String className = configurationTypeToClassDescriptor.get(configurationType).getCreationElementValidatorClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getCreationElementValidatorContributorName();
-
+
// look in the list of registered matcher for the right one
- if(className ==null) {
- //Activator.log.error("There should be an implementation class for the configuration "+configurationType+ " from contributor "+contributorName, null);
- } else if(contributorName !=null) {
- return (Class<IInvariantCreationElementValidator<InvariantRuleConfiguration>>)loadClass(className, contributorName);
- }
+ if (className == null) {
+ // Activator.log.error("There should be an implementation class for the configuration "+configurationType+ " from contributor "+contributorName, null);
+ } else if (contributorName != null) {
+ return (Class<IInvariantCreationElementValidator<InvariantRuleConfiguration>>) loadClass(className, contributorName);
+ }
return null;
}
@@ -200,18 +201,18 @@ public class RuleConfigurationFactoryRegistry {
*/
@SuppressWarnings("unchecked")
protected Class<IInvariantElementMatcher<InvariantRuleConfiguration>> getMatcherClass(InvariantRuleConfiguration configuration) {
-
+
String configurationType = configuration.eClass().getInstanceClassName();
String className = configurationTypeToClassDescriptor.get(configurationType).getElementMatcherClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getElementMatcherContributorName();
-
+
// look in the list of registered matcher for the right one
- if(className !=null && contributorName !=null) {
- return (Class<IInvariantElementMatcher<InvariantRuleConfiguration>>)loadClass(className, contributorName);
+ if (className != null && contributorName != null) {
+ return (Class<IInvariantElementMatcher<InvariantRuleConfiguration>>) loadClass(className, contributorName);
}
return null;
}
-
+
/**
* @param configurationType
* @return
@@ -221,9 +222,9 @@ public class RuleConfigurationFactoryRegistry {
String configurationType = configuration.eClass().getInstanceClassName();
String className = configurationTypeToClassDescriptor.get(configurationType).getEditHelperAdviceClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getEditHelperAdviceContributorName();
-
+
// look in the list of registered edit helper advices for the right one
- return (Class<IInvariantEditHelperAdvice<InvariantRuleConfiguration>>)loadClass(className, contributorName);
+ return (Class<IInvariantEditHelperAdvice<InvariantRuleConfiguration>>) loadClass(className, contributorName);
}
/**
@@ -235,17 +236,17 @@ public class RuleConfigurationFactoryRegistry {
String configurationType = configuration.eClass().getInstanceClassName();
String className = configurationTypeToClassDescriptor.get(configurationType).getContainerDescriptorClassName();
String contributorName = configurationTypeToClassDescriptor.get(configurationType).getContainerDescriptorContributorName();
-
-
+
+
// look in the list of registered edit helper advices for the right one
- if(className !=null && contributorName !=null) {
- return (Class<IInvariantContainerDescriptor<InvariantRuleConfiguration>>)loadClass(className, contributorName);
+ if (className != null && contributorName != null) {
+ return (Class<IInvariantContainerDescriptor<InvariantRuleConfiguration>>) loadClass(className, contributorName);
}
return null;
}
protected static class ConfigurableClassDescriptor {
-
+
/**
* @param elementMatcherContributorName
* @param elementMatcherClassName
@@ -254,7 +255,8 @@ public class RuleConfigurationFactoryRegistry {
* @param containerDescriptorContributorName
* @param containerDescriptorClassName
*/
- public ConfigurableClassDescriptor(String elementMatcherContributorName, String elementMatcherClassName, String editHelperAdviceContributorName, String editHelperAdviceClassName, String containerDescriptorContributorName, String containerDescriptorClassName, String creationElementValidatorContributorName, String creationElementValidatorClassName) {
+ public ConfigurableClassDescriptor(String elementMatcherContributorName, String elementMatcherClassName, String editHelperAdviceContributorName, String editHelperAdviceClassName, String containerDescriptorContributorName,
+ String containerDescriptorClassName, String creationElementValidatorContributorName, String creationElementValidatorClassName) {
this.elementMatcherContributorName = elementMatcherContributorName;
this.elementMatcherClassName = elementMatcherClassName;
this.editHelperAdviceContributorName = editHelperAdviceContributorName;
@@ -266,15 +268,15 @@ public class RuleConfigurationFactoryRegistry {
}
private final String elementMatcherContributorName;
-
+
private final String elementMatcherClassName;
-
+
private final String editHelperAdviceContributorName;
-
+
private final String editHelperAdviceClassName;
-
+
private final String containerDescriptorContributorName;
-
+
private final String containerDescriptorClassName;
private final String creationElementValidatorContributorName;
@@ -294,7 +296,7 @@ public class RuleConfigurationFactoryRegistry {
public String getCreationElementValidatorClassName() {
return creationElementValidatorClassName;
}
-
+
/**
* @return the elementMatcherContributorName
*/
@@ -302,7 +304,7 @@ public class RuleConfigurationFactoryRegistry {
return elementMatcherContributorName;
}
-
+
/**
* @return the elementMatcherClassName
*/
@@ -310,7 +312,7 @@ public class RuleConfigurationFactoryRegistry {
return elementMatcherClassName;
}
-
+
/**
* @return the editHelperAdviceContributorName
*/
@@ -318,7 +320,7 @@ public class RuleConfigurationFactoryRegistry {
return editHelperAdviceContributorName;
}
-
+
/**
* @return the editHelperAdviceClassName
*/
@@ -326,7 +328,7 @@ public class RuleConfigurationFactoryRegistry {
return editHelperAdviceClassName;
}
-
+
/**
* @return the containerDescriptorContributorName
*/
@@ -334,19 +336,19 @@ public class RuleConfigurationFactoryRegistry {
return containerDescriptorContributorName;
}
-
+
/**
* @return the containerDescriptorClassName
*/
public String getContainerDescriptorClassName() {
return containerDescriptorClassName;
}
-
+
}
-
- ///////////////////////////////////////////////////////////////////////////
+
+ // /////////////////////////////////////////////////////////////////////////
// loading resource
- ///////////////////////////////////////////////////////////////////////////
+ // /////////////////////////////////////////////////////////////////////////
/** A map of classes that have been successfully loaded, keyed on the class name optionally prepended by the plugin ID, if specified. */
private static Map<String, WeakReference<Class<?>>> successLookupTable = new HashMap<String, WeakReference<Class<?>>>();
@@ -358,11 +360,11 @@ public class RuleConfigurationFactoryRegistry {
/**
* A utility method to load a class using its name and a given class loader.
- *
+ *
* @param className
- * The class name
+ * The class name
* @param bundle
- * The class loader
+ * The class loader
* @return The loaded class or <code>null</code> if could not be loaded
*/
protected static Class<?> loadClass(String className, String pluginId) {
@@ -373,21 +375,22 @@ public class RuleConfigurationFactoryRegistry {
String keyString = keyStringBuf.toString();
WeakReference<Class<?>> ref = successLookupTable.get(keyString);
Class<?> found = (ref != null) ? ref.get() : null;
- if(found == null) {
- if(ref != null)
+ if (found == null) {
+ if (ref != null) {
successLookupTable.remove(keyString);
- if(!failureLookupTable.contains(keyString)) {
+ }
+ if (!failureLookupTable.contains(keyString)) {
try {
Bundle bundle = basicGetPluginBundle(pluginId);
- if(bundle != null) {
+ if (bundle != null) {
// never load the class if the bundle is not active other wise
// we will cause the plugin to load
// unless the class is in the exception list
int state = bundle.getState();
- if(state == org.osgi.framework.Bundle.ACTIVE || isInExceptionList(bundle, className)) {
+ if (state == org.osgi.framework.Bundle.ACTIVE || isInExceptionList(bundle, className)) {
found = bundle.loadClass(className);
successLookupTable.put(keyString, new WeakReference<Class<?>>(found));
- if(state == org.osgi.framework.Bundle.ACTIVE) {
+ if (state == org.osgi.framework.Bundle.ACTIVE) {
bundleToExceptionsSetMap.remove(bundle);
}
}
@@ -405,15 +408,16 @@ public class RuleConfigurationFactoryRegistry {
/**
* Given a bundle id, it checks if the bundle is found and activated. If it
* is, the method returns the bundle, otherwise it returns <code>null</code>.
- *
+ *
* @param pluginId
- * the bundle ID
+ * the bundle ID
* @return the bundle, if found
*/
protected static Bundle getPluginBundle(String pluginId) {
Bundle bundle = basicGetPluginBundle(pluginId);
- if(null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE)
+ if (null != bundle && bundle.getState() == org.osgi.framework.Bundle.ACTIVE) {
return bundle;
+ }
return null;
}
@@ -424,23 +428,23 @@ public class RuleConfigurationFactoryRegistry {
private static boolean isInExceptionList(Bundle bundle, String className) {
String packageName = className.substring(0, className.lastIndexOf('.'));
Set<String> exceptionSet = bundleToExceptionsSetMap.get(bundle);
- if(exceptionSet == null) {
+ if (exceptionSet == null) {
Dictionary<String, String> dict = bundle.getHeaders();
String value = dict.get("Eclipse-LazyStart"); //$NON-NLS-1$
- if(value != null) {
+ if (value != null) {
int index = value.indexOf("exceptions"); //$NON-NLS-1$
- if(index != -1) {
+ if (index != -1) {
try {
int start = value.indexOf('"', index + 1);
int end = value.indexOf('"', start + 1);
String exceptions = value.substring(start + 1, end);
exceptionSet = new HashSet<String>(2);
StringTokenizer tokenizer = new StringTokenizer(exceptions, ","); //$NON-NLS-1$
- while(tokenizer.hasMoreTokens()) {
+ while (tokenizer.hasMoreTokens()) {
exceptionSet.add(tokenizer.nextToken().trim());
}
} catch (IndexOutOfBoundsException exception) {
- // this means the MF did not follow the documented format for the exceptions list so i'll consider it empty
+ // this means the MF did not follow the documented format for the exceptions list so i'll consider it empty
exceptionSet = Collections.emptySet();
}
} else {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/preferences/ExtendedTypesPreferences.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/preferences/ExtendedTypesPreferences.java
index e02c87e3752..3d07126e089 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/preferences/ExtendedTypesPreferences.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/preferences/ExtendedTypesPreferences.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* 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
@@ -16,9 +16,7 @@ package org.eclipse.papyrus.infra.extendedtypes.preferences;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
-import java.io.ObjectOutputStream.PutField;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import org.eclipse.jface.preference.IPreferenceStore;
@@ -48,7 +46,7 @@ public class ExtendedTypesPreferences {
/**
* Returns the preference store used to store extended types preferences.
- *
+ *
* @return the preference store of the plugin
*/
protected static IPreferenceStore getPreferenceStore() {
@@ -58,13 +56,13 @@ public class ExtendedTypesPreferences {
/**
* Retrieves the root memento from the plugin preferences for all extended types redefinition
* redefinitions.
- *
+ *
* @return the root memento if there were existing customizations, a newly created one otherwise (empty one)
*/
protected static XMLMemento getLocalRedefinitions() {
String sValue = getPreferenceStore().getString(EXTENDED_TYPES_REDEFINITIONS);
try {
- if(sValue != null && !sValue.equals("")) { //$NON-NLS-1$
+ if (sValue != null && !sValue.equals("")) { //$NON-NLS-1$
XMLMemento rootMemento = XMLMemento.createReadRoot(new StringReader(sValue));
return rootMemento;
} else {
@@ -78,11 +76,11 @@ public class ExtendedTypesPreferences {
/**
* Register a new local redefinition of a extendedTypes.
- *
+ *
* @param extendedTypesID
- * the id of the extendedTypes to register
+ * the id of the extendedTypes to register
* @param path
- * the path to the configuration of the extendedTypes
+ * the path to the configuration of the extendedTypes
* @return the memento that has been registered
*/
public static IMemento registerLocalRedefinition(String extendedTypesID, String path) {
@@ -90,7 +88,7 @@ public class ExtendedTypesPreferences {
// try to find an existing local definition for this extendedTypes
IMemento memento = getExtendedTypesRedefinitionNode(extendedTypesID);
// if one exists, remove it from the preferences
- if(memento != null) {
+ if (memento != null) {
unregisterLocalRedefinition(extendedTypesID);
}
// then register the new one
@@ -103,18 +101,18 @@ public class ExtendedTypesPreferences {
/**
* Returns the memento associated to the extendedTypes, or <code>null</code> if none exists
- *
+ *
* @param extendedTypesID
- * the identifier of the extendedTypes to find
+ * the identifier of the extendedTypes to find
* @return the memento found or <code>null</code> if no customization exists for this extendedTypes
*/
private static IMemento getExtendedTypesRedefinitionNode(String extendedTypesID) {
XMLMemento rootMemento = getLocalRedefinitions();
IMemento[] redefinitions = rootMemento.getChildren(EXTENDED_TYPES_REDEFINITION);
- for(IMemento redefinitionMemento : redefinitions) {
+ for (IMemento redefinitionMemento : redefinitions) {
String extendedTypesNodeID = redefinitionMemento.getString(ID);
// check equals. extendedTypes ID is not null, as checked at the begining of the method.
- if(extendedTypesID.equals(extendedTypesNodeID)) {
+ if (extendedTypesID.equals(extendedTypesNodeID)) {
return redefinitionMemento;
}
}
@@ -123,7 +121,7 @@ public class ExtendedTypesPreferences {
/**
* Returns the memento associated to the extendedTypes set definition in workspace, or <code>null</code> if none exists
- *
+ *
* @return the memento found or <code>null</code> if no customization exists for this extendedTypes
*/
protected static IMemento[] getWorkspaceDefinitions() {
@@ -134,20 +132,20 @@ public class ExtendedTypesPreferences {
/**
* Returns the memento associated to the extendedTypes set definition in workspace, or <code>null</code> if none exists
- *
+ *
* @return the memento found or <code>null</code> if no customization exists for this extendedTypes
*/
protected static IMemento getWorkspaceDefinition(String extendedTypeSetsID) {
- if(extendedTypeSetsID == null) {
+ if (extendedTypeSetsID == null) {
return null;
}
IMemento[] workspaceDefinitions = getWorkspaceDefinitions();
- if(workspaceDefinitions == null || workspaceDefinitions.length == 0) {
+ if (workspaceDefinitions == null || workspaceDefinitions.length == 0) {
return null;
}
- for(IMemento memento : workspaceDefinitions) {
+ for (IMemento memento : workspaceDefinitions) {
String id = memento.getString(ID);
- if(extendedTypeSetsID.equals(id)) {
+ if (extendedTypeSetsID.equals(id)) {
return memento;
}
}
@@ -156,18 +154,18 @@ public class ExtendedTypesPreferences {
/**
* Returns the path for a given extended type local redefinition
- *
+ *
* @param extendedTypesID
- * the unique identifier of the extended type to retrieve
+ * the unique identifier of the extended type to retrieve
* @return the path to the configuration of the extended types or <code>null</code> if no customization exists for this extended type
* configuration
*/
public static String getExtendedTypesRedefinition(String extendedTypesID) {
- if(extendedTypesID == null) {
+ if (extendedTypesID == null) {
Activator.log.debug("Trying to find preferences for a null extended type set identifier");
}
IMemento memento = getExtendedTypesRedefinitionNode(extendedTypesID);
- if(memento != null) {
+ if (memento != null) {
return memento.getString(PATH);
}
return null;
@@ -175,9 +173,9 @@ public class ExtendedTypesPreferences {
/**
* Unregister a specific local redefinition
- *
+ *
* @param extendedTypesID
- * the identifier of the extended types set to unregister
+ * the identifier of the extended types set to unregister
*/
public static void unregisterLocalRedefinition(String extendedTypesID) {
XMLMemento rootMemento = getLocalRedefinitions();
@@ -186,12 +184,12 @@ public class ExtendedTypesPreferences {
// except the one to
// delete...
XMLMemento newRootMemento = XMLMemento.createWriteRoot(EXTENDED_TYPES_REDEFINITIONS);
- for(IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_REDEFINITION)) {
- if(!memento.getString(ID).equals(extendedTypesID)) {
+ for (IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_REDEFINITION)) {
+ if (!memento.getString(ID).equals(extendedTypesID)) {
newRootMemento.putMemento(memento);
}
}
- for(IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_SET_WORKSPACE_DEFINITION)) {
+ for (IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_SET_WORKSPACE_DEFINITION)) {
newRootMemento.putMemento(memento);
}
// save new Memento
@@ -208,11 +206,11 @@ public class ExtendedTypesPreferences {
// except the one to
// delete...
XMLMemento newRootMemento = XMLMemento.createWriteRoot(EXTENDED_TYPES_REDEFINITIONS);
- for(IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_REDEFINITION)) {
+ for (IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_REDEFINITION)) {
newRootMemento.putMemento(memento);
}
- for(IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_SET_WORKSPACE_DEFINITION)) {
- if(!memento.getString(ID).equals(extendedTypesID)) {
+ for (IMemento memento : rootMemento.getChildren(EXTENDED_TYPES_SET_WORKSPACE_DEFINITION)) {
+ if (!memento.getString(ID).equals(extendedTypesID)) {
newRootMemento.putMemento(memento);
}
}
@@ -222,18 +220,18 @@ public class ExtendedTypesPreferences {
/**
* saves the given root memento with the given key in the preference area
- *
+ *
* @param xmlMemento
- * the memento to save
+ * the memento to save
* @param key
- * the key for the preference store
+ * the key for the preference store
*/
private static void saveMemento(XMLMemento xmlMemento, String key) {
// save memento
StringWriter writer = new StringWriter();
try {
xmlMemento.save(writer);
- if(getPreferenceStore() != null) {
+ if (getPreferenceStore() != null) {
getPreferenceStore().setValue(key, writer.toString());
}
} catch (IOException e) {
@@ -243,9 +241,9 @@ public class ExtendedTypesPreferences {
/**
* Saves the set of local redefinitions into the preference store
- *
+ *
* @param rootMemento
- * the memento to save
+ * the memento to save
*/
public static void saveLocalRedefinitions(XMLMemento rootMemento) {
saveMemento(rootMemento, EXTENDED_TYPES_REDEFINITIONS);
@@ -253,17 +251,17 @@ public class ExtendedTypesPreferences {
/**
* Returns all the paths in the workspace that should be an extended type set to load, with the id as a key
- *
+ *
* @return
*/
public static Map<String, String> getLocalExtendedTypesDefinitions() {
IMemento[] mementos = getWorkspaceDefinitions();
- if(mementos != null && mementos.length > 0) {
+ if (mementos != null && mementos.length > 0) {
Map<String, String> idToPath = new HashMap<String, String>();
- for(IMemento memento : mementos) {
+ for (IMemento memento : mementos) {
String id = memento.getString(ID);
String path = memento.getString(PATH);
- if(id != null && !"".equals(id) && path != null && !"".equals(PATH)) {
+ if (id != null && !"".equals(id) && path != null && !"".equals(PATH)) {
idToPath.put(id, path);
}
}
@@ -274,11 +272,11 @@ public class ExtendedTypesPreferences {
/**
* Register a new local redefinition of a extendedTypes.
- *
+ *
* @param extendedTypesID
- * the id of the extendedTypes to register
+ * the id of the extendedTypes to register
* @param path
- * the path to the configuration of the extendedTypes
+ * the path to the configuration of the extendedTypes
* @return the memento that has been registered
*/
public static IMemento registerWorkspaceDefinition(String extendedTypesID, String path) {
@@ -286,7 +284,7 @@ public class ExtendedTypesPreferences {
// try to find an existing local definition for this extendedTypes
IMemento memento = getWorkspaceDefinition(extendedTypesID);
// if one exists, remove it from the preferences
- if(memento != null) {
+ if (memento != null) {
unregisterWorkspaceDefinition(extendedTypesID);
}
// then register the new one
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtendedElementTypeActionService.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtendedElementTypeActionService.java
index bb3e3d7c957..2d991ee9c4a 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtendedElementTypeActionService.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtendedElementTypeActionService.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -41,7 +41,7 @@ public class ExtendedElementTypeActionService extends Service {
static {
instance.configureProviders(Activator.PLUGIN_ID, "extendedElementTypeActionProvider"); //$NON-NLS-1$
}
-
+
/**
* Default constructor.
*/
@@ -51,7 +51,7 @@ public class ExtendedElementTypeActionService extends Service {
/**
* Returns the singleton instance of this service
- *
+ *
* @return the singleton instance of this service
*/
synchronized public static ExtendedElementTypeActionService getInstance() {
@@ -61,13 +61,14 @@ public class ExtendedElementTypeActionService extends Service {
/**
* @see org.eclipse.gmf.runtime.common.core.service.Service#newProviderDescriptor(org.eclipse.core.runtime.IConfigurationElement)
*/
+ @Override
protected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element) {
return new ProviderDescriptor(element);
}
/**
* Returns all providers in the service
- *
+ *
* @return the list of providers found or an empty list.
*/
public List<IExtendedElementTypeActionProvider> getProviders() {
@@ -78,18 +79,18 @@ public class ExtendedElementTypeActionService extends Service {
/**
* Returns the provider with the given identifier
- *
+ *
* @param actionConfiguration
- * the actionConfiguration for the provider to retrieve
+ * the actionConfiguration for the provider to retrieve
* @return the provider found or <code>null</code>.
*/
public IExtendedElementTypeActionProvider getProvider(ActionConfiguration actionConfiguration) {
@SuppressWarnings({ "unchecked", "rawtypes" })
- List<IExtendedElementTypeActionProvider> providers = (List)execute(ExecutionStrategy.REVERSE, new GetExtendedElementTypeActionProviderOperation(actionConfiguration));
+ List<IExtendedElementTypeActionProvider> providers = execute(ExecutionStrategy.REVERSE, new GetExtendedElementTypeActionProviderOperation(actionConfiguration));
Iterator<IExtendedElementTypeActionProvider> it = providers.iterator();
- while(it.hasNext()) {
- IExtendedElementTypeActionProvider aspectActionProvider = (IExtendedElementTypeActionProvider)it.next();
- if(aspectActionProvider != null) {
+ while (it.hasNext()) {
+ IExtendedElementTypeActionProvider aspectActionProvider = it.next();
+ if (aspectActionProvider != null) {
return aspectActionProvider;
}
}
@@ -98,39 +99,39 @@ public class ExtendedElementTypeActionService extends Service {
/**
* Returns the command for the given {@link ActionConfiguration}.
- *
+ *
* @param elementsToEdit
- * list of elements to edit
- *
+ * list of elements to edit
+ *
* @param configuration
- * the configuration of the action
+ * the configuration of the action
* @return the {@link ICommand} configured by the parameter or <code>null</code>.
* @throws ProviderNotFoundException
- * exception thrown when the provider was not found for this configuration
+ * exception thrown when the provider was not found for this configuration
*/
public ICommand getICommand(List<? extends Object> elementsToEdit, ActionConfiguration configuration) throws ProviderNotFoundException {
IExtendedElementTypeActionProvider provider = getProvider(configuration);
- if(provider != null) {
+ if (provider != null) {
return provider.getICommand(elementsToEdit, configuration);
}
throw new ProviderNotFoundException(configuration);
}
-
+
/**
* Returns the command for the given {@link ActionConfiguration}.
- *
+ *
* @param elementsToEdit
- * list of elements to edit
- *
+ * list of elements to edit
+ *
* @param configuration
- * the configuration of the action
+ * the configuration of the action
* @return the {@link ICommand} configured by the parameter or <code>null</code>.
* @throws ProviderNotFoundException
- * exception thrown when the provider was not found for this configuration
+ * exception thrown when the provider was not found for this configuration
*/
public ICommand getPreValidationCommand(List<? extends Object> elementsToEdit, ActionConfiguration configuration) throws ProviderNotFoundException {
IExtendedElementTypeActionProvider provider = getProvider(configuration);
- if(provider != null) {
+ if (provider != null) {
return provider.getBeforeCreateValidationCommand(elementsToEdit, configuration);
}
throw new ProviderNotFoundException(configuration);
@@ -147,9 +148,9 @@ public class ExtendedElementTypeActionService extends Service {
/**
* Constructs a <code>ISemanticProvider</code> descriptor for
* the specified configuration element.
- *
+ *
* @param element
- * The configuration element describing the provider.
+ * The configuration element describing the provider.
*/
public ProviderDescriptor(IConfigurationElement element) {
super(element);
@@ -160,20 +161,21 @@ public class ExtendedElementTypeActionService extends Service {
/**
* @see org.eclipse.gmf.runtime.common.core.service.IProvider#provides(org.eclipse.gmf.runtime.common.core.service.IOperation)
*/
+ @Override
public boolean provides(IOperation operation) {
- if(!super.provides(operation)) {
+ if (!super.provides(operation)) {
return false;
}
- if(operation instanceof GetAllExtendedElementTypeActionProvidersOperation) {
+ if (operation instanceof GetAllExtendedElementTypeActionProvidersOperation) {
return true;
}
- if(operation instanceof GetExtendedElementTypeActionProviderOperation) {
+ if (operation instanceof GetExtendedElementTypeActionProviderOperation) {
String providerConfigurationClassName = providerConfiguration.getConfigurationClassName();
- if(providerConfigurationClassName == null) {
+ if (providerConfigurationClassName == null) {
Activator.log.error("Error during the parsing of the action configuration extension point", null);
return false;
}
- String configurationClassName = ((GetExtendedElementTypeActionProviderOperation)operation).getActionConfiguration().eClass().getInstanceClassName();
+ String configurationClassName = ((GetExtendedElementTypeActionProviderOperation) operation).getActionConfiguration().eClass().getInstanceClassName();
return providerConfigurationClassName.equals(configurationClassName);
}
return false;
@@ -182,11 +184,12 @@ public class ExtendedElementTypeActionService extends Service {
/**
* @see org.eclipse.gmf.runtime.common.core.service.Service.ProviderDescriptor#getProvider()
*/
+ @Override
public IProvider getProvider() {
- if(provider == null) {
+ if (provider == null) {
IProvider newProvider = super.getProvider();
- if(provider instanceof IExtendedElementTypeActionProvider) {
- IExtendedElementTypeActionProvider defaultProvider = (IExtendedElementTypeActionProvider)newProvider;
+ if (provider instanceof IExtendedElementTypeActionProvider) {
+ IExtendedElementTypeActionProvider defaultProvider = (IExtendedElementTypeActionProvider) newProvider;
defaultProvider.setConfiguration(getElement());
}
return newProvider;
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtentedElementTypeActionProviderConfiguration.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtentedElementTypeActionProviderConfiguration.java
index f83bf684864..5c0bb334e56 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtentedElementTypeActionProviderConfiguration.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ExtentedElementTypeActionProviderConfiguration.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -34,9 +34,9 @@ public class ExtentedElementTypeActionProviderConfiguration extends AbstractProv
/**
* Creates and builds a new provider contribution descriptor by parsing its configuration element.
- *
+ *
* @param configElement
- * A provider XML configuration element
+ * A provider XML configuration element
* @return A provider XML contribution descriptor
*/
public static ExtentedElementTypeActionProviderConfiguration parse(IConfigurationElement configElement) {
@@ -47,9 +47,9 @@ public class ExtentedElementTypeActionProviderConfiguration extends AbstractProv
/**
* Creates a new <code>ProviderContributionDescriptor</code> instance
* by parsing its configuration element.
- *
+ *
* @param configElement
- * The provider XML configuration element
+ * The provider XML configuration element
*/
protected ExtentedElementTypeActionProviderConfiguration(IConfigurationElement configElement) {
// retrieve only ID, to test if the factory is the right one before creating whole element
@@ -63,7 +63,7 @@ public class ExtentedElementTypeActionProviderConfiguration extends AbstractProv
/**
* Returns the class name of the provider configured by this configuration
- *
+ *
* @return the id of the factory
*/
public String getClassName() {
@@ -72,7 +72,7 @@ public class ExtentedElementTypeActionProviderConfiguration extends AbstractProv
/**
* Name of the configuration class
- *
+ *
* @return the configuration Class Name
*/
public String getConfigurationClassName() {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetAllExtendedElementTypeActionProvidersOperation.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetAllExtendedElementTypeActionProvidersOperation.java
index d74978422f7..c4bde78e783 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetAllExtendedElementTypeActionProvidersOperation.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetAllExtendedElementTypeActionProvidersOperation.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -27,9 +27,9 @@ public class GetAllExtendedElementTypeActionProvidersOperation implements IOpera
/**
* Creates a new GetAllExtendedElementTypeActionProvidersOperation.
- *
+ *
* @param providers
- * the list of providers to fill
+ * the list of providers to fill
*/
public GetAllExtendedElementTypeActionProvidersOperation(List<IExtendedElementTypeActionProvider> providers) {
this.providers = providers;
@@ -39,8 +39,8 @@ public class GetAllExtendedElementTypeActionProvidersOperation implements IOpera
* {@inheritDoc}
*/
public Object execute(IProvider provider) {
- if(provider instanceof IExtendedElementTypeActionProvider) {
- providers.add((IExtendedElementTypeActionProvider)provider);
+ if (provider instanceof IExtendedElementTypeActionProvider) {
+ providers.add((IExtendedElementTypeActionProvider) provider);
}
return providers;
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetExtendedElementTypeActionProviderOperation.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetExtendedElementTypeActionProviderOperation.java
index 259036144d5..e2498fe4564 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetExtendedElementTypeActionProviderOperation.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/GetExtendedElementTypeActionProviderOperation.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -26,9 +26,9 @@ public class GetExtendedElementTypeActionProviderOperation implements IOperation
/**
* Creates a new {@link GetExtendedElementTypeActionProviderOperation}.
- *
+ *
* @param actionConfiguration
- * action configuration for the provider to find
+ * action configuration for the provider to find
*/
public GetExtendedElementTypeActionProviderOperation(ActionConfiguration actionConfiguration) {
this.actionConfiguration = actionConfiguration;
@@ -43,7 +43,7 @@ public class GetExtendedElementTypeActionProviderOperation implements IOperation
/**
* Returns the action configuration for this operation
- *
+ *
* @return the action configuration for this operation
*/
public ActionConfiguration getActionConfiguration() {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/IExtendedElementTypeActionProvider.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/IExtendedElementTypeActionProvider.java
index d383700eb3c..ef5cd74870e 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/IExtendedElementTypeActionProvider.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/IExtendedElementTypeActionProvider.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -26,36 +26,36 @@ public interface IExtendedElementTypeActionProvider extends IProvider {
/**
* Returns the command to execute for the given configuration
- *
+ *
* @param elementsToEdit
- * list of elements to edit
- *
+ * list of elements to edit
+ *
* @param configuration
- * the configuration for the command
- *
+ * the configuration for the command
+ *
* @return the command to execute for the given configuration
*/
public ICommand getICommand(List<? extends Object> elementsToEdit, ActionConfiguration configuration);
/**
* Returns the command to execute for the given configuration to check if it will be executable
- *
+ *
* @param elementsToEdit
- * list of elements to edit
- *
+ * list of elements to edit
+ *
* @param configuration
- * the configuration for the command
- *
+ * the configuration for the command
+ *
* @return the command to execute for the given configuration. should do nothing on the model (either null or identity command), only return an
* Unexecutable command if creation is not allowed
*/
public ICommand getBeforeCreateValidationCommand(List<? extends Object> elementsToEdit, ActionConfiguration configuration);
-
+
/**
* Sets the configuration for this provider, given the configuration element
- *
+ *
* @param element
- * the element that configures this provider
+ * the element that configures this provider
*/
public void setConfiguration(IConfigurationElement element);
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ProviderNotFoundException.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ProviderNotFoundException.java
index 6541bd06a15..b1ebded1443 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ProviderNotFoundException.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/providers/ProviderNotFoundException.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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
@@ -24,10 +24,10 @@ public class ProviderNotFoundException extends Exception {
/**
* Constructor.
- *
+ *
* @param configuration
- * the configuration for which a provider was searched
- *
+ * the configuration for which a provider was searched
+ *
*/
public ProviderNotFoundException(ActionConfiguration configuration) {
super();
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/semantic/ISemanticTypeFactory.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/semantic/ISemanticTypeFactory.java
index 4c2edf960db..2502447d1f9 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/semantic/ISemanticTypeFactory.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/semantic/ISemanticTypeFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -14,7 +14,7 @@ package org.eclipse.papyrus.infra.extendedtypes.semantic;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
/**
- * Interface that must be implemented by each factory relying on the semanticTypeFactory extension point.
+ * Interface that must be implemented by each factory relying on the semanticTypeFactory extension point.
*/
public interface ISemanticTypeFactory {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/ExtendedHintedElementType.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/ExtendedHintedElementType.java
index b7c7b03c258..8c75f235bf1 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/ExtendedHintedElementType.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/ExtendedHintedElementType.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 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
@@ -30,7 +30,7 @@ public class ExtendedHintedElementType extends SpecializationType implements IEx
private String semanticHint;
protected ICreationElementValidator creationElementValidator;
-
+
/**
* @param id
* @param iconURL
@@ -39,9 +39,10 @@ public class ExtendedHintedElementType extends SpecializationType implements IEx
* @param matcher
* @param descriptor
* @param editHelperAdvice
- * @param iElementCreationValidator
+ * @param iElementCreationValidator
*/
- public ExtendedHintedElementType(String id, URL iconURL, String displayName, IElementType[] elementTypes, IElementMatcher matcher, IContainerDescriptor descriptor, IEditHelperAdvice editHelperAdvice, String semanticHint, ICreationElementValidator creationElementValidator) {
+ public ExtendedHintedElementType(String id, URL iconURL, String displayName, IElementType[] elementTypes, IElementMatcher matcher, IContainerDescriptor descriptor, IEditHelperAdvice editHelperAdvice, String semanticHint,
+ ICreationElementValidator creationElementValidator) {
super(id, iconURL, displayName, elementTypes, matcher, descriptor, editHelperAdvice);
this.semanticHint = semanticHint;
this.creationElementValidator = creationElementValidator;
@@ -60,12 +61,12 @@ public class ExtendedHintedElementType extends SpecializationType implements IEx
public ICreationElementValidator getCreationElementValidator() {
return creationElementValidator;
}
-
+
/**
* {@inheritDoc}
*/
@Override
public String toString() {
- return "Extended Type: "+getDisplayName()+" ["+getId()+"]";
+ return "Extended Type: " + getDisplayName() + " [" + getId() + "]";
}
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/IExtendedHintedElementType.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/IExtendedHintedElementType.java
index 6e9924d357b..c33df0e396f 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/IExtendedHintedElementType.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/types/IExtendedHintedElementType.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* 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
@@ -19,7 +19,7 @@ import org.eclipse.papyrus.infra.extendedtypes.ICreationElementValidator;
/**
- * interface implemented by all configurable element types specializations
+ * interface implemented by all configurable element types specializations
*/
public interface IExtendedHintedElementType extends ISpecializationType, IHintedType {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/util/ElementTypeUtils.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/util/ElementTypeUtils.java
index 9ff0c46869f..0be7bad9d21 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/util/ElementTypeUtils.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src/org/eclipse/papyrus/infra/extendedtypes/util/ElementTypeUtils.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* 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
@@ -32,37 +32,37 @@ public class ElementTypeUtils {
/**
* Tests if two elements types are equivalent
- *
+ *
* @param referenceType
- * the reference type for the comparison
+ * the reference type for the comparison
* @param typeToCompare
- * the type that is compared to the reference one
+ * the type that is compared to the reference one
* @return <code>true</code> if both types are equivalent semantically
*/
public static boolean isSemanticallyEquivalent(IElementType referenceType, IElementType typeToCompare) {
boolean isEquivalent = true;
// first : easy test...
- if(typeToCompare.equals(referenceType)) {
+ if (typeToCompare.equals(referenceType)) {
return true;
}
// 2. test the kind of element.
- if(referenceType instanceof IMetamodelType) {
- if(!(typeToCompare instanceof IMetamodelType)) {
+ if (referenceType instanceof IMetamodelType) {
+ if (!(typeToCompare instanceof IMetamodelType)) {
return false;
} else {
- EClass referenceEclass = ((IMetamodelType)referenceType).getEClass();
- EClass eclassToCompare = ((IMetamodelType)typeToCompare).getEClass();
+ EClass referenceEclass = ((IMetamodelType) referenceType).getEClass();
+ EClass eclassToCompare = ((IMetamodelType) typeToCompare).getEClass();
isEquivalent = isEquivalent && referenceEclass.equals(eclassToCompare);
}
} else {
- if((typeToCompare instanceof IMetamodelType)) {
+ if ((typeToCompare instanceof IMetamodelType)) {
return false;
}
}
// metaclasses are equivalent. check for extended types now...
- if(referenceType instanceof IExtendedHintedElementType) {
- if(typeToCompare instanceof IExtendedHintedElementType) {
- isEquivalent = isEquivalent && isSemanticallyEquivalent((IExtendedHintedElementType)referenceType, (IExtendedHintedElementType)typeToCompare);
+ if (referenceType instanceof IExtendedHintedElementType) {
+ if (typeToCompare instanceof IExtendedHintedElementType) {
+ isEquivalent = isEquivalent && isSemanticallyEquivalent((IExtendedHintedElementType) referenceType, (IExtendedHintedElementType) typeToCompare);
}
}
return isEquivalent;
@@ -70,47 +70,47 @@ public class ElementTypeUtils {
/**
* Tests if two elements types are equivalent (configuration)
- *
+ *
* @param referenceType
- * the reference type for the comparison
+ * the reference type for the comparison
* @param typeToCompare
- * the type that is compared to the reference one
+ * the type that is compared to the reference one
* @return <code>true</code> if both types are equivalent semantically
*/
public static boolean isSemanticallyEquivalent(IExtendedHintedElementType referenceType, IExtendedHintedElementType typeToCompare) {
boolean isEquivalent = true;
// check all pre/post action and validation
-// ExtendedElementTypeConfiguration referenceConfiguration = referenceType.getConfiguration();
-// ExtendedElementTypeConfiguration configurationToCompare = typeToCompare.getConfiguration();
-// List<QueryConfiguration> referencePrevalidation = referenceConfiguration.getPreValidation();
-// List<QueryConfiguration> prevalidationToCompare = configurationToCompare.getPreValidation();
-// if(referencePrevalidation != null) {
-// isEquivalent = isEquivalent && isEquivalent(referencePrevalidation, prevalidationToCompare);
-// } else if(prevalidationToCompare != null) {
-// isEquivalent = false;
-// }
-// List<PreActionConfiguration> referencePreaction = referenceConfiguration.getPreAction();
-// List<PreActionConfiguration> preactionToCompare = configurationToCompare.getPreAction();
-// if(referencePreaction != null) {
-// isEquivalent = isEquivalent && isEquivalent(referencePreaction, preactionToCompare);
-// } else if(preactionToCompare != null) {
-// isEquivalent = false;
-// }
-// List<PostActionConfiguration> referencePostaction = referenceConfiguration.getPostAction();
-// List<PostActionConfiguration> postactionToCompare = configurationToCompare.getPostAction();
-// if(referencePostaction != null) {
-// isEquivalent = isEquivalent && isEquivalent(referencePostaction, postactionToCompare);
-// } else if(postactionToCompare != null) {
-// isEquivalent = false;
-// }
+ // ExtendedElementTypeConfiguration referenceConfiguration = referenceType.getConfiguration();
+ // ExtendedElementTypeConfiguration configurationToCompare = typeToCompare.getConfiguration();
+ // List<QueryConfiguration> referencePrevalidation = referenceConfiguration.getPreValidation();
+ // List<QueryConfiguration> prevalidationToCompare = configurationToCompare.getPreValidation();
+ // if(referencePrevalidation != null) {
+ // isEquivalent = isEquivalent && isEquivalent(referencePrevalidation, prevalidationToCompare);
+ // } else if(prevalidationToCompare != null) {
+ // isEquivalent = false;
+ // }
+ // List<PreActionConfiguration> referencePreaction = referenceConfiguration.getPreAction();
+ // List<PreActionConfiguration> preactionToCompare = configurationToCompare.getPreAction();
+ // if(referencePreaction != null) {
+ // isEquivalent = isEquivalent && isEquivalent(referencePreaction, preactionToCompare);
+ // } else if(preactionToCompare != null) {
+ // isEquivalent = false;
+ // }
+ // List<PostActionConfiguration> referencePostaction = referenceConfiguration.getPostAction();
+ // List<PostActionConfiguration> postactionToCompare = configurationToCompare.getPostAction();
+ // if(referencePostaction != null) {
+ // isEquivalent = isEquivalent && isEquivalent(referencePostaction, postactionToCompare);
+ // } else if(postactionToCompare != null) {
+ // isEquivalent = false;
+ // }
return isEquivalent;
}
public static boolean isEquivalent(List<? extends EObject> referenceList, List<? extends EObject> listToCompare) {
boolean isEquivalent = true;
- if(referenceList == null) {
+ if (referenceList == null) {
// only one is null : false
- if(listToCompare != null) {
+ if (listToCompare != null) {
return false;
} else {
// both are null: true
@@ -118,19 +118,19 @@ public class ElementTypeUtils {
}
} else {
// only one is null: false
- if(listToCompare == null) {
+ if (listToCompare == null) {
return false;
}
}
// check emptyness. If both empty : equivalent
- if(referenceList.isEmpty() && listToCompare.isEmpty()) {
+ if (referenceList.isEmpty() && listToCompare.isEmpty()) {
return true;
}
// check size. If different, false
- if(referenceList.size() != listToCompare.size()) {
+ if (referenceList.size() != listToCompare.size()) {
return false;
}
- for(int i = 0; i < referenceList.size(); i++) {
+ for (int i = 0; i < referenceList.size(); i++) {
EObject reference = referenceList.get(i);
EObject compared = listToCompare.get(i);
isEquivalent = isEquivalent && EcoreUtil.equals(reference, compared);
@@ -140,17 +140,17 @@ public class ElementTypeUtils {
/**
* Returns the closest non Extended element type for a given extended type
- *
+ *
* @param requestElementType
- * the element type to study
+ * the element type to study
* @return the closest non extended element type or <code>null</code> if none was found.
*/
public static IElementType findClosestNonExtendedElementType(IExtendedHintedElementType requestElementType) {
List<IElementType> superTypes = new ArrayList<IElementType>(Arrays.asList(requestElementType.getAllSuperTypes()));
// reverse order for the list, because super type returns all super types from furthest to closest, we want the other order
Collections.reverse(superTypes);
- for(IElementType superType : superTypes) {
- if(!(superType instanceof IExtendedHintedElementType)) {
+ for (IElementType superType : superTypes) {
+ if (!(superType instanceof IExtendedHintedElementType)) {
return superType;
}
}
@@ -159,25 +159,25 @@ public class ElementTypeUtils {
/**
* Returns the closest super type which is not an extended type
- *
+ *
* @param elementType
- * the element type for which the super type is searched.
+ * the element type for which the super type is searched.
* @return the closest super type non extended or <code>null</code> if none was found
*/
public static IElementType getClosestDiagramType(IElementType elementType) {
- if(!(elementType instanceof IExtendedHintedElementType)) {
+ if (!(elementType instanceof IExtendedHintedElementType)) {
return elementType;
}
-// // this is an extended type
-// String diagramElementTypeID = ((IExtendedHintedElementType)elementType).getSpecializedTypeIds();
-// if(diagramElementTypeID != null) {
-// return getClosestDiagramType(ElementTypeRegistry.getInstance().getType(diagramElementTypeID));
-// } else {
-// IElementType[] superTypes = elementType.getAllSuperTypes();
-// if(superTypes.length > 1) {
-// return getClosestDiagramType(superTypes[superTypes.length - 1]);
-// }
-// }
+ // // this is an extended type
+ // String diagramElementTypeID = ((IExtendedHintedElementType)elementType).getSpecializedTypeIds();
+ // if(diagramElementTypeID != null) {
+ // return getClosestDiagramType(ElementTypeRegistry.getInstance().getType(diagramElementTypeID));
+ // } else {
+ // IElementType[] superTypes = elementType.getAllSuperTypes();
+ // if(superTypes.length > 1) {
+ // return getClosestDiagramType(superTypes[superTypes.length - 1]);
+ // }
+ // }
return null;
}
}

Back to the top